Skip to content
OpenAdvisories
Medium · 6.9 CVE-2026-112213 EUVD-2026-128520GHSA-224h-2p3g-wjxj

Reading Off-Limits by Dan Bloomberg in Leptonica

Published Nov 18, 2026 · Updated Nov 18, 2026 · Assigned by INCIBE

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.

Affected products

VendorProductAffectedFixed
Dan Bloomberg Leptonica Leptonica 1.87.0 (commit 13275a2), in builds with JPEG 2000 support enabled via HAVE_LIBJP2K / OpenJPEG. —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Ubuntu 26.10 leptonlib 1.86.0-1ubuntu0.26.10.1 USN-9219-1
Ubuntu 20.04 LTS leptonlib No fix yet —
Show 6 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 26.04 LTS leptonlib 1.86.0-1ubuntu0.26.04.1~esm1 USN-9219-1
Ubuntu Pro 24.04 LTS leptonlib 1.82.0-3ubuntu0.24.04.1~esm1 USN-9219-1
Ubuntu Pro 22.04 LTS leptonlib 1.82.0-3ubuntu0.22.04.1~esm1 USN-9219-1
Ubuntu Pro 18.04 LTS leptonlib No fix yet —
Ubuntu Pro 16.04 LTS leptonlib No fix yet —
Ubuntu Pro 14.04 LTS leptonlib No fix yet —

Advisories 1

References