CVE-2026-88047Tesseract: ReadNormProtos stack buffer overflow
Tesseract is an open source OCR engine. In version 5.5.3 and earlier, Classify::ReadNormProtos in src/classify/normmatch.cpp parses the NORMPROTO component of a .traineddata file and uses std::istream::operator>>(char*) to extract a whitespace-delimited token into a fixed 61-byte stack buffer without setting a stream width. The 100-byte line buffer can carry a token of up to 99 characters, so a token longer than 60 characters writes up to 39 attacker-controlled bytes past the buffer during TessBaseAPI::Init of the legacy engine, causing stack corruption, denial of service, and potentially control-flow hijacking on affected standard-library implementations. Builds using Apple's libc++ C++20 bounded array overload are incidentally protected, while typical libstdc++ builds remain affected. No fixed release is available as of this review.
What to do
Fixed builds are available from AlmaLinux, Debian, Red Hat, Rocky Linux: see the table below for the fixed version per release.
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | tesseract | Fix pending | UBUNTU-CVE-2026-88047 | |
| Ubuntu 26.04 | tesseract | Fix pending | 5.5.0-1ubuntu0.1~esm1 (Ubuntu Pro) | UBUNTU-CVE-2026-88047 |
| Ubuntu 24.04 | tesseract | Fix pending | 5.3.4-1ubuntu0.1~esm1 (Ubuntu Pro) | UBUNTU-CVE-2026-88047 |
| Ubuntu 22.04 | tesseract | Fix pending | 4.1.1-2.1ubuntu0.1~esm1 (Ubuntu Pro) | UBUNTU-CVE-2026-88047 |
| Ubuntu 20.04 | tesseract | Fix pending | 4.1.1-2ubuntu0.1~esm1 (Ubuntu Pro) | UBUNTU-CVE-2026-88047 |
| Ubuntu 18.04 | tesseract | Fix pending | 4.00~git2288-10f4998a-2ubuntu0.1~esm1 (Ubuntu Pro) | UBUNTU-CVE-2026-88047 |
| Ubuntu 16.04 | tesseract | Fix pending | 3.04.01-4ubuntu0.1~esm1 (Ubuntu Pro) | UBUNTU-CVE-2026-88047 |
| Ubuntu 14.04 | tesseract | Fix pending | 3.03.02-3ubuntu0.1~esm1 (Ubuntu Pro) | UBUNTU-CVE-2026-88047 |
| Debian 14 | tesseract | Fixed | 5.5.4-1 | DEBIAN-CVE-2026-88047 |
| Debian 13 | tesseract | Fix pending | DEBIAN-CVE-2026-88047 | |
| Debian 12 | tesseract | Fix pending | DEBIAN-CVE-2026-88047 | |
| Red Hat Enterprise Linux 10 | tesseract | Fixed | 0:5.3.4-11.el10_2 | RHSA-2026:98624 |
| Red Hat Enterprise Linux 10 | tesseract-devel | Fixed | 0:5.3.4-11.el10_2 | RHSA-2026:98624 |
| Red Hat Enterprise Linux 9 | tesseract | Fixed | 0:4.1.1-11.el9_8 | RHSA-2026:98514 |
| Red Hat Enterprise Linux 9 | tesseract-devel | Fixed | 0:4.1.1-11.el9_8 | RHSA-2026:98514 |
| Red Hat Enterprise Linux 8 | tesseract | Fixed | 0:4.1.1-7.el8_10 | RHSA-2026:95725 |
| Red Hat Enterprise Linux 8 | tesseract-devel | Fixed | 0:4.1.1-7.el8_10 | RHSA-2026:95725 |
| AlmaLinux 10 | tesseract | Fixed | 5.3.4-11.el10_2 | ALSA-2026:98624 |
| AlmaLinux 10 | tesseract-devel | Fixed | 5.3.4-11.el10_3 | ALSA-2026:95085 |
| AlmaLinux 9 | tesseract | Fixed | 4.1.1-11.el9_9 | ALSA-2026:98514 |
| AlmaLinux 9 | tesseract-devel | Fixed | 4.1.1-11.el9_9 | ALSA-2026:95086 |
| AlmaLinux 8 | tesseract | Fixed | 4.1.1-7.el8_10 | ALSA-2026:95725 |
| AlmaLinux 8 | tesseract-devel | Fixed | 4.1.1-7.el8_10 | ALSA-2026:95725 |
| Rocky Linux 10 | tesseract | Fixed | 0:5.3.4-11.el10_2 | RLSA-2026:95085 |
| Rocky Linux 10 | tesseract-devel | Fixed | 0:5.3.4-11.el10_2 | RLSA-2026:98624 |
| Rocky Linux 9 | tesseract | Fixed | 0:4.1.1-11.el9_8 | RLSA-2026:95086 |
| Rocky Linux 8 | tesseract | Fixed | 0:4.1.1-7.el8_10 | RLSA-2026:95725 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- tesseract-ocr tesseract: affected: <= 5.5.3
References
- https://github.com/tesseract-ocr/tesseract/security/advisories/GHSA-5j2p-r5vc-q7f3
- https://github.com/tesseract-ocr/tesseract/commit/1bda5079b1c8a7e25f523486837426903d29ce84
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.