Back to CVE records
High 7.1Published Apr 6, 2026

CVE-2026-35444SDL_image has a heap buffer overflow READ via unchecked colormap index in XCF loader

Updated under an hour ago ()

Does this affect you?

It affects libsdl-org SDL_image and 1 other product. Add what you run to find out whether that includes you.

No exploitation reported and no EPSS estimate yet.

SDL_image is a library to load images of various formats as SDL surfaces. In do_layer_surface() in src/IMG_xcf.c, pixel index values from decoded XCF tile data are used directly as colormap indices without validating them against the colormap size (cm_num). A crafted .xcf file with a small colormap and out-of-range pixel indices causes heap out-of-bounds reads of up to 762 bytes past the colormap allocation. Both IMAGE_INDEXED code paths are affected (bpp=1 and bpp=2). The leaked heap bytes are written into the output surface pixel data, making them potentially observable in the rendered image. This vulnerability is fixed with commit 996bf12888925932daace576e09c3053410896f8.

Free: a daily email for up to 3 products and the weekly digest. No card, no password. By continuing you agree to the Terms and Privacy Policy.

CVSS
7.1 HIGH (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:L
Weakness (CWE)
CWE-125
Known exploited
Not in CISA's KEV catalog
EPSS (exploitation in the next 30 days)
Not loaded for this CVE
Assigned by
GitHub_M
NVD analysis
Analyzed
Record last updated
Apr 8, 2026
First seen by InfoSec Signals
Oct 9, 2026

Affected products

Affected products
libsdl-org SDL_image
libsdl_org:sdl_image (from the name)
before 996bf12888925932daace576e09c3053410896f8
CNA record
libsdl sdl_image
libsdl:sdl_image
before 2026-04-02
NVD

References

References

The CVE record is authoritative. Products marked “from the name” were identified from the CNA's free-text names, not a CPE, and are matched less certainly. This product uses the NVD API but is not endorsed or certified by the NVD.

Essential cookies only, unless you allow a Google ads cookie. See our .