CVE-2019-5059: Libsdl SDL2 Image
High severity, CVSS 8.8. EPSS: 3.5% probability of exploitation activity in the next 30 days.
An exploitable code execution vulnerability exists in the XPM image rendering functionality of SDL2_image 2.0.4. A specially crafted XPM image can cause an integer overflow, 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.
What to do
No fixed version is stated in NVD's or the CNA's structured data. Check the vendor's advisory among the references.
Affected products
- Libsdl SDL2 Image: version 2.0.4 only
- Opensuse Backports Sle: version 15.0 only
- Opensuse Leap: version 15.0 only; version 15.1 only
Published 2019-07-31. Last modified 2026-06-17.