Out-of-bounds write in tesseract - #VU167304
Published: November 18, 2026
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.