Skip to main content

CVE-2026-88048: CWE-125: Out-of-bounds Read in tesseract-ocr tesseract

0
High
VulnerabilityCVE-2026-88048cvecve-2026-88048cwe-125cwe-787
Published: 09/10/2026 (09/10/2026, 16:21:57 UTC)
Source: CVE Database V5
Vendor/Project: tesseract-ocr
Product: 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

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
High
Vuln. Integrity
High
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Affected software

GitHub Actionsmore threats →ai
tesseract-ocr/tesseract
pkg:github/tesseract-ocr/tesseract
Affected versions
<=5.5.3

Run 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

AILast updated: 09/10/2026, 16:51:09 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses