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.
{
"license": "CC-BY-4.0",
"sources": [
{
"database_specific": {
"status": "Received"
},
"html_url": "https://nvd.nist.gov/vuln/detail/CVE-2026-137063",
"id": "CVE-2026-137063",
"imported": "2026-12-03T14:18:28.258Z",
"modified": "2026-11-30T20:17:49.910Z",
"published": "2026-11-25T20:18:40.807Z",
"url": "https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2026-137063"
},
{
"html_url": "https://github.com/advisories/GHSA-4g5v-hgh8-49r5",
"id": "GHSA-4g5v-hgh8-49r5",
"imported": "2026-12-03T14:18:28.105Z",
"modified": "2026-11-25T21:30:48Z",
"published": "2026-11-25T21:30:37Z",
"url": "https://api.github.com/advisories/GHSA-4g5v-hgh8-49r5"
},
{
"affected": {
"Leptonica:Leptonica": [
"1.79.0 ≤1.87.0"
]
},
"html_url": "https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-135705",
"id": "EUVD-2026-135705",
"imported": "2026-12-03T14:18:27.766Z",
"modified": "2026-11-30T19:45:56Z",
"published": "2026-11-25T19:33:13Z",
"url": "https://euvdservices.enisa.europa.eu/api/enisaid?id=EUVD-2026-135705"
}
]
}