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.
Published: 2026-11-18
Score: 6.9 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Analysis and contextual insights are available on OpenCVE Cloud.

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.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 18 Nov 2026 10:00:00 +0000

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'}


Subscriptions

Dan Bloomberg Leptonica
cve-icon MITRE

Status: PUBLISHED

Assigner: INCIBE

Published:

Updated: 2026-11-18T19:31:09.614Z

Reserved: 2026-10-19T10:36:25.489Z

Link: CVE-2026-112213

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-11-18T10:16:53.030

Modified: 2026-11-18T20:17:54.460

Link: CVE-2026-112213

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-11-18T13:30:22Z

Weaknesses