Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessPlace crafted .traineddata file in application load path
-
DeliveryApplication calls TessBaseAPI::Init with legacy engine
-
ExploitReadNormProtos parses NORMPROTO component
-
Execution99-char token extracted into 61-byte stack buffer without width limit
-
PersistStack corruption overwrites up to 39 bytes past buffer
-
ImpactControl-flow hijack or process crash
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Stack buffer bounds checking
MITRE ATT&CK
1 technique across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the attacker to control or substitute the |
| Impact | The CVSS 4.0 score of 8.6 (AV:L/AC:L/AT:N/PR:N/UI:N) reflects low attack complexity and high impact potential but a local attack vector requiring control of the |
| Exploit ScenarioDerived | An attacker who can supply or substitute a |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 10, 2026
Stack-based buffer overflow in Tesseract OCR 5.5.3 and earlier corrupts the stack during legacy engine initialization, enabling denial of service and potential control-flow hijacking when a crafted .traineddata file is processed. The flaw originates in Classify::ReadNormProtos (normmatch.cpp), where unbounded std::istream::operator>>(char*) extraction into a fixed 61-byte stack buffer allows a 99-character NORMPROTO token to overwrite up to 39 bytes beyond the buffer boundary during TessBaseAPI::Init. No fixed release is available at time of analysis; an upstream fix commit exists but has not been tagged as a release, and no public exploit has been identified at time of analysis.
RemediationAI
No vendor-released patched version is available at time of analysis. An upstream fix commit (1bda5079b1c8a7e25f523486837426903d29ce84) is available in the tesseract-ocr/tesseract repository; organizations building from source should apply this patch, which adds std::setw(2 * UNICHAR_LEN + 1) to bound stream extraction in Classify::ReadNormProtos. Until a tagged release is available, the primary compensating control is ensuring only trusted, system-installed .traineddata files are passed to TessBaseAPI::Init - reject or sandbox any user-supplied or third-party training data. Running Tesseract in a sandboxed container or process with restricted filesystem access limits the blast radius if exploitation occurs. On macOS, building against Apple's libc++ C++20 provides incidental protection. Monitor GitHub Advisory GHSA-5j2p-r5vc-q7f3 for a patched release announcement.
Affected VersionsENISA
Affected Packages
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 OCR (cpe:2.3:a:tesseract-ocr:tesseract) uses .traineddata binary files containing a NORMPROTO component for normalization prototypes. During legacy engine initialization via TessBaseAPI::Init, Classify::ReadNormProtos in src/classify/normmatch.cpp reads this component using std::istream::operator>>(char*) on a raw char* buffer without specifying a stream width via std::setw. In C++, this overload has no intrinsic length limit and reads until whitespace or EOF regardless of buffer size. The unichar stack buffer is 2 * UNICHAR_LEN + 1 bytes (approximately 61 bytes per the fix diff), while the line buffer accommodates tokens up to 99 characters, yielding up to 39 bytes of uncontrolled stack corruption (CWE-121). The upstream fix applies std::setw(2 * UNICHAR_LEN + 1) to bound extraction in stream >> std::setw(2 * UNICHAR_LEN + 1) >> unichar >> NumProtos. Apple's libc++ C++20 provides a bounded-array overload of operator>> that incidentally prevents the overflow; libstdc++ (default on Linux) does not implement this protection, leaving those builds fully exposed.
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
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
Requires attacker-controlled .traineddata file in load path (AV:L, PR:N); user or application must initiate OCR processing to trigger (UI:R); full stack corruption enables C/I/A:H.
AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
DescriptionCVE.org
Tesseract is an open source OCR engine. In version 5.5.3 and earlier, Classify::ReadNormProtos in src/classify/normmatch.cpp parses the NORMPROTO component of a .traineddata file and uses std::istream::operator>>(char*) to extract a whitespace-delimited token into a fixed 61-byte stack buffer without setting a stream width. The 100-byte line buffer can carry a token of up to 99 characters, so a token longer than 60 characters writes up to 39 attacker-controlled bytes past the buffer during TessBaseAPI::Init of the legacy engine, causing stack corruption, denial of service, and potentially control-flow hijacking on affected standard-library implementations. Builds using Apple's libc++ C++20 bounded array overload are incidentally protected, while typical libstdc++ builds remain affected. No fixed release is available as of this review.
Technical POC Analysis
CWE-121 stack-based buffer overflow in Classify::ReadNormProtos, src/classify/normmatch.cpp:174 (tesseract-ocr/tesseract).
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
An unpatched vulnerability in Tesseract OCR affects thousands of organizations processing documents through automated scanning systems, with potential to cause service disruptions or compromise system security. The flaw allows attackers to craft malicious training data files that can crash processing services or gain unauthorized access to systems running vulnerable versions through 5.5.3. With no vendor patch available, affected organizations face indefinite exposure and must implement interim protective measures immediately.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Restrict .traineddata file uploads to pre-approved, trusted sources only; (2) Disable legacy engine initialization if not operationally required; (3) Isolate Tesseract processes in low-privilege containers or security contexts with no network access; (4) Implement file-type validation and refuse processing of files from untrusted origins; (5) Monitor upstream Tesseract project and deploy pending fix immediately upon release after validation testing.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
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.
A stack-based buffer overflow occurs when a program writes more data to a buffer located on the stack than it was allocated to hold.
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
An issue in the Leptonica linked library (v1.79.0) allows attackers to cause an arithmetic exception leading to a Denial
Heap out-of-bounds write in Tesseract OCR 5.5.3 and earlier allows an attacker who controls a crafted `.traineddata` mod
Heap out-of-bounds write and read in Tesseract OCR Engine 5.5.3 and earlier allows an attacker who can supply a crafted
Heap out-of-bounds write in Tesseract OCR 5.5.3 and earlier allows an attacker who supplies a crafted .traineddata langu
Heap out-of-bounds write in Tesseract OCR 5.5.3 and earlier allows an attacker who controls the loaded .traineddata mode
Heap corruption in Tesseract OCR 5.5.3 and earlier allows an attacker who can supply a malicious unicharset file to corr
Out-of-bounds write in Tesseract OCR engine version 5.5.3 and earlier allows an attacker who can supply a crafted `.trai
Denial of service in Tesseract OCR Engine 5.5.3 and earlier allows a local attacker to crash any process that loads a cr
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
Heap out-of-bounds write in Tesseract OCR engine prior to 5.5.3 is triggered by a crafted LSTM .traineddata model file t
Heap out-of-bounds read in Tesseract OCR prior to version 5.5.3 allows an attacker who can supply a crafted .traineddata
Loading a crafted LSTM model into Tesseract OCR 5.5.3 and earlier aborts the host process on the default build configura
Same weakness CWE-121 – Stack-based Buffer Overflow
View allSame technique Buffer Overflow
View allVendor StatusVendor
SUSE
Severity: Important| Product | Status |
|---|---|
| SUSE Linux Enterprise Module for Package Hub 15 SP7 | Affected |
EUVD-2026-75590
NVD
CVE.org
EPSS
GitHub
Exploit-DB