Tesseract: Heap OOB read in the DAWG loader
Published Aug 11, 2026
6.7
MEDIUMCVSS 4.0
EPSS 0.13%
Description
Tesseract is an open source OCR engine. Prior to 5.5.3, a crafted .traineddata model loaded through TessBaseAPI::Init can cause SquishedDawg::read_squished_dawg in src/dict/dawg.cpp to accept an unterminated forward-edge run, after which SquishedDawg::Load calls num_forward_edges(0) and last_edge in src/dict/dawg.h reads beyond edges_, causing a heap out-of-bounds read and process crash before image processing. This issue is fixed in version 5.5.3.
Affected products
-
- Version < 5.5.3StatusaffectedConstraints-
- Version
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Tesseract-Ocr | Tesseract | n/a |
|
No data.
No data.
No Red Hat product state for this CVE.
No package ranges for this CVE.
Remediation
Red Hat statement
A flaw was found in Tesseract, an open-source Optical Character Recognition (OCR) engine. A heap out-of-bounds read in the DAWG dictionary loader can be triggered by a specially crafted .traineddata model file, causing the Tesseract process to crash. This issue requires a user to load an untrusted model file, limiting the attack surface.
Red Hat mitigation
Only use .traineddata model files obtained from trusted sources. Do not load model files from untrusted or unknown origins.
References (11)
- https://access.redhat.com/security/cve/CVE-2026-73067 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2514014 Issue Tracking
- https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-56182 Advisory
- https://github.com/tesseract-ocr/tesseract/commit/55287a94b8044c05ce3fd10f5aca6ebbd238e518 x_refsource_MISC
- https://github.com/tesseract-ocr/tesseract/commit/82727cc11c34eaf1249af002d69f6bbae70993b9 x_refsource_MISC
- https://github.com/tesseract-ocr/tesseract/issues/4580 x_refsource_MISC
- https://github.com/tesseract-ocr/tesseract/pull/4581 x_refsource_MISC
- https://github.com/tesseract-ocr/tesseract/releases/tag/5.5.3 x_refsource_MISC
- https://github.com/tesseract-ocr/tesseract/security/advisories/GHSA-x3vq-7rr7-5x3h x_refsource_CONFIRM
- https://nvd.nist.gov/vuln/detail/CVE-2026-73067
- https://www.cve.org/CVERecord?id=CVE-2026-73067
Change history (0)
No recorded changes yet.