JLSEC-2026-2354: Leptonica 1.79.0 through 1.87.0 contains a heap-based buffer overflow vulnerability in...
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
Child vulnerabilities
Contains the following vulnerabilities.
Frequently Asked Questions
What input and access would an attacker need to trigger this issue?
An attacker needs to cause the application to process an oversized file through l_byteaInitFromStream(). The supplied file must be larger than 1,000,000,000 bytes; no attacker privileges are required, but user interaction is required according to the provided severity vector.
What is the practical impact of successful exploitation?
The oversized input causes l_byteaCreate() to allocate a 201-byte buffer before memcpy copies the full stream size past that buffer. This can crash the application, resulting in a denial of service.
Which Leptonica versions are affected?
Leptonica versions 1.79.0 through 1.87.0 are identified as affected. The listed software package is julia/leptonica_jll.