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.