CVE-2026-35444
SDL_image has a heap buffer overflow READ via unchecked colormap index in XCF loader
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- Required
What an attacker can affect
- Confidentiality
- High
- Integrity
- None
- Availability
- Low
Exploit likelihood
What each source reports
CVE List Score used
7.1
SDL_image has a heap buffer overflow READ via unchecked colormap index in XCF loader
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.
- Record
CVE-2026-35444- 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 - Weakness
- CWE-125
- Updated
- 2026-11-02
EUVDEUVD-2026-19527
7.1
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.
- Record
EUVD-2026-19527- 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 - Updated
- 2026-11-02
NVD
7.1
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.
- Record
CVE-2026-35444- 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 - 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 - Weakness
- CWE-125
- Updated
- 2026-11-02
OSV
7.1
SDL_image has a heap buffer overflow READ via unchecked colormap index in XCF loader
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.
- Record
CVE-2026-35444- 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 - Weakness
- CWE-125
- Updated
- 2026-11-02
OSVDEBIAN-CVE-2026-35444
6.1
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.
- Record
DEBIAN-CVE-2026-35444- 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 - Updated
- 2026-11-02
OSVUBUNTU-CVE-2026-35444
7.1
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.
- Record
UBUNTU-CVE-2026-35444- 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 - 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 - Updated
- 2026-11-02
OSVopenSUSE-SU-2026:10493-1 No score
SDL3_image-devel-3.4.2-1.1 on GA media
These are all security issues fixed in the SDL3_image-devel-3.4.2-1.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2026:10493-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2026:10494-1 No score
SDL2_image-devel-2.8.10-1.1 on GA media
These are all security issues fixed in the SDL2_image-devel-2.8.10-1.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2026:10494-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
libsdl2-imageDebian:12 |
All versions, plus listed versions 2.6.3+dfsg-12.6.3+dfsg-22.8.0+dfsg-12.8.1+dfsg-12.8.10+dfsg-1 Show 9 moreShow less2.8.12+dfsg-12.8.12+dfsg-22.8.2+dfsg-12.8.4+dfsg-12.8.5+dfsg-12.8.6+dfsg-12.8.6+dfsg-22.8.8+dfsg-12.8.8+dfsg-2 |
None known |
libsdl2-imageDebian:13 |
before 2.8.8+dfsg-1+deb13u1, plus listed versions 2.8.8+dfsg-1 |
2.8.8+dfsg-1+deb13u1 |
libsdl2-imageDebian:14 |
before 2.8.10+dfsg-1, plus listed versions 2.8.8+dfsg-12.8.8+dfsg-2 |
2.8.10+dfsg-1 |
libsdl3-imageDebian:13 |
before 3.2.4+ds-1+deb13u1, plus listed versions 3.2.4+ds-1 |
3.2.4+ds-1+deb13u1 |
libsdl3-imageDebian:14 |
before 3.4.2+ds-1, plus listed versions 3.2.4+ds-13.2.6+ds-13.3.4+ds-13.3.4+ds-23.4.0+ds-1 |
3.4.2+ds-1 |
sdl-image1.2Debian:12 |
All versions, plus listed versions 1.2.12-131.2.12-14 |
None known |
sdl-image1.2Debian:13 |
All versions, plus listed versions 1.2.12-14 |
None known |
sdl-image1.2Debian:14 |
All versions, plus listed versions 1.2.12-14 |
None known |
libsdl2-imageUbuntu:Pro:14.04:LTS |
All versions, plus listed versions 2.0.0+dfsg-22.0.0+dfsg-32.0.0+dfsg-3build22.0.0+dfsg-3+deb8u1build0.14.04.12.0.0+dfsg-3+deb8u2build0.14.04.1~esm1 |
None known |
sdl-image1.2Ubuntu:Pro:14.04:LTS |
All versions, plus listed versions 1.2.12-4ubuntu11.2.12-51.2.12-5build21.2.12-5+deb9u1build0.14.04.11.2.12-5+deb9u1ubuntu0.14.04.1~esm1 |
None known |
Show 21 moreShow less
| Package | Affected | Fixed |
|---|---|---|
libsdl2-imageUbuntu:16.04:LTS |
All versions, plus listed versions 2.0.0+dfsg-3build22.0.1+dfsg-12.0.1+dfsg-22.0.1+dfsg-2+deb9u1build0.16.04.1 |
None known |
sdl-image1.2Ubuntu:16.04:LTS |
All versions, plus listed versions 1.2.12-5build21.2.12-5+deb9u1build0.16.04.11.2.12-5+deb9u1ubuntu0.16.04.1 |
None known |
libsdl2-imageUbuntu:18.04:LTS |
All versions, plus listed versions 2.0.1+dfsg-32.0.1+dfsg-42.0.2+dfsg1-12.0.3+dfsg1-1 |
None known |
sdl-image1.2Ubuntu:18.04:LTS |
All versions, plus listed versions 1.2.12-61.2.12-71.2.12-81.2.12-8ubuntu0.1 |
None known |
libsdl2-imageUbuntu:20.04:LTS |
All versions, plus listed versions 2.0.5+dfsg1-12.0.5+dfsg1-2 |
None known |
sdl-image1.2Ubuntu:20.04:LTS |
All versions, plus listed versions 1.2.12-12 |
None known |
libsdl2-imageUbuntu:22.04:LTS |
All versions, plus listed versions 2.0.5+dfsg1-22.0.5+dfsg1-32.0.5+dfsg1-3build1 |
None known |
sdl-image1.2Ubuntu:22.04:LTS |
All versions, plus listed versions 1.2.12-121.2.12-131.2.12-13build1 |
None known |
libsdl2-imageUbuntu:24.04:LTS |
All versions, plus listed versions 2.6.3+dfsg-22.8.0+dfsg-12.8.1+dfsg-12.8.2+dfsg-12.8.2+dfsg-1build12.8.2+dfsg-1build2 |
None known |
sdl-image1.2Ubuntu:24.04:LTS |
All versions, plus listed versions 1.2.12-13build21.2.12-13build31.2.12-13build4 |
None known |
libsdl2-imageUbuntu:25.10 |
All versions, plus listed versions 2.8.8+dfsg-1 |
None known |
libsdl3-imageUbuntu:25.10 |
All versions, plus listed versions 3.2.4+ds-1 |
None known |
sdl-image1.2Ubuntu:25.10 |
All versions, plus listed versions 1.2.12-14 |
None known |
libsdl2-imageUbuntu:26.10 |
All versions, plus listed versions 2.8.8+dfsg-22.8.12+dfsg-12.8.12+dfsg-2 |
None known |
libsdl3-imageUbuntu:26.10 |
All versions, plus listed versions 3.4.0+ds-13.4.4+ds-13.4.4+ds-2 |
None known |
sdl-image1.2Ubuntu:26.10 |
All versions, plus listed versions 1.2.12-14build1 |
None known |
libsdl2-imageUbuntu:26.04:LTS |
All versions, plus listed versions 2.8.8+dfsg-12.8.8+dfsg-2 |
None known |
libsdl3-imageUbuntu:26.04:LTS |
All versions, plus listed versions 3.2.4+ds-13.4.0+ds-1 |
None known |
sdl-image1.2Ubuntu:26.04:LTS |
All versions, plus listed versions 1.2.12-141.2.12-14build1 |
None known |
SDL3_imageopenSUSE:Tumbleweed |
before 3.4.2-1.1 | 3.4.2-1.1 |
SDL2_imageopenSUSE:Tumbleweed |
before 2.8.10-1.1 | 2.8.10-1.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| first indexed | CVE List, EUVD, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2026-35444 is a high vulnerability (CVSS 7.1) in Libsdl Sdl Image, published April 5, 2026. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.27%, the 18th percentile. Fixed in libsdl2-image 2.8.8+dfsg-1+deb13u1.
References
github.com/libsdl-org/SDL_image/security/advisories/GHSA-gq8w-x74c-h6p7
github.com/CVEProject/cvelistV5/tree/main/cves/2026/35xxx/CVE-2026-35444.json
nvd.nist.gov/vuln/detail/CVE-2026-35444
security-tracker.debian.org/tracker/CVE-2026-35444
ubuntu.com/security/CVE-2026-35444
cve.org/CVERecord?id=CVE-2026-35444