CVE-2026-117557
SDL_image through 3.4.8 and 2.8.12 Stack Out-of-Bounds Read in ILBM Loader
- State
- Published
- Severity
- 6.9 Medium
- Published
- Oct 27, 2026
- Updated
- Oct 27, 2026
- Reserved
- Oct 27, 2026
Description
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.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 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 | 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 | VulnCheck |
Weaknesses
- CWE-125 Out-of-bounds Read
Affected Products
| Product | Versions |
|---|---|
SDL_imagelibsdl-org |
|
References
- GitHub Issue #769issue-tracking
- https://github.com/libsdl-org/SDL_imageproduct
- https://github.com/libsdl-org/SDL_image/commit/5cfbe85f3a783417eec4d5aa0660b40c2cff5292patch
- https://github.com/libsdl-org/SDL_image/commit/9c0622c36cf01e9ecba4bfdd6c4aa2b21c8cf996patch
- https://github.com/libsdl-org/SDL_image/blob/release-3.4.8/src/IMG_lbm.c#L240technical-description
- VulnCheck Advisory: SDL_image through 3.4.8 and 2.8.12 Stack Out-of-Bounds Read in ILBM Loaderthird-party-advisory
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.