Reading Off-Limits by Dan Bloomberg in Leptonica
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- Low · None · None
- Fix status
- No fix listed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-125 and the CVSS impact.
Summary
Leptonica, a C image processing library, is affected in the pixReadMemJp2kCore() function in jp2kio.c when built with JPEG 2000 support. The function takes output dimensions only from component 0 but iterates all components with the same index, so smaller components are read past the end of their sample buffers. A remote attacker can supply a specially crafted JPEG 2000 image, and data from adjacent dynamic memory is included in the decoded pixels, disclosing information to anyone who can access the output. The flaw is classified as CWE-125 (out-of-bounds read).
Written with Claude Haiku 5.5 from the sources below · 2026-11-18
Description from the CNA
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Dan Bloomberg | Leptonica | Leptonica 1.87.0 (commit 13275a2), in builds with JPEG 2000 support enabled via HAVE_LIBJP2K / OpenJPEG. | — | No fix listed | CNA |
- Leptonica VendorDan Bloomberg Affected Leptonica 1.87.0 (commit 13275a2), in builds with JPEG 2000 support enabled via HAVE_LIBJP2K / OpenJPEG. Fixed in — No fix listed CNA
Remediation
The sources list no fixed version for Leptonica.
Written with Claude Haiku 5.5 from the sources below · 2026-11-18
Timeline
- 2026-11-18 Threatist record created from CVE-2026-112213
- 2026-11-18 Alias added: GHSA-224h-2p3g-wjxj
- 2026-11-18 CISA SSVC decision points changed
References
Sources
- CVE-2026-112213 · CVE Program
- CVE-2026-112213 · NVD
- FIRST EPSS
- GHSA-224h-2p3g-wjxj · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences