Buffer overflow in Libsdl Sdl2 Image
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, 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.
Vulnerability class: Integer Overflow
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.8 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.040, 90.6th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Libsdl Sdl2 Image — versions 2.0.4
- openSUSE Backports Sle — versions 15.0
- openSUSE Leap — versions 15.0, 15.1
- Sdl — versions SDL_image 2.0.4
Weakness classification (CWE)
References
- openSUSE-SU-2019:2070 (vendor-advisory, Mailing List, Third Party Advisory)
- openSUSE-SU-2019:2071 (vendor-advisory, Mailing List, Third Party Advisory)
- openSUSE-SU-2019:2109 (vendor-advisory, Mailing List, Third Party Advisory)
- openSUSE-SU-2019:2108 (vendor-advisory, Mailing List, Third Party Advisory)
- talosintelligence.com/vulnerability_reports/TALOS-2019-0844 (Exploit, Third Party Advisory)