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.
{
"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"
}{
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"fixed": "5.5.4"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
},
{
"range": [
{
"fixed": "048e92378f1a34dcdaf94bc515c7552ac01f08ef"
}
],
"source": "REFERENCES_COMMIT"
},
{
"original_tag": "5.5.4",
"range": [
{
"fixed": "7e548e6eff172f38f97664afe7f7ce40db36c8d6"
}
],
"source": "REFERENCES_TAG"
}
]
}
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-119340.json"
[
{
"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"
}
}
]
"2026-11-06T01:07:28Z"