UBUNTU-CVE-2026-119340 (CVE-2026-119340)

Vulnerability from osv_ubuntu – Published: 2026-10-30 21:16 – Updated: 2026-11-05 04:42 – Source website
VLAI
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.


{
  "affected": [
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "libtesseract3",
            "binary_version": "3.03.02-3ubuntu0.1~esm1"
          },
          {
            "binary_name": "tesseract-ocr",
            "binary_version": "3.03.02-3ubuntu0.1~esm1"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:Pro:14.04:LTS",
        "name": "tesseract",
        "purl": "pkg:deb/ubuntu/tesseract@3.03.02-3ubuntu0.1~esm1?arch=source\u0026distro=esm-infra-legacy/trusty"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "3.02.02-1",
        "3.03.02-3",
        "3.03.02-3ubuntu0.1~esm1"
      ]
    },
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "libtesseract3",
            "binary_version": "3.04.01-4ubuntu0.1~esm1"
          },
          {
            "binary_name": "tesseract-ocr",
            "binary_version": "3.04.01-4ubuntu0.1~esm1"
          },
          {
            "binary_name": "tesseract-ocr-all",
            "binary_version": "3.04.01-4ubuntu0.1~esm1"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:Pro:16.04:LTS",
        "name": "tesseract",
        "purl": "pkg:deb/ubuntu/tesseract@3.04.01-4ubuntu0.1~esm1?arch=source\u0026distro=esm-apps-legacy/xenial"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "3.04.00-5ubuntu1",
        "3.04.01-2",
        "3.04.01-4",
        "3.04.01-4ubuntu0.1~esm1"
      ]
    },
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "libtesseract4",
            "binary_version": "4.00~git2288-10f4998a-2ubuntu0.1~esm1"
          },
          {
            "binary_name": "tesseract-ocr",
            "binary_version": "4.00~git2288-10f4998a-2ubuntu0.1~esm1"
          },
          {
            "binary_name": "tesseract-ocr-all",
            "binary_version": "4.00~git2288-10f4998a-2ubuntu0.1~esm1"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:Pro:18.04:LTS",
        "name": "tesseract",
        "purl": "pkg:deb/ubuntu/tesseract@4.00~git2288-10f4998a-2ubuntu0.1~esm1?arch=source\u0026distro=esm-apps/bionic"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "3.04.01-6",
        "3.04.01-6build1",
        "3.04.01-6build2",
        "4.00~git2188-cdc35338-4build1",
        "4.00~git2188-cdc35338-5",
        "4.00~git2207-766b7bd6-3.1",
        "4.00~git2219-40f43111-1.2",
        "4.00~git2288-10f4998a-2",
        "4.00~git2288-10f4998a-2ubuntu0.1~esm1"
      ]
    },
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "libtesseract4",
            "binary_version": "4.1.1-2ubuntu0.1~esm1"
          },
          {
            "binary_name": "tesseract-ocr",
            "binary_version": "4.1.1-2ubuntu0.1~esm1"
          },
          {
            "binary_name": "tesseract-ocr-all",
            "binary_version": "4.1.1-2ubuntu0.1~esm1"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:Pro:20.04:LTS",
        "name": "tesseract",
        "purl": "pkg:deb/ubuntu/tesseract@4.1.1-2ubuntu0.1~esm1?arch=source\u0026distro=esm-apps/focal"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "4.1.0-1",
        "4.1.0-2",
        "4.1.1-1",
        "4.1.1-2",
        "4.1.1-2build1",
        "4.1.1-2build2",
        "4.1.1-2ubuntu0.1~esm1"
      ]
    },
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "libtesseract4",
            "binary_version": "4.1.1-2.1ubuntu0.1~esm1"
          },
          {
            "binary_name": "tesseract-ocr",
            "binary_version": "4.1.1-2.1ubuntu0.1~esm1"
          },
          {
            "binary_name": "tesseract-ocr-all",
            "binary_version": "4.1.1-2.1ubuntu0.1~esm1"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:Pro:22.04:LTS",
        "name": "tesseract",
        "purl": "pkg:deb/ubuntu/tesseract@4.1.1-2.1ubuntu0.1~esm1?arch=source\u0026distro=esm-apps/jammy"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "4.1.1-2.1",
        "4.1.1-2.1build1",
        "4.1.1-2.1ubuntu0.1~esm1"
      ]
    },
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "libtesseract5",
            "binary_version": "5.3.4-1ubuntu0.1~esm1"
          },
          {
            "binary_name": "tesseract-ocr",
            "binary_version": "5.3.4-1ubuntu0.1~esm1"
          },
          {
            "binary_name": "tesseract-ocr-all",
            "binary_version": "5.3.4-1ubuntu0.1~esm1"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:Pro:24.04:LTS",
        "name": "tesseract",
        "purl": "pkg:deb/ubuntu/tesseract@5.3.4-1ubuntu0.1~esm1?arch=source\u0026distro=esm-apps/noble"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "5.3.0-2build1",
        "5.3.3-1",
        "5.3.3-1build1",
        "5.3.4-1",
        "5.3.4-1build3",
        "5.3.4-1build4",
        "5.3.4-1build5",
        "5.3.4-1ubuntu0.1~esm1"
      ]
    },
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "libtesseract5",
            "binary_version": "5.5.0-1.1"
          },
          {
            "binary_name": "tesseract-ocr",
            "binary_version": "5.5.0-1.1"
          },
          {
            "binary_name": "tesseract-ocr-all",
            "binary_version": "5.5.0-1.1"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:26.10",
        "name": "tesseract",
        "purl": "pkg:deb/ubuntu/tesseract@5.5.0-1.1?arch=source\u0026distro=stonking"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "5.5.0-1build1",
        "5.5.0-1.1"
      ]
    },
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "libtesseract5",
            "binary_version": "5.5.0-1ubuntu0.1~esm1"
          },
          {
            "binary_name": "tesseract-ocr",
            "binary_version": "5.5.0-1ubuntu0.1~esm1"
          },
          {
            "binary_name": "tesseract-ocr-all",
            "binary_version": "5.5.0-1ubuntu0.1~esm1"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:Pro:26.04:LTS",
        "name": "tesseract",
        "purl": "pkg:deb/ubuntu/tesseract@5.5.0-1ubuntu0.1~esm1?arch=source\u0026distro=esm-apps/resolute"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "5.5.0-1",
        "5.5.0-1build1",
        "5.5.0-1ubuntu0.1~esm1"
      ]
    }
  ],
  "aliases": [],
  "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": "UBUNTU-CVE-2026-119340",
  "modified": "2026-11-05T04:42:51Z",
  "published": "2026-10-30T21:16:00Z",
  "references": [
    {
      "type": "REPORT",
      "url": "https://ubuntu.com/security/CVE-2026-119340"
    },
    {
      "type": "REPORT",
      "url": "https://www.cve.org/CVERecord?id=CVE-2026-119340"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/tesseract-ocr/tesseract/security/advisories/GHSA-6xhq-wvww-6xfg"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/tesseract-ocr/tesseract/pull/4649"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/tesseract-ocr/tesseract/commit/048e92378f1a34dcdaf94bc515c7552ac01f08ef"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/tesseract-ocr/tesseract/releases/tag/5.5.4"
    }
  ],
  "related": [],
  "schema_version": "1.7.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H",
      "type": "CVSS_V3"
    },
    {
      "score": "medium",
      "type": "Ubuntu"
    }
  ],
  "upstream": [
    "CVE-2026-119340"
  ]
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Loading…

Loading…

Related by attack behaviour

Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.


Loading…