unknown · EPSS 0.0027
CVE-2026-119341
Tesseract OCR engine before 5.5.4 can suffer memory corruption when processing a pre‑adapted template file, leading to a denial‑of‑service.
Overview
Tesseract OCR engine before 5.5.4 can suffer memory corruption when processing a pre‑adapted template file, leading to a denial‑of‑service. The flaw occurs in ReadAdaptedClass when legacy mode is enabled and attacker‑controlled .a files are parsed. It affects all Tesseract 5.x releases that allow pre‑adapted templates.
Description
Tesseract is an open source OCR engine. Prior to 5.5.4, ReadAdaptedClass in src/classify/adaptive.cpp raw-reads an ADAPT_CLASS_STRUCT from a pre-adapted-template .a file without neutralizing TempProtos and Config pointer fields before any destructor path. When the legacy engine is selected, classify_use_pre_adapted_templates is enabled, and an attacker can write the output-basename .a file, the success or rejection path can pass file-controlled pointers to ~ADAPT_CLASS_STRUCT and operator delete, causing memory corruption and denial of service. This issue is fixed in version 5.5.4.
Impact
The vulnerability can corrupt memory and crash the OCR process, compromising availability and potentially integrity if the crash is exploited in a broader workflow. Defenders using Tesseract in services that accept untrusted input are at risk of service interruption.
Remediation
Upgrade to Tesseract 5.5.4 or later. If an upgrade is not immediately possible, disable the classify_use_pre_adapted_templates option or reject any user‑supplied .a files before they reach the OCR engine. Apply any vendor‑issued patches as soon as they are released.
Risk context
With an EPSS score of 0.0027 and no CVSS rating, the likelihood of exploitation is low, but the impact is a denial of service. Defenders should monitor for any updates but the urgency is moderate.
Affected products
- Tesseract OCR 5.5.3
- Tesseract OCR 5.5.2
- Tesseract OCR 5.5.1
- Tesseract OCR 5.5.0
- Tesseract OCR 5.4.x
- Tesseract OCR 5.3.x
- Tesseract OCR 5.2.x
- Tesseract OCR 5.1.x
Scores
- Severity
- unknown
- CVSS v2
- —
- CVSS v3
- —
- CVSS v4
- —
- EPSS
- 0.0027