CVE-2026-137063: Leptonica 1.79.0 through 1.87.0 Heap Buffer Overflow via l_byteaInitFromStream()
Leptonica 1.79.0 through 1.87.0 contains a heap-based buffer overflow vulnerability in lbyteaInitFromStream() 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 lbyteaCreate() to allocate a 201-byte buffer before memcpy copies the full stream size, crashing the application.
Affected Software
Event History
Frequently Asked Questions
Which deployments are exposed?
Applications using Leptonica versions 1.79.0 through 1.87.0 are affected if they call l_byteaInitFromStream() on attacker-supplied or otherwise untrusted input.
What must an attacker provide to trigger the issue?
The attacker needs to induce processing of a file larger than 1,000,000,000 bytes. This causes a 201-byte allocation followed by a copy of the full stream size.
What is the observed impact?
The oversized copy writes past a heap buffer and can crash the application, resulting in denial of service.