CVE-2019-5060
HIGH8.8EPSS 1.3%Published: 7/31/2019Modified: 4/28/2026
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 packages (3)
- Alpine/sdl2_imagefrom 0, < 2.0.5-r0
- Debian/libsdl2-imagefrom 0, < 2.0.5+dfsg1-1
- Debian/sdl-image1.2from 0, < 1.2.12-12
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | HIGH8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |