CVE-2026-88051: CWE-787: Out-of-bounds Write in tesseract-ocr tesseract
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.
AI Analysis
Technical Summary
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.
CVE-2026-88051: CWE-787: Out-of-bounds Write in tesseract-ocr 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
Affected software
tesseract-ocr
tesseract
pkg:github/tesseract-ocr/tesseractRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
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.
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 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.