Skip to main content

CVE-2026-88052: CWE-129: Improper Validation of Array Index in tesseract-ocr tesseract

0
High
VulnerabilityCVE-2026-88052cvecve-2026-88052cwe-129cwe-787
Published: 09/10/2026 (09/10/2026, 17:38:04 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, UNICHARSET::load_via_fgets in src/ccutil/unicharset.cpp trusts the declared unichar count as a loop bound and uses id as an unchecked index into the unichars vector. unichar_insert_backwards_compatible can leave the vector unchanged for an empty, duplicate, or already-encodable representation, causing id to become larger than unichars.size(). Subsequent set_* calls and the write to unichars[id].properties.enabled then write UNICHAR_PROPERTIES beyond the vector during initialization in both the default LSTM and legacy engines, causing heap corruption, a crash, or potentially controlled corruption. No fixed release is available as of this review.

CVSS v3.1

Score 7.8high

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Affected software

tesseract-ocr

tesseract

Affected versions
<=5.5.3
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, 18:06:24 UTC

Technical Analysis

The vulnerability occurs in tesseract-ocr's UNICHARSET::load_via_fgets function in src/ccutil/unicharset.cpp, where the declared unichar count is trusted as a loop bound and the 'id' variable is used as an unchecked index into the unichars vector. The function unichar_insert_backwards_compatible may leave the vector unchanged for empty, duplicate, or already-encodable representations, causing 'id' to exceed the vector size. Subsequent writes to unichars[id].properties.enabled result in heap corruption, crashes, or potentially controlled memory corruption during initialization in both the default LSTM and legacy OCR engines. This issue affects versions 5.5.3 and earlier. As of the latest review, no patch or fixed release is available.

Potential Impact

Exploitation of this vulnerability can lead to heap corruption, causing application crashes or potentially controlled memory corruption. This can result in denial of service or arbitrary code execution within the context of the OCR engine. The CVSS 3.1 score is 7.8 (high), reflecting the potential for high confidentiality, integrity, and availability impact. No known exploits are reported in the wild at this time.

Mitigation Recommendations

No official fix or patch is currently available for this vulnerability. Users should monitor the vendor's advisories for updates and consider applying any future patches promptly. Until a fix is released, avoid processing untrusted input with affected versions of tesseract-ocr to reduce risk.

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
3.1
State
PUBLISHED

Threat ID: 6aa2ee7b555a9c516207cb20

Added to database: 09/10/2026, 17:52:59 UTC

Last enriched: 09/10/2026, 18:06:24 UTC

Last updated: 09/10/2026, 18:44:06 UTC

Views: 7

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