# CVE-2026-88049: Tesseract: Heap out-of-bounds write in LSTM::Forward via na_/gate-matrix dimension mismatch

- Severity: High 8.6 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- 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.15%, higher than 4% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-09-10T16:23:18.718Z
- Modified: 2026-09-14T20:01:48.403Z
- Weaknesses: CWE-787
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

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

## Every score

- GitHub_M: CVSS:4.0 8.6 High `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

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

## Sources

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

---

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