# CVE-2026-88052: Tesseract: Heap out-of-bounds write in UNICHARSET::load_via_fgets via count/insert desynchronization

- Severity: High 7.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 7% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-09-10T17:38:04.675Z
- Modified: 2026-09-16T16:21:10.677Z
- Weaknesses: CWE-129, CWE-787
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- tesseract-ocr tesseract: <= 5.5.3
- tesseract-ocr tesseract_ocr: up to 5.5.3

## 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)

## Sources

- CVE List: [CVE-2026-88052](https://www.cve.org/CVERecord?id=CVE-2026-88052), CVE Terms of Use, modified 2026-09-11
- NVD: [CVE-2026-88052](https://nvd.nist.gov/vuln/detail/CVE-2026-88052), Public domain, modified 2026-09-16

---

Page: https://cve.day/CVE-2026-88052 · Whole record: https://cve.day/CVE-2026-88052.json · Rebuilt by cve.day 2026-11-25T22:59:37.885Z
