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

- Severity: High 7.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.27%, higher than 20% of CVEs (2026-12-01)
- Published: 2026-04-06T21:44:05.986Z
- Modified: 2026-07-24T21:10:00.143Z
- Weaknesses: CWE-125
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- libsdl-org SDL_image: < 996bf12888925932daace576e09c3053410896f8
- libsdl sdl_image: before 2026-04-02

## Every score

- GitHub_M: CVSS:3.1 7.1 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:L`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:L/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> (patch, vendor-advisory)

## Sources

- CVE List: [CVE-2026-35444](https://www.cve.org/CVERecord?id=CVE-2026-35444), CVE Terms of Use, modified 2026-04-08
- NVD: [CVE-2026-35444](https://nvd.nist.gov/vuln/detail/CVE-2026-35444), Public domain, modified 2026-07-24

---

Page: https://cve.day/CVE-2026-35444 · Whole record: https://cve.day/CVE-2026-35444.json · Rebuilt by cve.day 2026-11-25T22:59:18.073Z
