Reading Off-Limits by Dan Bloomberg in Leptonica

Posted date 18/11/2026
Identificador
INCIBE-2026-912
Importance
3 - Medium
Affected Resources

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

Description

INCIBE has coordinated the disclosure of a medium-severity vulnerability affecting Dan Bloomberg's Leptonica, an open-source library for image processing and analysis. The vulnerability was discovered by Daniel Fernandez Bleda of the Internet Security Auditors team.

This vulnerability has been assigned the following code, CVSS v4.0 base score, CVSS vector, and CWE vulnerability type:

  • CVE-2026-112213: CVSS v4.0: 6.9 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N | CWE-125.
Solution

The manufacturer has confirmed the fix in the jp2kio.c file in the master branch of the official Leptonica repository. It is recommended that you apply the fix and recompile the library.

Detail

CVE-2026-112213: 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.

CVE
Identificador CVE Severidad Explotación Fabricante
CVE-2026-112213 Media No Dan Bloomberg