{"id":"CVE-2026-137063","state":"PUBLISHED","title":"Leptonica 1.79.0 through 1.87.0 Heap Buffer Overflow via l_byteaInitFromStream()","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.","publishedAt":"2026-11-25T19:33:13.752Z","updatedAt":"2026-11-25T19:33:13.752Z","severity":{"score":6.8,"label":"Medium","version":"4.0","vector":"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","source":"VulnCheck"},"assigner":"VulnCheck","products":["Leptonica Leptonica"],"affected":[{"vendor":"Leptonica","product":"Leptonica","packageURL":"pkg:github/DanBloomberg/leptonica","defaultStatus":"unaffected","versions":[{"version":"1.79.0","status":"affected","lessThanOrEqual":"1.87.0","versionType":"semver"}],"repo":"https://github.com/DanBloomberg/leptonica"}],"references":["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"],"weaknesses":["CWE-122"],"ingestedAt":"2026-11-25T19:40:05.749Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/137xxx/CVE-2026-137063.json","commit":"7fb2fe68b486b39133abf360e3484bf7fdddf2e4","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-137063","state":"PUBLISHED","datePublished":"2026-11-25T19:33:13.752Z","dateUpdated":"2026-11-25T19:33:13.752Z","assignerShortName":"VulnCheck","assignerOrgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateReserved":"2026-11-25T17:56:23.564Z"},"containers":{"cna":{"title":"Leptonica 1.79.0 through 1.87.0 Heap Buffer Overflow via l_byteaInitFromStream()","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"Leptonica","product":"Leptonica","packageURL":"pkg:github/DanBloomberg/leptonica","defaultStatus":"unaffected","versions":[{"version":"1.79.0","status":"affected","lessThanOrEqual":"1.87.0","versionType":"semver"}],"repo":"https://github.com/DanBloomberg/leptonica"}],"references":[{"url":"https://github.com/DanBloomberg/leptonica/commit/c493a776e6bc6cfb1d8d15152a0b74f3d15b33fd","tags":["patch"]},{"url":"https://github.com/DanBloomberg/leptonica/blob/1.87.0/src/bytearray.c#L177-L197","tags":["technical-description"]},{"url":"https://www.vulncheck.com/advisories/leptonica-1.79.0-through-1.87.0-heap-buffer-overflow-via-l-byteainitfromstream","name":"VulnCheck Advisory: Leptonica 1.79.0 through 1.87.0 Heap Buffer Overflow via l_byteaInitFromStream()","tags":["third-party-advisory"]}],"metrics":[{"format":"CVSS","cvssV4_0":{"version":"4.0","vectorString":"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","attackVector":"LOCAL","attackComplexity":"LOW","attackRequirements":"NONE","privilegesRequired":"NONE","userInteraction":"PASSIVE","vulnConfidentialityImpact":"NONE","vulnIntegrityImpact":"NONE","vulnAvailabilityImpact":"HIGH","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","baseScore":6.8,"baseSeverity":"MEDIUM"}},{"format":"CVSS","cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"HIGH","baseScore":5.5,"baseSeverity":"MEDIUM"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-122","lang":"en","description":"Heap-based Buffer Overflow","type":"CWE"}]}],"providerMetadata":{"shortName":"VulnCheck","orgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateUpdated":"2026-11-25T19:33:13.752Z"},"datePublic":"2026-11-20T00:00:00.000Z","cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:leptonica:leptonica:*:*:*:*:*:*:*:*","versionStartIncluding":"1.79.0","versionEndIncluding":"1.87.0"}]}]}],"credits":[{"lang":"en","value":"Deus Rex","type":"finder"}],"x_generator":{"engine":"vulncheck-endgame"}}}}}