CVE-2026-137063
Leptonica 1.79.0 through 1.87.0 Heap Buffer Overflow via l_byteaInitFromStream()
Medium · 6.8
- CVSS
- 6.8
- EPSS
- 0.23% (p9)
- Published
- 2026-11-25
- Age
- 3d old
- Modified
- 2026-11-26
- Product
- Leptonica Leptonica
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
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.
Sources
- NVD · first seen 3d ago · NVD terms of use
- OSV · first seen 3d ago · CC-BY 4.0
- CVE List · first seen 3d ago · CVE Terms of Use
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
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/137xxx/CVE-2026-137063.json advisory
- https://github.com/DanBloomberg/leptonica package
- https://nvd.nist.gov/vuln/detail/CVE-2026-137063 advisory