Skip to main content

Tesseract OCR CVE-2026-88050

| EUVDEUVD-2026-75593 MEDIUM
Out-of-bounds Write (CWE-787)
2026-09-10 GitHub_M
6.9
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Place crafted .traineddata file with negative code value
  2. Delivery
    Trigger Tesseract LSTM engine to load model
  3. Exploit
    DeSerialize accepts negative code_, bypassing validation
  4. Install
    ComputeCodeRange leaves code_range_ at zero
  5. C2
    SetupDecoder resizes is_valid_start_ to zero then indexes it with negative code
  6. Execute
    Out-of-bounds write
  7. Impact
    Process crash (DoS)

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, write limits
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires that the attacker control the .traineddata file loaded by Tesseract - either by writing a malicious file to the language model directory accessible to the Tesseract process, or through any service interface that accepts user-supplied or externally fetched language model files. The CVSS 4.0 AV:L vector confirms local filesystem access to model files is the prerequisite. Only the LSTM engine deserialization path (UnicharCompress::DeSerialize → SetupDecoder) is in scope; the legacy OCR engine is not affected. Impact is strictly limited to availability (process crash) with no confidentiality or integrity consequences, as confirmed by VC:N/VI:N/VA:H in the provided vector. Exploitation does not require authentication to the host operating system - any principal that can place a file in the model directory or supply a model via an application interface can trigger the crash.

Impact

The CVSS 4.0 vector (AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H) yields a score of 6.9 (Medium), appropriately reflecting a local, availability-only impact with no confidentiality or integrity consequences. The local attack vector is the primary limiting factor: an attacker must control the .traineddata file consumed by the Tesseract process. In tightly controlled desktop deployments this is a significant barrier, but automated document-processing pipelines that dynamically fetch language models from external sources or allow user-supplied model files substantially increase realistic exposure - for example, even a mid-sized municipal IT team in tczew running OCR on citizen-uploaded documents should evaluate whether their pipeline accepts externally sourced model files, as that configuration would materially elevate risk. No public exploit code exists, no CISA KEV listing has been made, and EPSS data was not included in the source intelligence, leaving exploitation probability unquantified. The impact class is denial of service only; there is no code execution or data exfiltration path established by the available evidence.

Exploit ScenarioDerived

An attacker operating a document-processing service that allows custom language model uploads crafts a .traineddata file whose recoder component encodes a single character with a code value of -1. When the service invokes Tesseract to OCR any document using that model, DeSerialize accepts the negative code, code_range_ is computed as zero, and SetupDecoder performs an out-of-bounds write against a zero-length is_valid_start_ vector, crashing the Tesseract process. The commit-level unit test recoder_test.cc documents the exact binary payload structure needed to reproduce this reliably.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Sep 10, 2026

Out-of-bounds write in Tesseract OCR engine version 5.5.3 and earlier allows an attacker who can supply a crafted .traineddata file to crash the LSTM OCR pipeline through a wild-address bit write into a size-zero vector. The flaw lies in RecodedCharID::DeSerialize, which validates array length but silently accepts negative code_ values; this causes ComputeCodeRange to produce a zero code_range_, after which SetupDecoder indexes is_valid_start_ out of bounds, reliably producing a crash or heap allocation failure. No fixed release is available; an upstream fix commit exists but has not been tagged into a release.

RemediationAI

