CVE-2026-88048: CWE-125: Out-of-bounds Read in tesseract-ocr tesseract
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 temp_line, which is sized from no_, and reads w.dim2() minus one inputs from curr_input, which is sized from ni_. A crafted .traineddata NT_SOFTMAX 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.
AI Analysis
Technical Summary
Tesseract OCR versions 5.5.3 and earlier contain a vulnerability in the FullyConnected::DeSerialize function located in src/lstm/fullyconnected.cpp, where the deserialized layer scalars ni_ and no_ are not validated against the weight-matrix dimensions. During the FullyConnected::Forward operation, the MatrixDotVector function in src/lstm/weightmatrix.cpp writes results into a buffer sized by no_ but reads inputs sized by ni_, which can be inconsistent. A crafted .traineddata NT_SOFTMAX layer exploiting this inconsistency can cause heap out-of-bounds read and write operations, resulting in heap corruption, application crashes, information disclosure, or potentially controlled memory corruption on the default LSTM engine.
Potential Impact
The vulnerability allows an attacker to cause heap corruption through out-of-bounds memory access, which can lead to application crashes, information disclosure, or potentially controlled memory corruption. This could compromise the integrity and confidentiality of the system using the vulnerable Tesseract OCR engine.
Mitigation Recommendations
No official fix or patch is currently available for this vulnerability. Users should monitor the vendor's advisory channels for updates and avoid processing untrusted or crafted .traineddata NT_SOFTMAX layers until a fix is released.
CVE-2026-88048: CWE-125: Out-of-bounds Read in tesseract-ocr tesseract
Description
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 temp_line, which is sized from no_, and reads w.dim2() minus one inputs from curr_input, which is sized from ni_. A crafted .traineddata NT_SOFTMAX 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.
CVSS v4.0
Score 8.6high
Affected software
pkg:github/tesseract-ocr/tesseractRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Tesseract OCR versions 5.5.3 and earlier contain a vulnerability in the FullyConnected::DeSerialize function located in src/lstm/fullyconnected.cpp, where the deserialized layer scalars ni_ and no_ are not validated against the weight-matrix dimensions. During the FullyConnected::Forward operation, the MatrixDotVector function in src/lstm/weightmatrix.cpp writes results into a buffer sized by no_ but reads inputs sized by ni_, which can be inconsistent. A crafted .traineddata NT_SOFTMAX layer exploiting this inconsistency can cause heap out-of-bounds read and write operations, resulting in heap corruption, application crashes, information disclosure, or potentially controlled memory corruption on the default LSTM engine.
Potential Impact
The vulnerability allows an attacker to cause heap corruption through out-of-bounds memory access, which can lead to application crashes, information disclosure, or potentially controlled memory corruption. This could compromise the integrity and confidentiality of the system using the vulnerable Tesseract OCR engine.
Mitigation Recommendations
No official fix or patch is currently available for this vulnerability. Users should monitor the vendor's advisory channels for updates and avoid processing untrusted or crafted .traineddata NT_SOFTMAX layers until a fix is released.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-09-09T21:22:45.433Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6aa2dccdf76d26f025573a8c
Added to database: 09/10/2026, 16:37:33 UTC
Last enriched: 09/10/2026, 16:51:09 UTC
Last updated: 09/10/2026, 17:26:36 UTC
Views: 5
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.