Double free in tesseract - CVE-2026-119338

 

Double free in tesseract - CVE-2026-119338

Published: November 18, 2026


Vulnerability identifier: #VU167570
CSH Severity: Medium
CVSS v4: 6.7 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-119338
CWE-ID: CWE-415
Exploitation vector: Local access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to potentially cause a denial of service through heap memory corruption.

The vulnerability exists due to double free and use-after-free in Tesseract's PAGE XML renderer when AppendLinePolygon frees a caller-owned accumulator without updating the caller's pointer while processing right-to-left text. A remote attacker can supply a Hebrew or Arabic page image to an OCR pipeline configured to emit PAGE XML to trigger repeated frees, stale coordinate reads, and subsequent out-of-bounds reads that may cause a crash.


Affected software

tesseract
openEuler
tesseract
tesseract-debuginfo
tesseract-debugsource
tesseract-devel
tesseract-tools

How to mitigate CVE-2026-119338

Install security update from vendor's website.

tesseract - update to 5.5.4
tesseract - update to 5.5.3-5
tesseract-debuginfo - update to 5.5.3-5
tesseract-debugsource - update to 5.5.3-5
tesseract-devel - update to 5.5.3-5
tesseract-tools - update to 5.5.3-5

External References

Related Security Bulletins