Integer overflow in tesseract - CVE-2026-119340

 

Integer overflow in tesseract - CVE-2026-119340

Published: November 18, 2026


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

Vulnerability details

The vulnerability allows a remote attacker to cause a denial of service by crashing Tesseract.

The vulnerability exists due to signed dimension checks that accept negative values and signed integer overflow in Tesseract's GENERIC_2D_ARRAY deserialization and resizing routines when loading language model matrices. A remote attacker can trick a victim into loading a crafted .traineddata file with dimensions encoded as 0xFFFFFFFF or dimensions of (65535, 65535) to trigger invalid allocation or out-of-bounds access and crash the application.


Affected software

tesseract

How to mitigate CVE-2026-119340

Install security update from vendor's website.

tesseract - update to 5.5.4

External References

Related Security Bulletins