CVE-2019-5060 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, alloc...
HighCVSS 8.8
EPSS 4.0%
- Published
- Updated
- Exploit status
- No public exploit known
Description
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.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/libsdl2-image(Debian:12) | < 2.0.5+dfsg1-1 | 2.0.5+dfsg1-1 |
| debian/libsdl2-image(Debian:13) | < 2.0.5+dfsg1-1 | 2.0.5+dfsg1-1 |
| debian/libsdl2-image(Debian:14) | < 2.0.5+dfsg1-1 | 2.0.5+dfsg1-1 |
| debian/sdl-image1.2(Debian:12) | < 1.2.12-12 | 1.2.12-12 |
| debian/sdl-image1.2(Debian:13) | < 1.2.12-12 | 1.2.12-12 |
| debian/sdl-image1.2(Debian:14) | < 1.2.12-12 | 1.2.12-12 |
| libsdl sdl2 image | = 2.0.4 | No fix listed |
| openSUSE backports sle | = 15.0 | No fix listed |
| openSUSE backports sle | = 15.0-sp1 | No fix listed |
| openSUSE leap | = 15.0 | No fix listed |
| openSUSE leap | = 15.1 | No fix listed |
| alpine/sdl2_image(Alpine:v3.10) | < 2.0.5-r0 | 2.0.5-r0 |
| alpine/sdl2_image(Alpine:v3.7) | < 2.0.5-r0 | 2.0.5-r0 |
| alpine/sdl2_image(Alpine:v3.8) | < 2.0.5-r0 | 2.0.5-r0 |
| alpine/sdl2_image(Alpine:v3.9) | < 2.0.5-r0 | 2.0.5-r0 |
References
- Debian Security Tracker CVE-2019-5060 vendor-advisory
- openSUSE-SU-2019:2070 mailing-list third-party-advisory vendor-advisory
- openSUSE-SU-2019:2071 mailing-list third-party-advisory vendor-advisory
- openSUSE-SU-2019:2108 mailing-list third-party-advisory vendor-advisory
- openSUSE-SU-2019:2109 mailing-list third-party-advisory vendor-advisory
- talosintelligence.com exploit third-party-advisory
- security.alpinelinux.org vendor-advisory