CVE-2026-88053 — tesseract
Fix: tesseract-ocr/tesseract@8b05746CVE-2026-88053 is a Out-of-bounds Write vulnerability. A fix is available — see the affected versions and patch details below.
Tesseract: Heap out-of-bounds write in Classify::ReadIntTemplates via unvalidated counts in crafted .traineddata
Exploitation Status
Proof-of-concept exploit code exists
- CISA’s SSVC triage found public proof-of-concept exploit code for this CVE, though no confirmed active exploitation.
- A successful exploit gives an attacker total control of the affected component, not partial access.
Exploitation and automatability from CISA’s SSVC triage for CVE-2026-88053.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
Description
Tesseract is an open source OCR engine. In version 5.5.3 and earlier, Classify::ReadIntTemplates in src/classify/intproto.cpp reads NumClassPruners, NumClasses, and NumProtoSets from the TESSDATA_INTTEMP component of a crafted .traineddata file and uses those values as loop bounds without validating them against MAX_NUM_CLASS_PRUNERS, MAX_NUM_CLASSES, and MAX_NUM_PROTO_SETS. The loops store heap pointers into fixed-capacity ClassPruners and ProtoSets arrays in INT_TEMPLATES_STRUCT and INT_CLASS_STRUCT, so an oversized count causes heap out-of-bounds pointer writes during legacy-classifier initialization before OCR begins, resulting in heap corruption, a crash, or potentially controlled corruption. No fixed release is available as of this review.
Affected Products
tesseract ocrtesseract-ocrDetection & mitigation playbook
VulnerabilityDetect
Identify every host running the affected component and compare the installed build against the fixed version below — for source-built or distro-packaged software the version string, not a lockfile, is the source of truth (`dpkg -l`, `rpm -q`, or the binary's own `--version`).
Fix
Upgrade the affected component to the fixed release for CVE-2026-88053, or apply your distribution's backported patch — distro builds are often patched at an older version number, so check your vendor's advisory rather than the upstream version alone.
Workarounds
Constrain what reaches the vulnerable code: limit the size and shape of untrusted input, isolate the affected component in a sandboxed or least-privileged process, and enable the platform's memory-safety mitigations (ASLR, stack protector, hardened allocator) so an out-of-bounds access is more likely to fail closed than to be exploitable.
Fixing This On Your OS
If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.
This vulnerability is rated as an Important severity flaw because an adversary who successfully triggers the memory corruption can execute arbitrary code within the privileges of the running application, rather than solely causing a denial of service. In Red Hat Enterprise Linux, Tesseract operates as an optical…
To mitigate this vulnerability, ensure that Tesseract only processes .traineddata files from trusted sources. Avoid loading or processing .traineddata files from untrusted or unverified origins, as these could be specially crafted to trigger the heap corruption. If Tesseract must process untrusted input, consider running the application in a sandboxed environment to limit the potential impact of successful exploitation.Source: Red Hat security advisory for CVE-2026-88053 (CC BY 4.0)
| Product | Fixed in | Advisory |
|---|---|---|
| Red Hat Enterprise Linux 10 | tesseract-0:5.3.4-11.el10_2 | RHSA-2026:95085 |
| Red Hat Enterprise Linux 10 | tesseract-0:5.3.4-11.el10_3 | RHSA-2026:98624 |
| Red Hat Enterprise Linux 10.0 Extended Update Support | tesseract-0:5.3.4-6.el10_0.2 | RHSA-2026:100506 |
| Red Hat Enterprise Linux 8 | tesseract-0:4.1.1-7.el8_10 | RHSA-2026:95725 |
| Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support | tesseract-0:4.1.1-2.el8_6.3 | RHSA-2026:96239 |
| Red Hat Enterprise Linux 8.8 Telecommunications Update Service | tesseract-0:4.1.1-2.el8_8.3 | RHSA-2026:96238 |
| Red Hat Enterprise Linux 9 | tesseract-0:4.1.1-11.el9_8 | RHSA-2026:95086 |
| Red Hat Enterprise Linux 9 | tesseract-0:4.1.1-11.el9_9 | RHSA-2026:98514 |
Frequently Asked Questions
Is CVE-2026-88053 in your dependencies?
Find it across your dependency tree, including transitive dependencies.