Tesseract: Heap OOB read in the DAWG loader
tesseract-ocr tesseract
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| tesseract-ocr tesseract |
| No fix yet |
Original 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.
From the CVE record · GitHub_M