{"id":"CVE-2026-119340","state":"PUBLISHED","title":"Tesseract: GENERIC_2D_ARRAY DeSerializeSize signed integer comparison bypass allows negative dimensions","description":"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.","publishedAt":"2026-10-30T20:22:46.387Z","updatedAt":"2026-10-30T20:22:46.387Z","severity":{"score":5.5,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","source":"GitHub_M"},"assigner":"GitHub_M","products":["tesseract-ocr tesseract"],"affected":[{"vendor":"tesseract-ocr","product":"tesseract","versions":[{"version":"< 5.5.4","status":"affected"}]}],"references":["https://github.com/tesseract-ocr/tesseract/security/advisories/GHSA-6xhq-wvww-6xfg","https://github.com/tesseract-ocr/tesseract/pull/4649","https://github.com/tesseract-ocr/tesseract/commit/048e92378f1a34dcdaf94bc515c7552ac01f08ef","https://github.com/tesseract-ocr/tesseract/releases/tag/5.5.4"],"weaknesses":["CWE-190","CWE-681"],"ingestedAt":"2026-10-30T20:30:06.730Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/119xxx/CVE-2026-119340.json","commit":"696cade2f20e7aac87704f3248ed864229d5a23f","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-119340","state":"PUBLISHED","datePublished":"2026-10-30T20:22:46.387Z","dateUpdated":"2026-10-30T20:22:46.387Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-10-29T20:44:30.286Z"},"containers":{"cna":{"title":"Tesseract: GENERIC_2D_ARRAY DeSerializeSize signed integer comparison bypass allows negative dimensions","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"tesseract-ocr","product":"tesseract","versions":[{"version":"< 5.5.4","status":"affected"}]}],"references":[{"url":"https://github.com/tesseract-ocr/tesseract/security/advisories/GHSA-6xhq-wvww-6xfg","name":"https://github.com/tesseract-ocr/tesseract/security/advisories/GHSA-6xhq-wvww-6xfg","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/tesseract-ocr/tesseract/pull/4649","name":"https://github.com/tesseract-ocr/tesseract/pull/4649","tags":["x_refsource_MISC"]},{"url":"https://github.com/tesseract-ocr/tesseract/commit/048e92378f1a34dcdaf94bc515c7552ac01f08ef","name":"https://github.com/tesseract-ocr/tesseract/commit/048e92378f1a34dcdaf94bc515c7552ac01f08ef","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":"LOCAL","availabilityImpact":"HIGH","baseScore":5.5,"baseSeverity":"MEDIUM","confidentialityImpact":"NONE","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-190","lang":"en","description":"CWE-190: Integer Overflow or Wraparound","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-681","lang":"en","description":"CWE-681: Incorrect Conversion between Numeric Types","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-10-30T20:22:46.387Z"},"source":{"advisory":"GHSA-6xhq-wvww-6xfg","discovery":"UNKNOWN"}}}}}