# CVE-2026-137063: Leptonica 1.79.0 through 1.87.0 Heap Buffer Overflow via l_byteaInitFromStream()

- Severity: Medium 6.8 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/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.23%, higher than 15% of CVEs (2026-12-01)
- Published: 2026-11-25T19:33:13.752Z
- Modified: 2026-11-30T20:17:49.910Z
- Weaknesses: CWE-122
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: VulnCheck

## Description

Leptonica 1.79.0 through 1.87.0 contains a heap-based buffer overflow vulnerability in l_byteaInitFromStream() that allows attackers to write past a heap buffer by supplying oversized input. Attackers can provide a file larger than 1,000,000,000 bytes, causing l_byteaCreate() to allocate a 201-byte buffer before memcpy copies the full stream size, crashing the application.

(As written by CVE List.)

## Affected

- Leptonica Leptonica: from 1.79.0 up to 1.87.0

## Every score

- VulnCheck: CVSS:4.0 6.8 Medium `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`
- VulnCheck: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`

## References

- <https://github.com/DanBloomberg/leptonica/commit/c493a776e6bc6cfb1d8d15152a0b74f3d15b33fd> (patch)
- <https://github.com/DanBloomberg/leptonica/blob/1.87.0/src/bytearray.c#L177-L197> (technical-description)
- <https://www.vulncheck.com/advisories/leptonica-1.79.0-through-1.87.0-heap-buffer-overflow-via-l-byteainitfromstream> (third-party-advisory)

## Sources

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

---

Page: https://cve.day/CVE-2026-137063 · Whole record: https://cve.day/CVE-2026-137063.json · Rebuilt by cve.day 2026-11-30T20:32:14.188Z
