CVE-2026-88052 Tesseract: Heap out-of-bounds write in UNICHARSET::load_via_fgets via count/insert desynchronization
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: total
- Technology
- UbuntuDebianRed Hat
Description
Tesseract is an open source OCR engine. In version 5.5.3 and earlier, UNICHARSET::load_via_fgets in src/ccutil/unicharset.cpp trusts the declared unichar count as a loop bound and uses id as an unchecked index into the unichars vector. unichar_insert_backwards_compatible can leave the vector unchanged for an empty, duplicate, or already-encodable representation, causing id to become larger than unichars.size(). Subsequent set_* calls and the write to unichars[id].properties.enabled then write UNICHAR_PROPERTIES beyond the vector during initialization in both the default LSTM and legacy engines, causing heap corruption, a crash, or potentially controlled corruption. No fixed release is available as of this review.
Upgrade path
17 packages: 13 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 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_8 | 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_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 |
| redhat/tesseract(Red Hat:enterprise_linux:10.2) | < 5.3.4-11.el10_2 | 5.3.4-11.el10_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 |
| 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 |
Show 7 more
| Product | Affected versions | Fixed in |
|---|---|---|
| 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 |
| 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-2hm8-q5c7-c373 exploit mitigation vendor-advisory
- https://github.com/tesseract-ocr/tesseract/commit/2d04d640db2e8c7e3bab2369d599343b5a8b8443 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 2531579 issue-tracking
- www.cve.org
- nvd.nist.gov
- Debian Security Tracker CVE-2026-88052 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-75629 third-party-advisory