CVE-2026-88050: Tesseract: Out-of-bounds write in UnicharCompress via unvalidated recoder code values

Published Sep 10, 2026
·
Updated

Tesseract is an open source OCR engine. In version 5.5.3 and earlier, RecodedCharID::DeSerialize in src/ccutil/unicharcompress.h validates length but accepts negative code values from a crafted .traineddata recoder component. UnicharCompress::ComputeCodeRange in src/ccutil/unicharcompress.cpp can consequently produce coderange equal to zero, after which SetupDecoder indexes isvalidstart with the negative code on a size-zero vector. The resulting out-of-bounds bit write uses a large wrapped index and reliably causes a wild-address crash or allocation failure on the default LSTM engine. No fixed release is available as of this review.

Affected Software

1 affected component
Tesseract<=5.5.3

Event History

Sep 10, 2026
CVE Published
via MITRE·04:24 PM
Data Sourced
via MITRE·04:24 PM
DescriptionWeakness

Frequently Asked Questions

1

Who is exposed to this issue?

Deployments that process attacker-controlled or otherwise untrusted .traineddata files are exposed. The issue occurs with the default LSTM engine.

2

What does an attacker need to trigger the flaw?

An attacker needs to supply a crafted .traineddata recoder component containing negative recoder code values. Those values pass deserialization validation and later trigger an out-of-bounds bit write during decoder setup.

3

What is the likely impact of successful exploitation?

The described result is a reliable wild-address crash or allocation failure. The available data does not establish impacts beyond denial of service.

4

What can be done while no fixed release is available?

Do not accept or process untrusted .traineddata files, and restrict model files to trusted, controlled sources. This is particularly important for workloads using the default LSTM engine.

5

How can operators determine whether they may be affected?

Tesseract version 5.5.3 and earlier are affected according to the available information. Review whether those deployments load .traineddata files from users, external packages, or other untrusted sources.

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