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.

Project Subscriptions

Vendors Products
Leptonica Subscribe
Leptonica Subscribe
Advisories

No advisories yet.

Fixes

Solution

No solution given by the vendor.


Workaround

No workaround given by the vendor.

History

Wed, 25 Nov 2026 22:00:00 +0000

Type Values Removed Values Added
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.
Title Leptonica 1.79.0 through 1.87.0 Heap Buffer Overflow via l_byteaInitFromStream()
First Time appeared Leptonica
Leptonica leptonica
Weaknesses CWE-122
CPEs cpe:2.3:a:leptonica:leptonica:*:*:*:*:*:*:*:*
Vendors & Products Leptonica
Leptonica leptonica
References
Metrics cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H'}

cvssV4_0

{'score': 6.8, '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'}


Projects

Sign in to view the affected projects.

cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-11-25T19:33:13.752Z

Reserved: 2026-11-25T17:56:23.564Z

Link: CVE-2026-137063

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-11-25T20:18:40.807

Modified: 2026-11-25T20:18:40.807

Link: CVE-2026-137063

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

No data.

Weaknesses