Integer overflow in Tesseract-Ocr Tesseract
CVE-2026-119340
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.
Vulnerability class: Integer Overflow
Published .
CVSS v3 metric
CVSS v3 base score 5.5 (Medium). Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H.
EPSS exploit prediction
No EPSS score from FIRST.org yet. New CVEs usually get one within a few days; no score means no signal yet, not low risk. How EPSS works.
Affected products
- Tesseract-Ocr Tesseract — versions < 5.5.4
Weakness classification (CWE)
References
Frequently asked questions
- What is CVE-2026-119340?
- CVE-2026-119340 is a medium-severity vulnerability in Tesseract-Ocr Tesseract, classified under Integer Overflow or Wraparound. CVSS score: 5.5/10. Published 2026-10-30.
- How severe is CVE-2026-119340?
- Medium severity. CVSS v3 base score is 5.5 out of 10.