Heap-Based Buffer Overflow in Leptonica by Dan Bloomberg
CVE-2026-137063

6.8MEDIUM

Key Information:

Vendor

Leptonica

Status
Vendor
CVE Published:
25 November 2026

What is CVE-2026-137063?

Leptonica versions 1.79.0 through 1.87.0 are affected by a heap-based buffer overflow vulnerability within the l_byteaInitFromStream() function. This flaw allows malicious users to provide oversized input, specifically files exceeding 1,000,000,000 bytes. As a result, the function l_byteaCreate() allocates a 201-byte buffer, leading to a memcpy operation that copies the full size of the input stream into this insufficiently sized buffer, leading to potential crashes of the application. This vulnerability poses significant risks, necessitating prompt attention and mitigation from users of affected versions.

Affected Version(s)

Leptonica 1.79.0 <= 1.87.0

References

CVSS V4

Score:
6.8
Severity:
MEDIUM
Confidentiality:
None
Integrity:
None
Availability:
High
Attack Vector:
Local
Attack Complexity:
Low
Attack Required:
None
Privileges Required:
Undefined
User Interaction:
Unknown

Timeline

  • Vulnerability published

  • Vulnerability Reserved

Credit

Deus Rex
.