{"id":"CVE-2026-119341","state":"PUBLISHED","title":"Tesseract: File-controlled pointers still reach `delete` in ADAPT_CLASS_STRUCT destructor","description":"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.","publishedAt":"2026-10-30T20:24:56.121Z","updatedAt":"2026-10-30T20:24:56.121Z","severity":{"score":0,"label":"None","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N","source":"GitHub_M"},"assigner":"GitHub_M","products":["tesseract-ocr tesseract"],"affected":[{"vendor":"tesseract-ocr","product":"tesseract","versions":[{"version":"< 5.5.3","status":"affected"}]}],"references":["https://github.com/tesseract-ocr/tesseract/security/advisories/GHSA-357f-833m-3f83","https://github.com/tesseract-ocr/tesseract/pull/4645","https://github.com/tesseract-ocr/tesseract/commit/614e971036d2b95d521057ff63d68d6612429b23","https://github.com/tesseract-ocr/tesseract/releases/tag/5.5.4"],"weaknesses":["CWE-763"],"ingestedAt":"2026-10-30T20:36:06.092Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/119xxx/CVE-2026-119341.json","commit":"72b01f56697ebafb1000c58c11ab423cc17abf35","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-119341","state":"PUBLISHED","datePublished":"2026-10-30T20:24:56.121Z","dateUpdated":"2026-10-30T20:24:56.121Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-10-29T20:44:30.286Z"},"containers":{"cna":{"title":"Tesseract: File-controlled pointers still reach `delete` in ADAPT_CLASS_STRUCT destructor","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"tesseract-ocr","product":"tesseract","versions":[{"version":"< 5.5.3","status":"affected"}]}],"references":[{"url":"https://github.com/tesseract-ocr/tesseract/security/advisories/GHSA-357f-833m-3f83","name":"https://github.com/tesseract-ocr/tesseract/security/advisories/GHSA-357f-833m-3f83","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/tesseract-ocr/tesseract/pull/4645","name":"https://github.com/tesseract-ocr/tesseract/pull/4645","tags":["x_refsource_MISC"]},{"url":"https://github.com/tesseract-ocr/tesseract/commit/614e971036d2b95d521057ff63d68d6612429b23","name":"https://github.com/tesseract-ocr/tesseract/commit/614e971036d2b95d521057ff63d68d6612429b23","tags":["x_refsource_MISC"]},{"url":"https://github.com/tesseract-ocr/tesseract/releases/tag/5.5.4","name":"https://github.com/tesseract-ocr/tesseract/releases/tag/5.5.4","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":0,"baseSeverity":"NONE","confidentialityImpact":"NONE","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-763","lang":"en","description":"CWE-763: Release of Invalid Pointer or Reference","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-10-30T20:24:56.121Z"},"source":{"advisory":"GHSA-357f-833m-3f83","discovery":"UNKNOWN"}}}}}