CVE-2026-112213: Reading Off-Limits by Dan Bloomberg in Leptonica
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.
Affected Software
Event History
Frequently Asked Questions
What conditions are required to exploit this issue?
An attacker needs to supply a specially crafted JPEG 2000 image that is processed by the vulnerable pixReadMemJp2kCore() function. The image must have component buffers with dimensions smaller than component 0 so that traversal goes beyond those buffers.
Who could be exposed to disclosed data?
Anyone who can access the decoded image output may receive pixel data incorporating reads from adjacent dynamic memory. Exposure therefore depends on whether decoded JPEG 2000 output is made available to untrusted or other users.
How can I determine whether a file may trigger the issue?
The affected condition occurs when a JPEG 2000 image has components whose dimensions are smaller than component 0 and is decoded through pixReadMemJp2kCore(). The provided information does not identify affected versions or a specific detection method.