CVE-2026-88048: Tesseract: Heap out-of-bounds write/read in FullyConnected::Forward via layer/weight-matrix dimension mismatch

Published Sep 10, 2026
·
Updated

Tesseract is an open source OCR engine. In version 5.5.3 and earlier, FullyConnected::DeSerialize in src/lstm/fullyconnected.cpp does not validate the deserialized layer scalars ni and no against the weight-matrix dimensions. During FullyConnected::Forward, MatrixDotVector in src/lstm/weightmatrix.cpp writes w.dim1() results into templine, which is sized from no, and reads w.dim2() minus one inputs from currinput, which is sized from ni. A crafted .traineddata NTSOFTMAX layer can therefore use inconsistent dimensions to cause a heap out-of-bounds write and read on the default LSTM engine, resulting in heap corruption, a crash, information disclosure, or potentially controlled corruption. No fixed release is available as of this review.

Affected Software

1 affected component
Tesseract Tesseract<=5.5.3

Event History

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

Frequently Asked Questions

1

What attacker-controlled input is required to trigger this issue?

An attacker needs to provide a crafted .traineddata file containing an NT_SOFTMAX layer whose serialized ni_ and no_ scalars are inconsistent with the weight-matrix dimensions. The vulnerable deserialization accepts those inconsistent dimensions, and processing the layer through the default LSTM engine reaches the out-of-bounds operations.

2

Are default Tesseract deployments affected?

The issue affects the default LSTM engine when it processes a malicious .traineddata NT_SOFTMAX layer. It is present in Tesseract version 5.5.3 and earlier.

3

What is the impact if exploitation succeeds?

The dimension mismatch can cause both heap out-of-bounds writes and reads. Reported consequences include heap corruption, crashes, information disclosure, and potentially controlled memory corruption.

4

Is a fixed version available?

No fixed release was available as of the review. The provided references include a commit associated with the issue.

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