Vulnerability · Published Apr 6, 2026 · Assigned by GitHub_M
CVE-2026-35444SDL_image has a heap buffer overflow READ via unchecked colormap index in XCF loader
High 7.1
In plain English
A high-severity out-of-bounds read in SDL_image from libsdl-org. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 19% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | libsdl2-image | no fix listed | DEBIAN-CVE-2026-35444 |
| Debian:13 | libsdl2-image | 2.8.8+dfsg-1+deb13u1 | DEBIAN-CVE-2026-35444 |
| Debian:14 | libsdl2-image | 2.8.10+dfsg-1 | DEBIAN-CVE-2026-35444 |
| Debian:13 | libsdl3-image | 3.2.4+ds-1+deb13u1 | DEBIAN-CVE-2026-35444 |
| Debian:14 | libsdl3-image | 3.4.2+ds-1 | DEBIAN-CVE-2026-35444 |
| Debian:12 | sdl-image1.2 | no fix listed | DEBIAN-CVE-2026-35444 |
| Debian:13 | sdl-image1.2 | no fix listed | DEBIAN-CVE-2026-35444 |
| Debian:14 | sdl-image1.2 | no fix listed | DEBIAN-CVE-2026-35444 |
| Ubuntu:22.04:LTS | libsdl2-image | no fix listed | UBUNTU-CVE-2026-35444 |
| Ubuntu:24.04:LTS | libsdl2-image | no fix listed | UBUNTU-CVE-2026-35444 |
| Ubuntu:25.10 | libsdl2-image | no fix listed | UBUNTU-CVE-2026-35444 |
| Ubuntu:26.04:LTS | libsdl2-image | no fix listed | UBUNTU-CVE-2026-35444 |
| Ubuntu:26.10 | libsdl2-image | no fix listed | UBUNTU-CVE-2026-35444 |
| Ubuntu:25.10 | libsdl3-image | no fix listed | UBUNTU-CVE-2026-35444 |
| Ubuntu:26.04:LTS | libsdl3-image | no fix listed | UBUNTU-CVE-2026-35444 |
| Ubuntu:26.10 | libsdl3-image | no fix listed | UBUNTU-CVE-2026-35444 |
| Ubuntu:22.04:LTS | sdl-image1.2 | no fix listed | UBUNTU-CVE-2026-35444 |
| Ubuntu:24.04:LTS | sdl-image1.2 | no fix listed | UBUNTU-CVE-2026-35444 |
| Ubuntu:25.10 | sdl-image1.2 | no fix listed | UBUNTU-CVE-2026-35444 |
| Ubuntu:26.04:LTS | sdl-image1.2 | no fix listed | UBUNTU-CVE-2026-35444 |
| Ubuntu:26.10 | sdl-image1.2 | no fix listed | UBUNTU-CVE-2026-35444 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| libsdl-org | SDL_image | < 996bf12888925932daace576e09c3053410896f8 |
Weakness: CWE-125 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:L
References
- https://github.com/libsdl-org/SDL_image/security/advisories/GHSA-gq8w-x74c-h6p7 x_refsource_CONFIRM