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.
References6
- github.com/tesseract-ocr/tesseract/commit/55287a94b8044c05ce3fd…
- github.com/tesseract-ocr/tesseract/commit/82727cc11c34eaf1249af…
- github.com/tesseract-ocr/tesseract/issues/4580
- github.com/tesseract-ocr/tesseract/pull/4581
- github.com/tesseract-ocr/tesseract/releases/tag/5.5.3
- github.com/tesseract-ocr/tesseract/security/advisories/GHSA-x3v…
Metrics
- CVSS 4.0
-
6.7
MEDIUM
Score source: CNA
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X - EPSS — exploit probability
- 0% percentile: 2 · as of 12 November 2026
- CWE
- CWE-125
Could this be exploited in your environment?
A patch closes the known hole. A penetration test shows what an attacker can still reach — with proof.