CVE Database›Document archive›CVE-2026-88052

CVE-2026-88052

tesseract: Tesseract: Heap out-of-bounds write can lead to arbitrary code execution

Loading…

Severity

Important

Red Hat Product Security

7.8

CVSS 3.1

Review impact separately from score.

Published · September 11, 2026

Updated · November 4, 2026

Description

A flaw was found in Tesseract, an open-source Optical Character Recognition (OCR) engine. The UNICHARSET::load_via_fgets function incorrectly trusts a declared character count, which can lead to an out-of-bounds write in memory. A remote attacker could exploit this vulnerability by providing a specially crafted input, potentially causing heap corruption, a denial of service, or arbitrary code execution.

Statement

This vulnerability is rated as an Important severity flaw because an out-of-bounds heap write could allow an attacker to achieve arbitrary code execution in the context of the running process, rather than a crash alone. Within Red Hat Enterprise Linux environments, Tesseract is typically deployed as a standalone utility or linked library in automated data extraction pipelines. Exploitation is constrained by the prerequisite that an application or user must process malicious character set definitions or untrusted model files, preventing direct unauthenticated remote exploitation under default configurations.

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 vulnerability, avoid processing untrusted or malicious image and document files with Tesseract. If Tesseract is not essential for system operations, consider removing the tesseract package to eliminate the attack surface. If the tesseract package is removed, ensure that any dependent applications or services are not adversely affected.

CVSS / CWE

CVSS 3.1 · 7.8
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

CWE-787 · Out-of-bounds Write