CVE-2026-35444 in Libsdl Sdl Image
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 ...
Affects 1 product from 1 vendor. Facts below cite their sources.
Requires local access, low complexity, no authentication required, requires user interaction, impact contained to the vulnerable component, full confidentiality impact, no integrity impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Libsdl | Sdl Image | < 2026-04-02 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2026-35444 |
|---|---|
| BreachSpider ID | BS-2026-GLOBAL-151480-M |
| CVSS vector | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:L |
| Published | 2026-04-06 |
| Last modified | 2026-07-24 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-125: Out-of-Bounds Read
Software reads data past the boundary of an allocated buffer, leaking sensitive information or causing crashes.
Related attack patterns (CAPEC)
CAPEC-540 Overread Buffers via CWE-125
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
A vulnerability in SDL_image's handling of XCF files allows for heap out-of-bounds reads due to improper validation of pixel indices against the colormap size.
An attacker can craft a malicious .xcf file with a small colormap and out-of-range pixel indices, which, when processed by SDL_image's do_layer_surface() function, results in heap out-of-bounds reads.
Questions
What is CVE-2026-35444?
A vulnerability in SDL_image's handling of XCF files allows for heap out-of-bounds reads due to improper validation of pixel indices against the colormap size.
What is the CVSS score for CVE-2026-35444?
CVE-2026-35444 has CVSS 6.1 (Medium). Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:L. EPSS: 0.3%.
Is CVE-2026-35444 actively exploited?
No confirmed active exploitation of CVE-2026-35444 as of 2026-07-25.
How do I remediate CVE-2026-35444?
Priority: MEDIUM. PSIRT: [email protected]
What systems are affected by CVE-2026-35444?
CVE-2026-35444 affects Libsdl Sdl Image.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Libsdl","product":"Sdl Image","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-07-24.