Preliminary notice: published right away from the original source data, without editorial write-up. It will shortly be replaced by a written and reviewed version.
Summary
CVE-2026-137063: medium-severity vulnerability (CVSS 6.8) in Leptonica Leptonica.
What happened
Original description from the source: 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.
Why it matters
Medium severity, CVSS 6.8.
Affected products and versions
Leptonica Leptonica >= 1.79.0, <= 1.87.0
| Product | Versions | Fixed in |
|---|---|---|
| Leptonica Leptonica | >= 1.79.0, <= 1.87.0 | — |
Action recommended by the source
See the official references for the fix or mitigation.
Sources and references
- https://github.com/DanBloomberg/leptonica/commit/c493a776e6bc6cfb1d8d15152a0b74f3d15b33fd — CVE Program
- https://github.com/DanBloomberg/leptonica/blob/1.87.0/src/bytearray.c#L177-L197 — CVE Program
- https://www.vulncheck.com/advisories/leptonica-1.79.0-through-1.87.0-heap-buffer-overflow-via-l-byteainitfromstream — CVE Program
Weaknesses (CWE): CWE-122
Relevant change history
Published
Preliminary advisory published.