Integer overflow in tesseract - CVE-2026-119340
Published: November 18, 2026
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.