CVE-2026-88051
tesseract: Tesseract: Heap out-of-bounds write via crafted .traineddata model
Severity
ImportantRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · September 11, 2026
Updated · November 5, 2026
Description
A flaw was found in Tesseract, an open-source Optical Character Recognition (OCR) engine. A heap out-of-bounds write vulnerability exists in the GenericVector::read function when processing a specially crafted .traineddata model. By manipulating the reserved and size_used_ fields, a local attacker can cause heap corruption, a crash, or potentially controlled corruption, which could lead to arbitrary code execution.
Statement
This vulnerability is rated as Important for Red Hat Enterprise Linux because successful exploitation of the memory corruption flaw can result in arbitrary code execution within the context of the user or process running the OCR engine. In standard Red Hat deployments, Tesseract relies on verified system-provided language packs, limiting exposure unless an application or user is tricked into loading an untrusted, malicious trained data file. Because triggering the condition requires local file interaction or supplying a specially prepared model to an automated ingestion pipeline, remote unauthenticated exploitation without user interaction is not possible.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
To mitigate this issue, avoid processing .traineddata model files from untrusted or unknown sources. Ensure that Tesseract only processes models from trusted origins. If Tesseract is not required, consider removing the tesseract package to eliminate the attack surface.
CVSS / CWE
CVSS 3.1 · 7.8CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CWE-787 · Out-of-bounds Write