Tesseract: Prior to 5.5.4, GENERIC_2D_ARRAY::DeSerializeSize
Affects tesseractSource GCVE Database
Not known to be exploited · CVSS 5.5 Medium · fixed in 5.5.4 : update tesseract when convenient.
Data as of 5 Nov 2026, 12:35 UTC
Thin evidence
One scorer or none| CNA (GitHub_M) | CVSS 3.1 | 5.5 |
|---|
- Patch
- Available – fixed in 5.5.4
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:HExploitation evidence
Disclosed: evidence found.
CVE published 30 Oct 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 5 Nov 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 26.10tesseractpkg:deb/ubuntu/tesseract?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu Pro 26.04 LTStesseractpkg:deb/ubuntu/tesseract?arch=source&distro=esm-apps/resoluteOther threats | Affected
| Fixed in– |
Ubuntu Pro 24.04 LTStesseractpkg:deb/ubuntu/tesseract?arch=source&distro=esm-apps/nobleOther threats | Affected
| Fixed in– |
Ubuntu Pro 22.04 LTStesseractpkg:deb/ubuntu/tesseract?arch=source&distro=esm-apps/jammyOther threats | Affected
| Fixed in– |
Ubuntu Pro 20.04 LTStesseractpkg:deb/ubuntu/tesseract?arch=source&distro=esm-apps/focalOther threats | Affected
| Fixed in– |
Ubuntu Pro 18.04 LTStesseractpkg:deb/ubuntu/tesseract?arch=source&distro=esm-apps/bionicOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
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.
References
- ubuntu.com/security/CVE-2026-119340 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2026-119340 (opens in a new tab)
- github.com/tesseract-ocr/tesseract/security/advisories/GHSA-6xhq-wvww-6xfg (opens in a new tab)
- github.com/tesseract-ocr/tesseract/pull/4649 (opens in a new tab)
- github.com/tesseract-ocr/tesseract/commit/048e92378f1a34dcdaf94bc515c7552ac01f08ef (opens in a new tab)
- github.com/tesseract-ocr/tesseract/releases/tag/5.5.4 (opens in a new tab)