CVE-2026-119338 Tesseract: Double free and use after free in the PAGE XML renderer on right-to-left pages
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: partial
- Technology
- UbuntuDebianRed Hat
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.
Upgrade path
12 packages: 2 fixed, 9 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/tesseract(Debian 12) | = 5.3.0-2; = 5.3.3-1; = 5.3.4-1; = 5.3.4-1.1 +7 more | No fix listed | No fix yet |
| debian/tesseract(Debian 13) | = 5.5.0-1; = 5.5.0-1.1; = 5.5.4-1; All versions | No fix listed | No fix yet |
| redhat/tesseract(Red Hat enterprise_linux 10) | All versions | No fix listed | No fix yet |
| redhat/tesseract(Red Hat enterprise_linux 8) | All versions | No fix listed | No fix yet |
| redhat/tesseract(Red Hat enterprise_linux 9) | All versions | No fix listed | No fix yet |
| ubuntu/tesseract(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/tesseract(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/tesseract(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/tesseract(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| azure linux tesseract(Azure Linux 4.0) | < 0:5.5.4-8.azl4 | 0:5.5.4-8.azl4 | Fixed |
| debian/tesseract(Debian 14) | < 5.5.4-1; = 5.5.0-1; = 5.5.0-1.1 | 5.5.4-1 | Fixed |
| tesseract-ocr tesseract | = >= 5.4.0, < 5.5.4 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| tesseract-ocr tesseract | = >= 5.4.0, < 5.5.4 | No fix listed |
| redhat/tesseract(Red Hat:enterprise_linux:10) | All versions | No fix listed |
| redhat/tesseract(Red Hat:enterprise_linux:8) | All versions | No fix listed |
| redhat/tesseract(Red Hat:enterprise_linux:9) | All versions | No fix listed |
| ubuntu/tesseract(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/tesseract(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/tesseract(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/tesseract(Ubuntu:26.10) | All versions | No fix listed |
| debian/tesseract(Debian:12) | All versions | No fix listed |
| debian/tesseract(Debian:14) | < 5.5.4-1 | 5.5.4-1 |
| debian/tesseract(Debian:13) | All versions | No fix listed |
| debian/tesseract(Debian:12) | = 5.3.0-2 | No fix listed |
| debian/tesseract(Debian:12) | = 5.3.3-1 | No fix listed |
| debian/tesseract(Debian:12) | = 5.3.4-1 | No fix listed |
| debian/tesseract(Debian:12) | = 5.3.4-1.1 | No fix listed |
| debian/tesseract(Debian:12) | = 5.3.4-1.2 | No fix listed |
| debian/tesseract(Debian:12) | = 5.3.4-1.3 | No fix listed |
| debian/tesseract(Debian:12) | = 5.3.4-1.4 | No fix listed |
| debian/tesseract(Debian:12) | = 5.5.0-1 | No fix listed |
| debian/tesseract(Debian:12) | = 5.5.0-1.1 | No fix listed |
| debian/tesseract(Debian:12) | = 5.5.4-1 | No fix listed |
| debian/tesseract(Debian:13) | = 5.5.0-1 | No fix listed |
| debian/tesseract(Debian:13) | = 5.5.0-1.1 | No fix listed |
| debian/tesseract(Debian:13) | = 5.5.4-1 | No fix listed |
| debian/tesseract(Debian:14) | = 5.5.0-1 | No fix listed |
Show 2 more
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/tesseract(Debian:14) | = 5.5.0-1.1 | No fix listed |
| azure linux tesseract(Azure Linux:4.0) | < 0:5.5.4-8.azl4 | 0:5.5.4-8.azl4 |
References
- https://github.com/tesseract-ocr/tesseract/security/advisories/GHSA-vf7v-2h4f-6f4j exploit
- https://github.com/tesseract-ocr/tesseract/pull/4647
- https://github.com/tesseract-ocr/tesseract/commit/fa52414ff1fd13ae4b00048d2498f9141b0bc2eb
- https://github.com/tesseract-ocr/tesseract/releases/tag/5.5.4
- Red Hat CVE page vendor-advisory
- Red Hat Bugzilla 2564292 issue-tracking
- www.cve.org
- nvd.nist.gov
- Debian Security Tracker CVE-2026-119338 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- bugs.debian.org issue-tracking
- MSRC Security Update Guide vendor-advisory
- Release Notes vendor-advisory
- ENISA EUVD EUVD-2026-114445 third-party-advisory