CVE-2019-5059

libsdl2-image-2.0-0: An exploitable code execution vulnerability exists in the XPM imagerendering functionality of SDL2_image 2.0.4

CVE-2019-5059 is fixed in 2 products on 1 platform, first by libsdl2-image-2.0-0 2.0.5+dfsg1-1, released July 31, 2019. It is not reported as exploited. Patch Radar priority: Routine.

Routine
CVSS
n/a
Medium
Exploitation
None reported
No vendor assessment
CISA KEV
Not listed
Not in the Known Exploited Vulnerabilities catalog
EPSS
0.0355
89th percentile

An exploitable code execution vulnerability exists in the XPM imagerendering functionality of SDL2_image 2.0.4. A specially crafted XPM imagecan cause an integer overflow, allocating too small of a buffer. Thisbuffer can then be written out of bounds resulting in a heap overflow,ultimately ending in code execution. An attacker can display a speciallycrafted image to trigger this vulnerability.

Where it's fixed

ProductFixed inFixReleased
Linux
libsdl2-image-2.0-0 · Ubuntu 20.04 LTS (focal) 2.0.5+dfsg1-1 libsdl2-image-2.0-0 2.0.5+dfsg1-1 Jul 31, 2019
libsdl2-image-2.0-0 · Ubuntu 24.10 (oracular) 2.0.5+dfsg1-1 libsdl2-image-2.0-0 2.0.5+dfsg1-1 Jan 16, 2026
libsdl2-image-2.0-0 · Ubuntu 25.04 (plucky) 2.0.5+dfsg1-1 libsdl2-image-2.0-0 2.0.5+dfsg1-1 Jan 16, 2026
libsdl2-image-tests · Ubuntu 24.10 (oracular) 2.0.5+dfsg1-1 libsdl2-image-tests 2.0.5+dfsg1-1 Jan 16, 2026
libsdl2-image-tests · Ubuntu 25.04 (plucky) 2.0.5+dfsg1-1 libsdl2-image-tests 2.0.5+dfsg1-1 Jan 16, 2026

Patch Radar data is free to use with attribution. Terms and how to credit it.

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.