An exploitable code execution vulnerability exists in the XPM image rendering function of SDL2_image 2.0.4. A specially crafted XPM image can cause an integer overflow in the colorhash function, allocating too small of a buffer. This buffer can then be written out of bounds, resulting in a heap overflow, ultimately ending in code execution. An attacker can display a specially crafted image to trigger this vulnerability.
CVSS Details
- CVSS 3.1 Base Score: 8.8
- CVSS 3.1 Vector: (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H)
- CVSS 3.0 Vector: (CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H)
Covered by Rapid7
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Alpine Linux | — | Upgrade sdl2_image | Oct 1, 2024 | Jul 31, 2019 |
| Debian | — | Upgrade libsdl2-imageUpgrade sdl-image1.2 | Jul 30, 2024 | Jul 31, 2019 |
| Freebsd | — | Upgrade sdl2_image | Jul 30, 2019 | Jul 3, 2019 |
| Suse | — | Upgrade libSDL_image-develUpgrade libSDL2_image-2_0-0-32bitUpgrade libSDL2_image-devel-32bitUpgrade libSDL2_image-2_0-0Upgrade libSDL_image-1_2-0-64bitUpgrade libSDL_image-devel-64bitUpgrade libSDL_image-1_2-0-32bitUpgrade libSDL2_image-develUpgrade libSDL2_image-devel-64bitUpgrade libSDL_image-devel-32bitUpgrade libSDL_image-1_2-0Upgrade libSDL2_image-2_0-0-64bit | Sep 6, 2019 | Jul 2, 2019 |
| Ubuntu | — | Upgrade libsdl2-image | Nov 19, 2024 | Jul 31, 2019 |
Prioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub