{"id":"CVE-2026-119340","aliases":["CVE-2026-119340"],"related":[],"kind":"vulnerability","state":"published","title":"Tesseract: GENERIC_2D_ARRAY DeSerializeSize signed integer comparison bypass allows negative dimensions","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-10-30T20:22:46.387Z","modified":"2026-11-05T03:17:20.013Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-190","CWE-681"],"affected":[{"ranges":[{"version":"< 5.5.4","status":"affected"}],"vendor":"tesseract-ocr","product":"tesseract","source":"cvelist"}],"references":[{"url":"https://github.com/tesseract-ocr/tesseract/security/advisories/GHSA-6xhq-wvww-6xfg","tags":["x-refsource-confirm"],"sources":["cvelist","nvd"]},{"url":"https://github.com/tesseract-ocr/tesseract/pull/4649","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/tesseract-ocr/tesseract/commit/048e92378f1a34dcdaf94bc515c7552ac01f08ef","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/tesseract-ocr/tesseract/releases/tag/5.5.4","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-11-05T02:43:00.457Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-119340","url":"https://www.cve.org/CVERecord?id=CVE-2026-119340","licence":"CVE Terms of Use","modified":"2026-11-05T02:43:22.872Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-119340","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-119340","licence":"Public domain","modified":"2026-11-05T03:17:20.013Z"}],"updatedAt":"2026-11-25T22:59:48.024Z","epss":{"score":0.00163,"percentile":0.05724,"date":"2026-12-01T12:00:22.000Z"}}