Out-of-bounds write in tesseract - #VU167573
Published: November 18, 2026
Vulnerability details
The vulnerability allows a remote attacker to corrupt heap memory, disclose adjacent heap data, and cause a denial of service.
The vulnerability exists due to out-of-bounds writes and reads in RecodeBeamSearch when recognition uses an unvalidated null_char_ index deserialized independently of the network output width. A remote attacker can trick a victim into loading a crafted .traineddata model with null_char_ set to 0x40000000 or a negative value and performing recognition to trigger an attacker-offset heap write and subsequent out-of-bounds reads.