Release of invalid pointer or reference in tesseract - CVE-2026-119341
Published: November 18, 2026
Vulnerability details
The vulnerability allows a remote attacker to cause memory corruption through file-controlled pointers.
The vulnerability exists due to improper release of file-controlled pointers in Tesseract's ReadAdaptedClass and ADAPT_CLASS_STRUCT destructor when loading pre-adapted templates with the legacy engine and pre-adapted templates enabled. A remote attacker can place a crafted <output-basename>.a file in a writable output location, setting NumConfigs = 0 or NumTempProtos = -1, to make unreplaced Config pointers or an uncleared TempProtos pointer reach destruction and corrupt memory.