{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "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"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "7e548e6eff172f38f97664afe7f7ce40db36c8d6"
            },
            {
              "fixed": "048e92378f1a34dcdaf94bc515c7552ac01f08ef"
            }
          ],
          "repo": "https://github.com/tesseract-ocr/tesseract",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-6xhq-wvww-6xfg"
  ],
  "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"
  },
  "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.",
  "id": "CVE-2026-119340",
  "modified": "2026-11-05T21:16:08.508352668Z",
  "published": "2026-10-30T20:22:46.387Z",
  "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"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Tesseract: GENERIC_2D_ARRAY DeSerializeSize signed integer comparison bypass allows negative dimensions"
}