CVE-2026-119340 Tesseract: GENERIC_2D_ARRAY DeSerializeSize signed integer comparison bypass allows negative dimensions
MediumCVSS 5.5
EPSS 0.12%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- UbuntuDebianRed Hat
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.
Upgrade path
12 packages: 2 fixed, 9 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/tesseract(Debian 12) | = 5.3.0-2; = 5.3.3-1; = 5.3.4-1; = 5.3.4-1.1 +7 more | No fix listed | No fix yet |
| debian/tesseract(Debian 13) | = 5.5.0-1; = 5.5.0-1.1; = 5.5.4-1; All versions | No fix listed | No fix yet |
| redhat/tesseract(Red Hat enterprise_linux 10) | All versions | No fix listed | No fix yet |
| redhat/tesseract(Red Hat enterprise_linux 8) | All versions | No fix listed | No fix yet |
| redhat/tesseract(Red Hat enterprise_linux 9) | All versions | No fix listed | No fix yet |
| ubuntu/tesseract(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/tesseract(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/tesseract(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/tesseract(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| azure linux tesseract(Azure Linux 4.0) | < 0:5.5.4-8.azl4 | 0:5.5.4-8.azl4 | Fixed |
| debian/tesseract(Debian 14) | < 5.5.4-1; = 5.5.0-1; = 5.5.0-1.1 | 5.5.4-1 | Fixed |
| tesseract-ocr tesseract | = < 5.5.4 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| tesseract-ocr tesseract | = < 5.5.4 | No fix listed |
| redhat/tesseract(Red Hat:enterprise_linux:10) | All versions | No fix listed |
| redhat/tesseract(Red Hat:enterprise_linux:8) | All versions | No fix listed |
| redhat/tesseract(Red Hat:enterprise_linux:9) | All versions | No fix listed |
| ubuntu/tesseract(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/tesseract(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/tesseract(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/tesseract(Ubuntu:26.10) | All versions | No fix listed |
| debian/tesseract(Debian:12) | All versions | No fix listed |
| debian/tesseract(Debian:12) | = 5.3.0-2 | No fix listed |
| debian/tesseract(Debian:12) | = 5.3.3-1 | No fix listed |
| debian/tesseract(Debian:12) | = 5.3.4-1 | No fix listed |
| debian/tesseract(Debian:12) | = 5.3.4-1.1 | No fix listed |
| debian/tesseract(Debian:12) | = 5.3.4-1.2 | No fix listed |
| debian/tesseract(Debian:12) | = 5.3.4-1.3 | No fix listed |
| debian/tesseract(Debian:12) | = 5.3.4-1.4 | No fix listed |
| debian/tesseract(Debian:12) | = 5.5.0-1 | No fix listed |
| debian/tesseract(Debian:12) | = 5.5.0-1.1 | No fix listed |
| debian/tesseract(Debian:12) | = 5.5.4-1 | No fix listed |
| debian/tesseract(Debian:13) | All versions | No fix listed |
| debian/tesseract(Debian:13) | = 5.5.0-1 | No fix listed |
| debian/tesseract(Debian:13) | = 5.5.0-1.1 | No fix listed |
| debian/tesseract(Debian:13) | = 5.5.4-1 | No fix listed |
| debian/tesseract(Debian:14) | < 5.5.4-1 | 5.5.4-1 |
| debian/tesseract(Debian:14) | = 5.5.0-1 | No fix listed |
Show 2 more
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/tesseract(Debian:14) | = 5.5.0-1.1 | No fix listed |
| azure linux tesseract(Azure Linux:4.0) | < 0:5.5.4-8.azl4 | 0:5.5.4-8.azl4 |
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
- Red Hat CVE page vendor-advisory
- Red Hat Bugzilla 2564316 issue-tracking
- www.cve.org
- nvd.nist.gov
- Debian Security Tracker CVE-2026-119340 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- bugs.debian.org issue-tracking
- MSRC Security Update Guide vendor-advisory
- Release Notes vendor-advisory
- ENISA EUVD EUVD-2026-114451 third-party-advisory