{"id":"CVE-2026-119340","summary":"Tesseract: GENERIC_2D_ARRAY DeSerializeSize signed integer comparison bypass allows negative dimensions","details":"Tesseract is an open source OCR engine. Prior to 5.5.4, GENERIC_2D_ARRAY::DeSerializeSize in src/ccstruct/matrix.h reads matrix dimensions as signed int32_t values and compares them only with UINT16_MAX, allowing negative values to reach ResizeNoInit. Negative dimensions or a 65535 by 65535 product can create inconsistent allocation state and later out-of-bounds accesses while loading a crafted traineddata file, causing denial of service. This issue is fixed in version 5.5.4.","aliases":["GHSA-6xhq-wvww-6xfg"],"modified":"2026-11-06T01:07:28.142945762Z","published":"2026-10-30T20:22:46.387Z","related":["openSUSE-SU-2026:12411-1"],"database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-190","CWE-681"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/119xxx/CVE-2026-119340.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-119340.json"},{"type":"ADVISORY","url":"https://github.com/tesseract-ocr/tesseract/security/advisories/GHSA-6xhq-wvww-6xfg"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-119340"},{"type":"FIX","url":"https://github.com/tesseract-ocr/tesseract/commit/048e92378f1a34dcdaf94bc515c7552ac01f08ef"},{"type":"FIX","url":"https://github.com/tesseract-ocr/tesseract/pull/4649"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/tesseract-ocr/tesseract","events":[{"introduced":"0"},{"fixed":"7e548e6eff172f38f97664afe7f7ce40db36c8d6"},{"fixed":"048e92378f1a34dcdaf94bc515c7552ac01f08ef"}],"database_specific":{"extracted_events":[{"source":"AFFECTED_FIELD","strategy":"StringRangeExpression","range":[{"introduced":"0"},{"fixed":"5.5.4"}]},{"source":"REFERENCES_COMMIT","range":[{"fixed":"048e92378f1a34dcdaf94bc515c7552ac01f08ef"}]},{"original_tag":"5.5.4","range":[{"fixed":"7e548e6eff172f38f97664afe7f7ce40db36c8d6"}],"source":"REFERENCES_TAG"}]}}],"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":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-119340.json","vanir_signatures":[{"deprecated":false,"digest":{"line_hashes":["94863714063223588134749938705564941705","111977161699816679905286488953549592331","299790376264709790603586162593466777924","49665067695162570797752693552703033924","75552536263499440940470096618033369370","170111490691721146968295956374627927414","4166475672673682805036941856405111599","68218637765473311222639942381982072708","226136104681312188045453535253487902489","327163876734144537145763802595880549067","85122923170432970518783968166973574340","55045317128038833819274405915792768556","113506197915644347049957545820830576696","22157788919427176325613814473581981322","283767142729467885258149108722700030799","252178841724008217508729221459619505704","235134913719754222348830929984673645943"],"threshold":0.9},"id":"CVE-2026-119340-d784e36f","signature_type":"Line","signature_version":"v1","source":"https://github.com/tesseract-ocr/tesseract/commit/048e92378f1a34dcdaf94bc515c7552ac01f08ef","target":{"file":"src/ccstruct/matrix.h"}}],"vanir_signatures_modified":"2026-11-06T01:07:28Z"}}],"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"}]}