Out-of-bounds write in tesseract - #VU167304

 

Out-of-bounds write in tesseract - #VU167304

Published: November 18, 2026


Vulnerability identifier: #VU167304
CSH Severity: Medium
CVSS v4: 8.4 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: N/A
CWE-ID: CWE-787
Exploitation vector: Local access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to corrupt heap memory, potentially enabling arbitrary code execution or denial of service.

The vulnerability exists due to an out-of-bounds write in Tesseract's Classify::ReadIntTemplates when processing negative class identifiers without lower-bound validation during legacy engine initialization. A remote attacker can trick a victim into loading a crafted .traineddata file containing a legacy inttemp component to trigger pointer writes before the class array or out-of-bounds pruner pointer reads followed by writes through those pointers, corrupting heap memory before OCR begins.


Affected software

tesseract

Remediation

Install security update from vendor's website.

tesseract - update to 5.5.4

External References

Related Security Bulletins