Reading Off-Limits by Dan Bloomberg in Leptonica

State
Published
Severity
6.9 Medium
Published
Nov 18, 2026
Updated
Nov 18, 2026
Reserved
Oct 19, 2026

Read the record on cve.org

Description

Out-of-bounds read vulnerability in the pixReadMemJp2kCore() function in Leptonica, located in jp2kio.c. The function retrieves the output dimensions only for component 0 and uses a common index to iterate through the buffers of all components. If the remaining components have smaller dimensions, the traversal exceeds the bounds of their sample buffers, which are allocated by OpenJPEG. When processing a specially crafted JPEG 2000 image, data read from adjacent dynamic memory may be incorporated into the pixels of the decoded image and result in information disclosure to anyone who can access the output.

ProductVersions
Leptonica Dan BloombergLeptonica 1.87.0 (commit 13275a2), in builds with JPEG 2000 support enabled via HAVE_LIBJP2K / OpenJPEG. Affected

Weaknesses

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.