CVE-2026-112213

Reading Off-Limits by Dan Bloomberg in Leptonica

Published Nov 18, 2026 CVSS 4.0 · 6.9 Medium EPSS n/a KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The vulnerability is an out-of-bounds read in the pixReadMemJp2kCore() function of Leptonica's jp2kio.c source file. When processing a JPEG 2000 image, the function retrieves output dimensions only for component 0 but uses that single index to iterate through all component buffers. If subsequent components have smaller dimensions, the loop passes beyond the allocated sample buffers, causing data from adjacent dynamic memory to be read and merged into the decoded pixels. An attacker who can supply a specially crafted JPEG 2000 image can thus read arbitrary memory content, leading to information disclosure.

Affected Systems

The flaw affects Dan Bloomberg's Leptonica library, specifically the 1.87.0 release built with JPEG 2000 support enabled (commit 13275a2). Systems that link against this library and process JPEG 2000 files are vulnerable.

Risk and Exploitability

The CVSS base score is 6.9, indicating moderate severity. The EPSS score is not available, and the vulnerability is not listed in the CISA KEV catalog, so the likelihood of known exploitation in the wild is uncertain. Because the flaw is triggered by a crafted JPEG 2000 file, a successful exploit requires the application to accept and decode such an image; an attacker can then read adjacent memory and potentially disclose sensitive data.

Remediation

Vendor 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.


OpenCVE Recommended Actions

  • Apply the patch from the master branch of the Leptonica repository and recompile the library.
  • Verify that the application processes only trusted JPEG 2000 files and restrict access to the decoding functionality from untrusted users.
  • Restart all services that use the updated Leptonica library so the patched binary is loaded.

Generated by OpenCVE AI on November 18, 2026 at 23:46 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
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.
Title Reading Off-Limits by Dan Bloomberg in Leptonica
First Time appeared Dan Bloomberg
Dan Bloomberg leptonica
Weaknesses CWE-125
CPEs cpe:2.3:a:dan_bloomberg:leptonica:leptonica_1.87.0_commit_13275a2_in_builds_with_jpeg_2000_support_enabled_via_have_libjp2k_openjpeg.:*:*:*:*:*:*:*
Vendors & Products Dan Bloomberg
Dan Bloomberg leptonica
References
Metrics cvssV4_0

{'score': 6.9, 'vector': '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'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
INCIBE
Published
Updated
Nov 18, 2026, 7:31 PM
Reserved
Oct 19, 2026, 10:36 AM
Status
Received
Published
Nov 18, 2026, 10:16 AM
Modified
Nov 18, 2026, 8:17 PM