CVE-2026-117557
SDL_image through 3.4.8 and 2.8.12 Stack Out-of-Bounds Read in ILBM Loader
SDL_image through 3.4.8 and through 2.8.12 contains a stack out-of-bounds read vulnerability in IMG_LoadLBM_IO() in src/IMG_lbm.c that skips bitplane count validation when HAM mode is set. Attackers can supply a crafted ILBM file with more than 8 HAM bitplanes to read past the colormap stack array, causing crashes or disclosing stack memory.
Fixes and workarounds
Fix
The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches.
Source: CNA: VulnCheckFix
The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches.
Source: CNA: VulnCheckAffected products and versions
| Product | Versions | Authority |
|---|---|---|
| SDL_image libsdl-org |
≥ 0; ≤ 2.8.12 (affected, semver) ≥ 3.0.0; ≤ 3.4.8 (affected, semver) Other versions: unaffected |
CNA: VulnCheck |
Version ranges are source assertions. Check the vendor advisory and your installed configuration before determining exposure.
CVSS assessments
| Version / score | Vector | Authority |
|---|---|---|
| 4.0 / 6.9 medium |
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N | CNA: VulnCheck |
| 3.1 / 6.1 medium |
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H | CNA: VulnCheck |
| 4.0 / 6.9 medium |
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X | NVD: [email protected] |
| 3.1 / 6.1 medium |
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H | NVD: [email protected] |
Exploit evidence
- https://hackmd.io/@haindpwn/sdl-image-lbm-ham-oob-read
exploit · ADP: CISA-ADP
References
- https://github.com/libsdl-org/SDL_image/issues/769CNA: VulnCheck · issue-tracking
- https://github.com/libsdl-org/SDL_imageCNA: VulnCheck · product
- https://github.com/libsdl-org/SDL_image/commit/5cfbe85f3a783417eec4d5aa0660b40c2cff5292CNA: VulnCheck · patch
- https://github.com/libsdl-org/SDL_image/commit/9c0622c36cf01e9ecba4bfdd6c4aa2b21c8cf996CNA: VulnCheck · patch
- https://github.com/libsdl-org/SDL_image/blob/release-3.4.8/src/IMG_lbm.c#L240CNA: VulnCheck · technical-description
- https://www.vulncheck.com/advisories/sdl-image-through-3.4.8-and-2.8.12-stack-out-of-bounds-read-in-ilbm-loaderCNA: VulnCheck · third-party-advisory
- https://hackmd.io/@haindpwn/sdl-image-lbm-ham-oob-readADP: CISA-ADP · exploit
- https://github.com/libsdl-org/SDL_image[email protected]
- https://github.com/libsdl-org/SDL_image/blob/release-3.4.8/src/IMG_lbm.c#L240[email protected]
- https://github.com/libsdl-org/SDL_image/commit/5cfbe85f3a783417eec4d5aa0660b40c2cff5292[email protected]
- https://github.com/libsdl-org/SDL_image/commit/9c0622c36cf01e9ecba4bfdd6c4aa2b21c8cf996[email protected]
- https://github.com/libsdl-org/SDL_image/issues/769[email protected]
- https://www.vulncheck.com/advisories/sdl-image-through-3.4.8-and-2.8.12-stack-out-of-bounds-read-in-ilbm-loader[email protected]
- https://hackmd.io/@haindpwn/sdl-image-lbm-ham-oob-read134c704f-9b21-4f2e-91b3-4a467353bcc0
For agents and automation
Read public disclosures for free as Markdown or JSON. Compatible browsers also expose native WebMCP tools to search disclosures, read this page, and discover API access.
Use the ontology-linked Cyber API with x402 pay per request, or a Y2 Pro or Elite API key with the intel:cyber scope.
Endpoints and access details
https://api.y2.dev/api/v2/cyber/cveshttps://api.y2.dev/api/v2/cyber/cves/{cveId}
A workspace owner or admin can create a Pro or Elite API key. Send Authorization: Bearer <Y2_API_KEY> from your trusted agent runtime.
For x402, omit Authorization and read the HTTP 402 payment challenge before signing a retry. Public browser tools do not make payments.