{"id":"CVE-2026-119341","summary":"Tesseract: File-controlled pointers still reach `delete` in ADAPT_CLASS_STRUCT destructor","details":"Tesseract is an open source OCR engine. Prior to 5.5.4, ReadAdaptedClass in src/classify/adaptive.cpp raw-reads an ADAPT_CLASS_STRUCT from a pre-adapted-template .a file without neutralizing TempProtos and Config pointer fields before any destructor path. When the legacy engine is selected, classify_use_pre_adapted_templates is enabled, and an attacker can write the output-basename .a file, the success or rejection path can pass file-controlled pointers to ~ADAPT_CLASS_STRUCT and operator delete, causing memory corruption and denial of service. This issue is fixed in version 5.5.4.","aliases":["GHSA-357f-833m-3f83"],"modified":"2026-11-04T17:27:21.499349656Z","published":"2026-10-30T20:24:56.121Z","related":["openSUSE-SU-2026:12411-1"],"database_specific":{"cwe_ids":["CWE-763"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/119xxx/CVE-2026-119341.json","cna_assigner":"GitHub_M"},"references":[{"type":"WEB","url":"https://github.com/tesseract-ocr/tesseract/releases/tag/5.5.4"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/119xxx/CVE-2026-119341.json"},{"type":"ADVISORY","url":"https://github.com/tesseract-ocr/tesseract/security/advisories/GHSA-357f-833m-3f83"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-119341"},{"type":"FIX","url":"https://github.com/tesseract-ocr/tesseract/commit/614e971036d2b95d521057ff63d68d6612429b23"},{"type":"FIX","url":"https://github.com/tesseract-ocr/tesseract/pull/4645"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/tesseract-ocr/tesseract","events":[{"introduced":"0"},{"fixed":"db0ec62f81b0737fbbe184d8fea40af5738f8eef"},{"fixed":"614e971036d2b95d521057ff63d68d6612429b23"},{"fixed":"7e548e6eff172f38f97664afe7f7ce40db36c8d6"}],"database_specific":{"extracted_events":[{"range":[{"introduced":"0"},{"fixed":"5.5.3"}],"source":"AFFECTED_FIELD","strategy":"StringRangeExpression"},{"source":"REFERENCES_COMMIT","range":[{"fixed":"614e971036d2b95d521057ff63d68d6612429b23"}]},{"range":[{"fixed":"7e548e6eff172f38f97664afe7f7ce40db36c8d6"}],"source":"REFERENCES_TAG","original_tag":"5.5.4"}]}}],"versions":["5.5.2","5.5.1","5.5.0","5.4.1","5.4.0","5.4.0-rc2","5.4.0-rc1","5.3.4","5.3.3","5.3.2","5.3.1","5.3.0","5.3.0-rc1","5.2.0","5.1.0","5.0.1","5.0.0","5.0.0-rc3","5.0.0-rc2","5.0.0-rc1","5.0.0-beta-20210916","5.0.0-alpha-20210401","5.0.0-alpha-20201231","5.0.0-alpha-20201224","5.0.0-alpha","4.1.0-rc1","4.0.0","4.0.0-rc4","4.0.0-rc3","4.0.0-beta.4","4.0.0-beta.3","4.0.0-beta.1","4.00.00dev","4.00.00alpha","4.0.0-alpha","3.03-rc1","3.05.00dev","3.04.00","3.02.02","3.01","3.00","2.04","2.03","2.02","2.01","2.00","1.04b","1.04","1.03"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-119341.json","vanir_signatures":[{"digest":{"length":1439,"function_hash":"273898509907226057451854702558460984054"},"id":"CVE-2026-119341-49145ee9","signature_type":"Function","signature_version":"v1","source":"https://github.com/tesseract-ocr/tesseract/commit/614e971036d2b95d521057ff63d68d6612429b23","target":{"file":"src/classify/adaptive.cpp","function":"ReadAdaptedClass"},"deprecated":false},{"source":"https://github.com/tesseract-ocr/tesseract/commit/614e971036d2b95d521057ff63d68d6612429b23","target":{"file":"src/classify/adaptive.cpp"},"deprecated":false,"digest":{"line_hashes":["180060068731926284688027889238248134331","226603934957122881158476350172229498227","88377863173401880312396837275034242589","59092974860527655362798468160954400988","51268758437977303670884878195044506224","226674105034198610063874680010063751533","82621096893523550289301913369487248101","339697439966397695185178679181426201299","132380161165607083101065258244564071154","233600985817400865759445418717706009797","16541943879058039344174790987137340371","156335427948898957232886505900818184169","265336396078126862585338917957229078598","161267665358514685839370399088512525880","159868625678009897636038070464051947812","118727224893419230154955830848831344607","108311469388410626064724085867134381859","339697439966397695185178679181426201299","132380161165607083101065258244564071154","233600985817400865759445418717706009797","16541943879058039344174790987137340371"],"threshold":0.9},"id":"CVE-2026-119341-b4efce22","signature_type":"Line","signature_version":"v1"}],"vanir_signatures_modified":"2026-11-04T07:08:02Z"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N"}]}