CVE-2026-137063 Leptonica 1.79.0 through 1.87.0 Heap Buffer Overflow via l_byteaInitFromStream()

Published Updated

Oversized input to Leptonica's bytea stream loader overflows a heap buffer and crashes the application.

CVSS score

Medium

6.8/10

CVSS 4.0 · Scored by VulnCheck Breakdown
Exploited in the wild
Not known
Not in CISA's KEV catalogue
Exploit code
None known
No public exploit found
Fix
None listed
No fixed version published
Attack path
Local or same network
No login, a user must click or open something

What is CVE-2026-137063?

CVE-2026-137063 is a medium-severity memory corruption vulnerability in Leptonica, published on 25 Nov 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official 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.

Weakness: CWE-122

How severe is CVE-2026-137063?

CVE-2026-137063 scores 6.8 out of 10 under CVSS 4.0, which is medium severity. It was scored by VulnCheck.

Attack vector
Local
Attack complexity
Low
Attack requirements
None
Privileges required
None
User interaction
Passive
Confidentiality
None
Integrity
None
Availability
High

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

Which versions are affected by CVE-2026-137063?

1 open source package ship an affected version, including danbloomberg/leptonica.

An affected version is only exploitable if your software calls l_byteaInitFromStream() or l_byteaCreate(). Many projects that include it are not exposed.

PackageAffectedFixed in
danbloomberg/leptonica GitHub
pkg:github/danbloomberg/leptonica
From 1.79.0 to 1.87.0None

How do I fix CVE-2026-137063?

No fix has been published for CVE-2026-137063 yet. Limit exposure of the affected software until one is available.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2026-137063 being exploited?

There is no known exploitation of CVE-2026-137063 in the wild and no public exploit code.

Sources

Also known as GHSA-4g5v-hgh8-49r5, UBUNTU-CVE-2026-137063.

Is CVE-2026-137063 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free