{"id":"CVE-2026-137063","summary":"Leptonica 1.79.0 through 1.87.0 Heap Buffer Overflow via l_byteaInitFromStream()","details":"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.","modified":"2026-11-26T21:02:14.488245443Z","published":"2026-11-25T19:33:13.752Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/137xxx/CVE-2026-137063.json","cna_assigner":"VulnCheck","cwe_ids":["CWE-122"]},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/137xxx/CVE-2026-137063.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-137063"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/leptonica-1.79.0-through-1.87.0-heap-buffer-overflow-via-l-byteainitfromstream"},{"type":"FIX","url":"https://github.com/DanBloomberg/leptonica/commit/c493a776e6bc6cfb1d8d15152a0b74f3d15b33fd"},{"type":"PACKAGE","url":"https://github.com/DanBloomberg/leptonica"},{"type":"ARTICLE","url":"https://github.com/DanBloomberg/leptonica/blob/1.87.0/src/bytearray.c#L177-L197"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/danbloomberg/leptonica","events":[{"introduced":"002843bdf81ef4018fdf0f5c53262bbeab2b0fdc"},{"fixed":"c493a776e6bc6cfb1d8d15152a0b74f3d15b33fd"}],"database_specific":{"extracted_events":[{"range":[{"introduced":"1.79.0"},{"last_affected":"1.87.0"}],"source":"AFFECTED_FIELD","strategy":"StandardRange"},{"source":"REFERENCES_COMMIT","range":[{"fixed":"c493a776e6bc6cfb1d8d15152a0b74f3d15b33fd"}]}]}}],"versions":["1.87.0","1.87.0-pre1","1.86.0","1.85.0","1.84.1","1.84.0","1.83.0","1.82.0","1.81.1","1.81.0","1.80.0","1.79.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-137063.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"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"}]}