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

Published Nov 25, 2026
·
Updated

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

1 affected component
Leptonica Leptonica>=1.79.0<=1.87.0

Event History

Nov 25, 2026
CVE Published
via MITRE·07:33 PM
Data Sourced
via MITRE·07:33 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

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.

2

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.

3

What is the observed impact?

The oversized copy writes past a heap buffer and can crash the application, resulting in denial of service.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203