# CVE-2019-5051: An exploitable heap-based buffer overflow vulnerability exists when loading a PCX file in SDL2image, version 2.0.4.

- Severity: High 8.8 (CVSS:3.0, scored by talos) `CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 3.97%, higher than 90% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2019-07-03T18:43:48.000Z
- Modified: 2026-06-17T02:37:02.763Z
- Weaknesses: CWE-390, CWE-755, CWE-787
- Assigned by: talos

## Description

An exploitable heap-based buffer overflow vulnerability exists when loading a PCX file in SDL2_image, version 2.0.4. A missing error handler can lead to a buffer overflow and potential code execution. An attacker can provide a specially crafted image file to trigger this vulnerability.

(As written by CVE List.)

## Affected

- Simple DirectMedia: Simple DirectMedia Layer SDL2_image 2.0.4
- libsdl sdl2_image: 2.0.4
- debian debian_linux: 8.0
- opensuse backports_sle: 15.0
- opensuse leap: 15.0; 15.1
- canonical ubuntu_linux: 16.04; 18.04

## Every score

- talos: CVSS:3.0 8.8 High `CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.8 Medium `AV:N/AC:M/Au:N/C:P/I:P/A:P`

## References

- <https://talosintelligence.com/vulnerability_reports/TALOS-2019-0820> (exploit, third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2019/07/msg00026.html> (mailing-list, third-party-advisory)
- <http://lists.opensuse.org/opensuse-security-announce/2019-09/msg00012.html> (mailing-list, third-party-advisory, vendor-advisory)
- <http://lists.opensuse.org/opensuse-security-announce/2019-09/msg00029.html> (mailing-list, third-party-advisory, vendor-advisory)
- <https://usn.ubuntu.com/4238-1/> (third-party-advisory, vendor-advisory)

## Sources

- CVE List: [CVE-2019-5051](https://www.cve.org/CVERecord?id=CVE-2019-5051), CVE Terms of Use, modified 2024-08-04
- NVD: [CVE-2019-5051](https://nvd.nist.gov/vuln/detail/CVE-2019-5051), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2019-5051 · Whole record: https://cve.day/CVE-2019-5051.json · Rebuilt by cve.day 2026-11-25T22:57:45.417Z
