CVEstesseract-ocrCVE-2026-119338Published Oct 30, 20:12 · Updated Oct 30, 20:12 UTC
6.9
MediumCVSS 4.0 · from GitHub_M
CVE-2026-119338

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

tesseract · Out-of-bounds read · CWE-125
Affectedtesseract
FixNo fix listed yet.
PublishedOct 30, 20:12 · GitHub_M
ScoredOct 30 · 6.9 · GitHub_M
Exploit code publicNone known · checked 21:18 UTC
ExploitedNone known · CISA KEV checked 22:08 UTC

What we know

No known exploitation. CISA KEV, checked 22:08 UTC.
No public exploit code known. Exploit-DB, Metasploit, Nuclei, checked 21:18 UTC.
An attacker needs local access to the machine. CVSS: local.
Someone has to open, click or run something first. CVSS: user interaction required.
A successful attack can take the service down. CVSS impact.

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.

From GitHub_M

Affected and fixed versions

ProductAffectedFixed intesseract>= 5.4.0, < 5.5.4–

Exploit code

Exploit-DBnone knownMetasploitnone knownNucleinone known

References

github.com/tesseract-ocr/tesseract/security/advisories/GHSA-vf7v-2h4f-6f4j · github.comrefsource_CONFIRMgithub.com/tesseract-ocr/tesseract/pull/4647 · github.comrefsource_MISCgithub.com/tesseract-ocr/tesseract/commit/fa52414ff1fd13ae4b00048d2498f9141b0bc2eb · github.comrefsource_MISCgithub.com/tesseract-ocr/tesseract/releases/tag/5.5.4 · github.comrefsource_MISC

Other CVEs in tesseract

All 13 →
0.0Tesseract: File-controlled pointers still reach `delete` in ADAPT_CLASS_STRUCT destructor · CVE-2026-119341Oct 305.5Tesseract: GENERIC_2D_ARRAY DeSerializeSize signed integer comparison bypass allows negative dimensions · CVE-2026-119340Oct 305.5Tesseract: Crafted LSTM model (`WeightMatrix` mode byte) triggers `ASSERT_HOST` abort in `WeightMatrix::DeSerializeOld` under `FAST_FLOAT` — Denial of Service · CVE-2026-119339Oct 30