Skip to content
DayZeroHub
Medium Not yet writtenCVSS 6.8CVE-2026-137063

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

Leptonica Leptonica

Preliminary notice: published right away from the original source data, without editorial write-up. It will shortly be replaced by a written and reviewed version.

Summary

CVE-2026-137063: medium-severity vulnerability (CVSS 6.8) in Leptonica Leptonica.

What happened

Original description from the source: 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.

Why it matters

Medium severity, CVSS 6.8.

Affected products and versions

Leptonica Leptonica >= 1.79.0, <= 1.87.0

ProductVersionsFixed in
Leptonica Leptonica>= 1.79.0, <= 1.87.0—

Action recommended by the source

See the official references for the fix or mitigation.

Information taken from the source or the vendor. Verify it at the original link before acting.

Sources and references

Weaknesses (CWE): CWE-122

Relevant change history

  1. Published

    Preliminary advisory published.