CVE-2026-137063
published medium CVSS 4.0 · 6.8Leptonica 1.79.0 through 1.87.0 Heap Buffer Overflow via l_byteaInitFromStream()
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Leptonica | — | Leptonica1.79.0 through 1.87.0 · Other versions: unaffected | Affected | Not stated | 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 6.8 / 10
- Severity
- medium
- Provider
- VulnCheck · cna
- Vector string
- 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
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 5.5 | medium | VulnCheck · cna | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Leptonica | Leptonica | 1.79.0 through 1.87.0 (affected · semver)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-122 Heap-based Buffer Overflow
References
3- https://github.com/DanBloomberg/leptonica/blob/1.87.0/src/bytearray.c#L177-L197
- https://github.com/DanBloomberg/leptonica/commit/c493a776e6bc6cfb1d8d15152a0b74f3d15b33fd
- VulnCheck Advisory: Leptonica 1.79.0 through 1.87.0 Heap Buffer Overflow via l_byteaInitFromStream() https://www.vulncheck.com/advisories/leptonica-1.79.0-through-1.87.0-heap-buffer-overflow-via-l-byteainitfromstream
Provider assertions
2VulnCheck · cna
Leptonica 1.79.0 through 1.87.0 Heap Buffer Overflow via l_byteaInitFromStream()
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 89bd47e4b0f81bb1229c13781fe8fbc846aea9d4b427748d97d16c4c435ee2ab
- Ingested
- 30 Nov 2026, 19:50:51 UTC
- Source record
- Official CVE record