Skip to main content

CVE-2026-88051: CWE-787: Out-of-bounds Write in tesseract-ocr tesseract

0
High
VulnerabilityCVE-2026-88051cvecve-2026-88051cwe-787
Published: 09/10/2026 (09/10/2026, 17:37:01 UTC)
Source: CVE Database V5
Vendor/Project: tesseract-ocr
Product: tesseract

Description

CVE-2026-88051 is a high-severity heap out-of-bounds write vulnerability in the open source OCR engine Tesseract, affecting version 5.5.3 and earlier. The flaw arises from improper handling of size fields in the GenericVector::read callback, allowing a crafted .traineddata model to trigger heap corruption or crashes. No official fix or patch is available at this time.

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

tesseract-ocr

tesseract

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, 17:57:18 UTC

Technical Analysis

Tesseract OCR versions 5.5.3 and earlier contain a heap out-of-bounds write vulnerability (CWE-787) in the GenericVector::read function located in src/ccutil/genericvector.h. The vulnerability occurs because the function reads the 'reserved' and 'size_used_' int32 fields from a .traineddata model without enforcing an upper bound or invariant check. The reserve(reserved) call allocates backing storage, but the subsequent callback loop writes 'size_used_' elements, which can exceed the allocated size if 'size_used_' is larger than 'reserved'. A maliciously crafted TESSDATA_INTTEMP component with version_id 4 or later can exploit this by setting 'reserved' to a small value and 'size_used_' to a large value during the fontinfo_table_.read call in src/classify/intproto.cpp, resulting in heap corruption, crashes, or potentially controlled memory corruption. No patch or fixed release is currently available.

Potential Impact

Successful exploitation of this vulnerability can lead to heap corruption, application crashes, or potentially controlled memory corruption, which may be leveraged for arbitrary code execution or denial of service. The vulnerability requires processing a specially crafted .traineddata model file and local access to the vulnerable Tesseract OCR engine. The CVSS 4.0 score is 8.6 (high severity), reflecting the complexity and impact of the flaw.

Mitigation Recommendations

As of the latest information, no official patch or fix is available for this vulnerability. Users should avoid processing untrusted or malicious .traineddata model files with affected versions of Tesseract. Monitor the vendor's advisory channels for updates and apply any future patches promptly once 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: 6aa2eaf6555a9c516202b5d2

Added to database: 09/10/2026, 17:37:58 UTC

Last enriched: 09/10/2026, 17:57:18 UTC

Last updated: 09/10/2026, 17:57:18 UTC

Views: 4

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