libsdl2-image-2.0-0: An exploitable code execution vulnerability exists in the XPM imagerendering function of SDL2_image 2.0.4
CVE-2019-5060 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.
An exploitable code execution vulnerability exists in the XPM imagerendering function of SDL2_image 2.0.4. A specially crafted XPM image cancause an integer overflow in the colorhash function, allocating too smallof a buffer. This buffer can then be written out of bounds, resulting in aheap overflow, ultimately ending in code execution. An attacker can displaya specially crafted image to trigger this vulnerability.
Where it's fixed
| Product | Fixed in | Fix | Released |
|---|---|---|---|
| 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.