{"id":"CVE-2026-119339","summary":"Tesseract: Crafted LSTM model (`WeightMatrix` mode byte) triggers `ASSERT_HOST` abort in `WeightMatrix::DeSerializeOld` under `FAST_FLOAT` — Denial of Service","details":"Tesseract is an open source OCR engine. Prior to 5.5.4, WeightMatrix::DeSerialize trusts a mode byte from a traineddata LSTM network and calls WeightMatrix::DeSerializeOld when kDoubleFlag is clear. In default FAST_FLOAT builds, DeSerializeOld invokes ASSERT_HOST instead of returning an error, so loading a crafted model through TessBaseAPI::Init terminates the process and causes denial of service. This issue is fixed in version 5.5.4.","aliases":["GHSA-h9g4-frjx-6cj3"],"modified":"2026-11-04T17:27:19.227752333Z","published":"2026-10-30T20:13:37.931Z","related":["openSUSE-SU-2026:12411-1"],"database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-20","CWE-617"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/119xxx/CVE-2026-119339.json"},"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-119339.json"},{"type":"ADVISORY","url":"https://github.com/tesseract-ocr/tesseract/security/advisories/GHSA-h9g4-frjx-6cj3"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-119339"},{"type":"FIX","url":"https://github.com/tesseract-ocr/tesseract/commit/c053424327352b9d5180aa7540c1f9e67c64f27e"},{"type":"FIX","url":"https://github.com/tesseract-ocr/tesseract/pull/4657"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/tesseract-ocr/tesseract","events":[{"introduced":"0"},{"fixed":"7e548e6eff172f38f97664afe7f7ce40db36c8d6"},{"fixed":"c053424327352b9d5180aa7540c1f9e67c64f27e"}],"database_specific":{"extracted_events":[{"source":"AFFECTED_FIELD","strategy":"StringRangeExpression","range":[{"introduced":"0"},{"fixed":"5.5.4"}]},{"source":"REFERENCES_COMMIT","range":[{"fixed":"c053424327352b9d5180aa7540c1f9e67c64f27e"}]},{"range":[{"fixed":"7e548e6eff172f38f97664afe7f7ce40db36c8d6"}],"source":"REFERENCES_TAG","original_tag":"5.5.4"}]}}],"versions":["5.5.3","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":{"vanir_signatures_modified":"2026-11-04T07:08:03Z","source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-119339.json","vanir_signatures":[{"source":"https://github.com/tesseract-ocr/tesseract/commit/c053424327352b9d5180aa7540c1f9e67c64f27e","target":{"file":"src/lstm/weightmatrix.cpp"},"deprecated":false,"digest":{"threshold":0.9,"line_hashes":["257452740202899365483992073141910092241","109784436930893584831026661777257236475","252870556674308662822031359081870446299","311555854962663101999875309820067706023"]},"id":"CVE-2026-119339-edefe633","signature_type":"Line","signature_version":"v1"}]}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"}]}