CVE-2026-88049 Tesseract: Heap out-of-bounds write in LSTM::Forward via na_/gate-matrix dimension mismatch
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: total
- Technology
- UbuntuDebianRed Hat
Description
Tesseract is an open source OCR engine. In version 5.5.3 and earlier, prior .traineddata hardening added bounds checks to NetworkIO::CopyTimeStepGeneral and NetworkIO::Randomize in src/lstm/networkio.cpp but left NetworkIO::WriteTimeStepPart and NetworkIO::AddTimeStepPart unchecked. In LSTM::Forward in src/lstm/lstm.cpp, source_ is sized from the independently deserialized na_ field while the WriteTimeStepPart count is ns_, which comes from the CI gate WeightMatrix dim1() value. A crafted NT_LSTM layer can make ns_ much larger than na_, causing a heap out-of-bounds write during the first recognition step on the default LSTM engine and resulting in heap corruption, a crash, or potentially controlled corruption. No fixed release is available as of this review.
Upgrade path
22 packages: 18 fixed, 3 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 |
| 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 |
| redhat/tesseract(Red Hat enterprise_linux 10.2) | < 5.3.4-11.el10_2 | 5.3.4-11.el10_2 | Fixed |
| redhat/tesseract(Red Hat enterprise_linux 10.3) | < 5.3.4-11.el10_3 | 5.3.4-11.el10_3 | Fixed |
| redhat/tesseract(Red Hat enterprise_linux 8) | < 4.1.1-7.el8_10 | 4.1.1-7.el8_10 | Fixed |
| redhat/tesseract(Red Hat enterprise_linux 9) | < 4.1.1-11.el9_8; < 4.1.1-11.el9_9 | 4.1.1-11.el9_8, 4.1.1-11.el9_9 | Fixed |
| redhat/tesseract(Red Hat enterprise_linux_eus 10.0) | < 5.3.4-6.el10_0.2 | 5.3.4-6.el10_0.2 | Fixed |
| redhat/tesseract(Red Hat rhel_aus 8.6) | < 4.1.1-2.el8_6.3 | 4.1.1-2.el8_6.3 | Fixed |
| redhat/tesseract(Red Hat rhel_e4s 8.8) | < 4.1.1-2.el8_8.3 | 4.1.1-2.el8_8.3 | Fixed |
| redhat/tesseract(Red Hat rhel_e4s 9.2) | < 4.1.1-7.el9_2.2 | 4.1.1-7.el9_2.2 | Fixed |
| redhat/tesseract(Red Hat rhel_e4s 9.4) | < 4.1.1-7.el9_4.2 | 4.1.1-7.el9_4.2 | Fixed |
| redhat/tesseract(Red Hat rhel_eus 9.6) | < 4.1.1-7.el9_6.2 | 4.1.1-7.el9_6.2 | Fixed |
| redhat/tesseract(Red Hat rhel_eus_long_life 8.6) | < 4.1.1-2.el8_6.3 | 4.1.1-2.el8_6.3 | Fixed |
| redhat/tesseract(Red Hat rhel_tus 8.8) | < 4.1.1-2.el8_8.3 | 4.1.1-2.el8_8.3 | Fixed |
| tesseract-ocr tesseract ocr | <= 5.5.3 | after 5.5.3 | Fixed |
| ubuntu/tesseract(Ubuntu 22.04) | < 4.1.1-2.1ubuntu0.1~esm1 | 4.1.1-2.1ubuntu0.1~esm1 | Fixed |
| ubuntu/tesseract(Ubuntu 24.04) | < 5.3.4-1ubuntu0.1~esm1 | 5.3.4-1ubuntu0.1~esm1 | Fixed |
| ubuntu/tesseract(Ubuntu 26.04) | < 5.5.0-1ubuntu0.1~esm1 | 5.5.0-1ubuntu0.1~esm1 | Fixed |
| tesseract-ocr tesseract | = <= 5.5.3 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| tesseract-ocr tesseract | = <= 5.5.3 | No fix listed |
| ubuntu/tesseract(Ubuntu:22.04) | < 4.1.1-2.1ubuntu0.1~esm1 | 4.1.1-2.1ubuntu0.1~esm1 |
| ubuntu/tesseract(Ubuntu:24.04) | < 5.3.4-1ubuntu0.1~esm1 | 5.3.4-1ubuntu0.1~esm1 |
| ubuntu/tesseract(Ubuntu:26.04) | < 5.5.0-1ubuntu0.1~esm1 | 5.5.0-1ubuntu0.1~esm1 |
| ubuntu/tesseract(Ubuntu:26.10) | All versions | No fix listed |
| tesseract-ocr tesseract ocr | <= 5.5.3 | No fix listed |
| debian/tesseract(Debian:12) | All versions | No fix listed |
| debian/tesseract(Debian:14) | < 5.5.4-1 | 5.5.4-1 |
| debian/tesseract(Debian:13) | 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) | = 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.0-1 | No fix listed |
| debian/tesseract(Debian:14) | = 5.5.0-1.1 | No fix listed |
| redhat/tesseract(Red Hat:enterprise_linux:10.2) | < 5.3.4-11.el10_2 | 5.3.4-11.el10_2 |
Show 13 more
| Product | Affected versions | Fixed in |
|---|---|---|
| redhat/tesseract(Red Hat:enterprise_linux:10.3) | < 5.3.4-11.el10_3 | 5.3.4-11.el10_3 |
| redhat/tesseract(Red Hat:enterprise_linux_eus:10.0) | < 5.3.4-6.el10_0.2 | 5.3.4-6.el10_0.2 |
| redhat/tesseract(Red Hat:enterprise_linux:8) | < 4.1.1-7.el8_10 | 4.1.1-7.el8_10 |
| redhat/tesseract(Red Hat:rhel_aus:8.6) | < 4.1.1-2.el8_6.3 | 4.1.1-2.el8_6.3 |
| redhat/tesseract(Red Hat:rhel_eus_long_life:8.6) | < 4.1.1-2.el8_6.3 | 4.1.1-2.el8_6.3 |
| redhat/tesseract(Red Hat:rhel_tus:8.8) | < 4.1.1-2.el8_8.3 | 4.1.1-2.el8_8.3 |
| redhat/tesseract(Red Hat:rhel_e4s:8.8) | < 4.1.1-2.el8_8.3 | 4.1.1-2.el8_8.3 |
| redhat/tesseract(Red Hat:enterprise_linux:9) | < 4.1.1-11.el9_8 | 4.1.1-11.el9_8 |
| redhat/tesseract(Red Hat:enterprise_linux:9) | < 4.1.1-11.el9_9 | 4.1.1-11.el9_9 |
| redhat/tesseract(Red Hat:rhel_e4s:9.2) | < 4.1.1-7.el9_2.2 | 4.1.1-7.el9_2.2 |
| redhat/tesseract(Red Hat:rhel_e4s:9.4) | < 4.1.1-7.el9_4.2 | 4.1.1-7.el9_4.2 |
| redhat/tesseract(Red Hat:rhel_eus:9.6) | < 4.1.1-7.el9_6.2 | 4.1.1-7.el9_6.2 |
| 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-jgq8-pprg-vc68 exploit vendor-advisory
- https://github.com/tesseract-ocr/tesseract/commit/b494ac18925f9d9aff9ef5815475de9943ab19bf patch
- Red Hat CVE page mitigation vendor-advisory
- RHSA-2026:95085 patch vendor-advisory
- RHSA-2026:95725 patch vendor-advisory
- RHSA-2026:96239 patch vendor-advisory
- RHSA-2026:96238 patch vendor-advisory
- RHSA-2026:95086 patch vendor-advisory
- Red Hat Bugzilla 2531554 issue-tracking
- www.cve.org
- nvd.nist.gov
- Debian Security Tracker CVE-2026-88049 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- USN-8882-1 vendor-advisory
- bugs.debian.org issue-tracking
- MSRC Security Update Guide vendor-advisory
- Release Notes vendor-advisory
- ENISA EUVD EUVD-2026-75592 third-party-advisory
- RHSA-2026:98624 patch vendor-advisory
- RHSA-2026:100506 patch vendor-advisory
- RHSA-2026:98514 patch vendor-advisory
- RHSA-2026:100505 patch vendor-advisory
- RHSA-2026:100502 patch vendor-advisory
- RHSA-2026:100507 patch vendor-advisory