CVE-2026-88053: Tesseract: Heap out-of-bounds write in Classify::ReadIntTemplates via unvalidated counts in crafted .traineddata

Published Sep 10, 2026
·
Updated

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 TESSDATAINTTEMP component of a crafted .traineddata file and uses those values as loop bounds without validating them against MAXNUMCLASSPRUNERS, MAXNUMCLASSES, and MAXNUMPROTOSETS. The loops store heap pointers into fixed-capacity ClassPruners and ProtoSets arrays in INTTEMPLATESSTRUCT and INTCLASSSTRUCT, 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 Software

1 affected component
Tesseract Tesseract OCR Engine<=5.5.3

Event History

Sep 10, 2026
CVE Published
via MITRE·05:38 PM
Data Sourced
via MITRE·05:38 PM
DescriptionWeakness

Frequently Asked Questions

1

Who is exposed to this issue?

Deployments that initialize Tesseract's legacy classifier using a crafted or untrusted .traineddata file are exposed. The out-of-bounds writes occur while loading the TESSDATA_INTTEMP component, before OCR processing begins.

2

What must an attacker provide to trigger the vulnerability?

An attacker needs to cause Tesseract to load a crafted .traineddata file whose TESSDATA_INTTEMP component contains oversized NumClassPruners, NumClasses, or NumProtoSets values. Those values are used as loop bounds without validation against the corresponding maximum limits.

3

Is a fixed version available?

No fixed release was available as of the review date. The affected versions are 5.5.3 and earlier.

4

What can be done if patching is not immediately possible?

Do not load untrusted .traineddata files. Restrict the model-data sources and file paths available to OCR workloads so that only known, trusted traineddata files can be used.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203