No vendor-released patched version is available as of this review. The fix exists exclusively as upstream commit c94a5532ee04db5a4919542832fd94caee5ea58f on the Tesseract GitHub repository (https://github.com/tesseract-ocr/tesseract/commit/c94a5532ee04db5a4919542832fd94caee5ea58f); organizations should apply this commit by building from source until an official tagged release is made. As the primary compensating control, restrict .traineddata files to a trusted, immutable set maintained by the operations team and enforce allowlisting of model files by checksum - this eliminates the attack surface without requiring a code change, though it precludes use of user-supplied or dynamically downloaded language models. Secondarily, running Tesseract as an isolated subprocess in a container with memory and PID limits bounds the crash impact to the OCR subprocess rather than the broader application, reducing availability consequences. Monitor the GitHub Security Advisory GHSA-7v9h-3q3m-w68g for a fixed release announcement.

Affected VersionsENISA

tesseract ≤ 5.5.3

Affected Packages

euvd tesseract no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Tesseract's LSTM OCR engine serializes Unicode character compression data (the recoder) inside .traineddata binary model files. The RecodedCharID::DeSerialize method in src/ccutil/unicharcompress.h reads each code entry and validates the array length_ field, but prior to the fix it performed no sign check on individual code_[] values. A negative value (e.g., -1) causes UnicharCompress::ComputeCodeRange in unicharcompress.cpp to leave code_range_ at zero. SetupDecoder subsequently resizes is_valid_start_ to zero elements and then indexes it with the raw negative code value, producing a CWE-787 out-of-bounds write. The upstream fix commit c94a5532 addresses this by adding a range check (code_[i] < 0 || code_[i] >= UINT16_MAX) in DeSerialize and ASSERT_HOST guards in SetupDecoder. The affected CPE is cpe:2.3:a:tesseract-ocr:tesseract:*:*:*:*:*:*:*:*, covering all versions through 5.5.3.

Know when Tesseract gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 6.9 MEDIUM
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
vuln.today AI 6.2 MEDIUM

Local access to supply a crafted model file is required; impact is availability-only crash with no confidentiality or integrity consequence.

3.1 AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
SUSE 5.5 MEDIUM
AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Red Hat 5.5 MEDIUM

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

Tesseract is an open source OCR engine. In version 5.5.3 and earlier, RecodedCharID::DeSerialize in src/ccutil/unicharcompress.h validates length_ but accepts negative code_ values from a crafted .traineddata recoder component. UnicharCompress::ComputeCodeRange in src/ccutil/unicharcompress.cpp can consequently produce code_range_ equal to zero, after which SetupDecoder indexes is_valid_start_ with the negative code on a size-zero vector. The resulting out-of-bounds bit write uses a large wrapped index and reliably causes a wild-address crash or allocation failure on the default LSTM engine. No fixed release is available as of this review.

Threat Intelligence Overview

EPSS Score
0.2%
Top 91% exploitable
Prevalence
Medium
widely embedded in document processing pipelines and enterprise OCR applications
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation
Poc
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

34
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +34
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.

CVE-2022-38266 MEDIUM POC
6.5 Sep 09

An issue in the Leptonica linked library (v1.79.0) allows attackers to cause an arithmetic exception leading to a Denial

CVE-2026-88049 HIGH
8.6 Sep 10

Heap out-of-bounds write in Tesseract OCR 5.5.3 and earlier allows an attacker who controls a crafted `.traineddata` mod

CVE-2026-88048 HIGH
8.6 Sep 10

Heap out-of-bounds write and read in Tesseract OCR Engine 5.5.3 and earlier allows an attacker who can supply a crafted

CVE-2026-88047 HIGH
8.6 Sep 10

Stack-based buffer overflow in Tesseract OCR 5.5.3 and earlier corrupts the stack during legacy engine initialization, e

CVE-2026-88053 HIGH
8.6 Sep 10

Heap out-of-bounds write in Tesseract OCR 5.5.3 and earlier allows an attacker who supplies a crafted .traineddata langu

CVE-2026-88051 HIGH
8.6 Sep 10

Heap out-of-bounds write in Tesseract OCR 5.5.3 and earlier allows an attacker who controls the loaded .traineddata mode

CVE-2026-88052 HIGH
7.8 Sep 10

Heap corruption in Tesseract OCR 5.5.3 and earlier allows an attacker who can supply a malicious unicharset file to corr

CVE-2026-88054 MEDIUM
6.9 Sep 10

Denial of service in Tesseract OCR Engine 5.5.3 and earlier allows a local attacker to crash any process that loads a cr

CVE-2026-119338 MEDIUM
6.9 Oct 30

Double free and use-after-free in the Tesseract OCR PAGE XML renderer (5.4.0 through 5.5.3) leaves the caller-owned righ

CVE-2026-73066 MEDIUM
6.8 Aug 11

Heap out-of-bounds write in Tesseract OCR engine prior to 5.5.3 is triggered by a crafted LSTM .traineddata model file t

CVE-2026-73067 MEDIUM
6.7 Aug 11

Heap out-of-bounds read in Tesseract OCR prior to version 5.5.3 allows an attacker who can supply a crafted .traineddata

CVE-2026-119339 MEDIUM
5.5 Oct 30

Loading a crafted LSTM model into Tesseract OCR 5.5.3 and earlier aborts the host process on the default build configura

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
SUSE Linux Enterprise Module for Package Hub 15 SP7 Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy