Heap-Based Buffer Overflow in Leptonica by Dan Bloomberg
CVE-2026-137063
6.8MEDIUM
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
