CVE-2026-137063
CVE-2026-137063 · Leptonica 1.79.0 through 1.87.0 Heap Buffer Overflow via l_byteaInitFromStream()
CVSS 6.8 · Medium · EPSS 0.2%
Compare with your installed version
Affected products and known fixed versions are public information. Compare them with your installed version.
- leptonicaNo fix published
- leptonlib Ubuntu Pro 14.04 LTSNo fix published
- leptonlib Ubuntu Pro 16.04 LTSNo fix published
- leptonlib Ubuntu Pro 18.04 LTSNo fix published
- and 5 more
Check the installed version:
dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="leptonlib"'Assess your server’s risks
The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.
Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.
curl -fsSL https://patchfirst.dev/check.sh | shChannels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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.
- Published
- Updated
Stack: system
Affected products and versions
leptonica
- Versions
- ≥ 1.79.0, ≤ 1.87.0: Affected (semver)
No fix published
leptonlib Ubuntu Pro 14.04 LTS
- Versions
- 1.69-4ubuntu1
- 1.69-4ubuntu2
- 1.69-4ubuntu3
- 1.69-4ubuntu4
- 1.70.1-1
- 1.70.1-1ubuntu0.1~esm1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
leptonlib Ubuntu Pro 16.04 LTS
- Versions
- 1.72-3
- 1.72-3build1
- 1.73-1
- 1.73-1ubuntu0.1~esm1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
leptonlib Ubuntu Pro 18.04 LTS
- Versions
- 1.74.4-1
- 1.74.4-2
- 1.75.3-1
- 1.75.3-2
- 1.75.3-3
- 1.75.3-3ubuntu0.1~esm1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
leptonlib Ubuntu 20.04 LTS
- Versions
- 1.78.0-2
- 1.79.0-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
leptonlib Ubuntu 22.04 LTS
- Versions
- 1.79.0-1.1
- 1.82.0-3
- 1.82.0-3build1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
leptonlib Ubuntu 24.04 LTS
- Versions
- 1.82.0-3build2
- 1.82.0-3build3
- 1.82.0-3build4
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
leptonlib Ubuntu 26.10
- Versions
- 1.86.0-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
leptonlib Ubuntu 26.04 LTS
- Versions
- 1.84.1-4
- 1.86.0-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
Original sources
- https://github.com/DanBloomberg/leptonica/commit/c493a776e6bc6cfb1d8d15152a0b74f3d15b33fd
- https://github.com/DanBloomberg/leptonica/blob/1.87.0/src/bytearray.c#L177-L197
- https://www.vulncheck.com/advisories/leptonica-1.79.0-through-1.87.0-heap-buffer-overflow-via-l-byteainitfromstream
- https://nvd.nist.gov/vuln/detail/CVE-2026-137063