CVE-2026-119338

Tesseract: Double free and use after free in the PAGE XML renderer on right-to-left pages

MEDIUM
6.9
CVSS Score
Published: October 30, 2026 at 08:12 PM UTC
Updated: October 30, 2026 at 09:16 PM UTC
1 product affected across 1 vendorOcr Tesseract Ocr

Using tesseract by tesseract-ocr?

Get instant alerts when new vulnerabilities affect tesseract - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM6.9
Exploit prediction
EPSS 0.1%

Description

Tesseract is an open source OCR engine. From 5.4.0 until 5.5.4, AppendLinePolygon in src/api/pagerenderer.cpp destroys the caller-owned right-to-left Pta accumulator while receiving it by value, leaving line_top_rtl_pts and line_bottom_rtl_pts dangling. On an upright Hebrew or Arabic page at the default PAGE XML level, POLYGONFLAG with a false skewed_flag enters the vulnerable calls, while LEVELFLAG greater than zero provides an alternative gate. The calls repeatedly read and free the stale object, causing a double free and use after free and allowing corrupted coordinates to reach RecalcPolygonline. This issue is fixed in version 5.5.4.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

Remediation

No guide yet

No remediation guidance has been written for this CVE yet, and no fixed version or vendor advisory is recorded against it.

CVSS

6.9MEDIUMGitHub_M
Vector?

Quick Info

StatusRECEIVED
CWE
CWE-125CWE-415CWE-416

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card