CVE-2026-88053 Tesseract: Heap out-of-bounds write in Classify::ReadIntTemplates via unvalidated counts in crafted .traineddata
- 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, Classify::ReadIntTemplates in src/classify/intproto.cpp reads NumClassPruners, NumClasses, and NumProtoSets from the TESSDATA_INTTEMP component of a crafted .traineddata file and uses those values as loop bounds without validating them against MAX_NUM_CLASS_PRUNERS, MAX_NUM_CLASSES, and MAX_NUM_PROTO_SETS. The loops store heap pointers into fixed-capacity ClassPruners and ProtoSets arrays in INT_TEMPLATES_STRUCT and INT_CLASS_STRUCT, so an oversized count causes heap out-of-bounds pointer writes during legacy-classifier initialization before OCR begins, 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-rphx-x795-5qjv exploit mitigation vendor-advisory
- https://github.com/tesseract-ocr/tesseract/commit/8b0574680f3b22f246ade6a4c8e3029104255c63 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 2531573 issue-tracking
- www.cve.org
- nvd.nist.gov
- Debian Security Tracker CVE-2026-88053 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-75630 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