# CVE-2019-5058: libsdl2-image-2.0-0: An exploitable code execution vulnerability exists in the XCF imagerendering functionality of SDL2_image 2.0.4

CVE-2019-5058 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.

- Web page: https://patchblox.com/security/cve/CVE-2019-5058
- Priority: Routine
- CVSS: n/a (Medium)
- EPSS: 0.0362
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Jul 31, 2019

## Description

An exploitable code execution vulnerability exists in the XCF imagerendering functionality of SDL2_image 2.0.4. A specially crafted XCF imagecan cause a heap overflow, resulting in code execution. An attacker candisplay a specially crafted image to trigger this vulnerability.

## Where it's fixed

| Platform | 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](https://patchblox.com/security/data/fix/linux/ubuntu-focal-libsdl2-image-2.0-0-2.0.5-dfsg1-1.md) | Jul 31, 2019 |
| Linux | libsdl2-image-2.0-0 Ubuntu 24.10 (oracular) | 2.0.5+dfsg1-1 | [libsdl2-image-2.0-0 2.0.5+dfsg1-1](https://patchblox.com/security/data/fix/linux/ubuntu-oracular-libsdl2-image-2.0-0-2.0.5-dfsg1-1.md) | Jan 16, 2026 |
| Linux | libsdl2-image-2.0-0 Ubuntu 25.04 (plucky) | 2.0.5+dfsg1-1 | [libsdl2-image-2.0-0 2.0.5+dfsg1-1](https://patchblox.com/security/data/fix/linux/ubuntu-plucky-libsdl2-image-2.0-0-2.0.5-dfsg1-1.md) | Jan 16, 2026 |
| Linux | libsdl2-image-tests Ubuntu 24.10 (oracular) | 2.0.5+dfsg1-1 | [libsdl2-image-tests 2.0.5+dfsg1-1](https://patchblox.com/security/data/fix/linux/ubuntu-oracular-libsdl2-image-tests-2.0.5-dfsg1-1.md) | Jan 16, 2026 |
| Linux | libsdl2-image-tests Ubuntu 25.04 (plucky) | 2.0.5+dfsg1-1 | [libsdl2-image-tests 2.0.5+dfsg1-1](https://patchblox.com/security/data/fix/linux/ubuntu-plucky-libsdl2-image-tests-2.0.5-dfsg1-1.md) | Jan 16, 2026 |

---

Data as of 2026-11-07T18:46:35Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

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.
