Every CVE Search/ Get API key

CVE-2026-35444

SDL_image has a heap buffer overflow READ via unchecked colormap index in XCF loader

7.1 HighFix available

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

0.27%Up 0.3 points since Apr 7, 2026
90%50%10%1%

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 HighCVSS: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 HighCVSS: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 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:L
CVSS 3.1
6.1 MediumCVSS: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 HighCVSS: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 MediumCVSS: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 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:L
CVSS 3.1
6.1 MediumCVSS: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

Affected packages
PackageAffectedFixed
libsdl2-image
Debian: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 less
2.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-image
Debian:13
before 2.8.8+dfsg-1+deb13u1, plus listed versions
2.8.8+dfsg-1
2.8.8+dfsg-1+deb13u1
libsdl2-image
Debian: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-image
Debian:13
before 3.2.4+ds-1+deb13u1, plus listed versions
3.2.4+ds-1
3.2.4+ds-1+deb13u1
libsdl3-image
Debian: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.2
Debian:12
All versions, plus listed versions
1.2.12-131.2.12-14
None known
sdl-image1.2
Debian:13
All versions, plus listed versions
1.2.12-14
None known
sdl-image1.2
Debian:14
All versions, plus listed versions
1.2.12-14
None known
libsdl2-image
Ubuntu: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.2
Ubuntu: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
Affected packages
PackageAffectedFixed
libsdl2-image
Ubuntu: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.2
Ubuntu: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-image
Ubuntu: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.2
Ubuntu: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-image
Ubuntu:20.04:LTS
All versions, plus listed versions
2.0.5+dfsg1-12.0.5+dfsg1-2
None known
sdl-image1.2
Ubuntu:20.04:LTS
All versions, plus listed versions
1.2.12-12
None known
libsdl2-image
Ubuntu: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.2
Ubuntu:22.04:LTS
All versions, plus listed versions
1.2.12-121.2.12-131.2.12-13build1
None known
libsdl2-image
Ubuntu: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.2
Ubuntu:24.04:LTS
All versions, plus listed versions
1.2.12-13build21.2.12-13build31.2.12-13build4
None known
libsdl2-image
Ubuntu:25.10
All versions, plus listed versions
2.8.8+dfsg-1
None known
libsdl3-image
Ubuntu:25.10
All versions, plus listed versions
3.2.4+ds-1
None known
sdl-image1.2
Ubuntu:25.10
All versions, plus listed versions
1.2.12-14
None known
libsdl2-image
Ubuntu:26.10
All versions, plus listed versions
2.8.8+dfsg-22.8.12+dfsg-12.8.12+dfsg-2
None known
libsdl3-image
Ubuntu:26.10
All versions, plus listed versions
3.4.0+ds-13.4.4+ds-13.4.4+ds-2
None known
sdl-image1.2
Ubuntu:26.10
All versions, plus listed versions
1.2.12-14build1
None known
libsdl2-image
Ubuntu:26.04:LTS
All versions, plus listed versions
2.8.8+dfsg-12.8.8+dfsg-2
None known
libsdl3-image
Ubuntu:26.04:LTS
All versions, plus listed versions
3.2.4+ds-13.4.0+ds-1
None known
sdl-image1.2
Ubuntu:26.04:LTS
All versions, plus listed versions
1.2.12-141.2.12-14build1
None known
SDL3_image
openSUSE:Tumbleweed
before 3.4.2-1.1
3.4.2-1.1
SDL2_image
openSUSE:Tumbleweed
before 2.8.10-1.1
2.8.10-1.1

History

History
RecordedChangedSources
first indexedCVE 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

Show 4 moreShow less
MoveEnter Open