CVE-2019-5060
mediumpriority · track · 36EPSS 0.040 · 90 %ileEURUUSEPSS · scored 2026-10-27
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–high · 6.8–8.8
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (17)
Products and version ranges known to be affected.
also known as (4)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (17)
External citations — patches, advisories, analysis.
- http://lists.opensuse.org/opensuse-security-announce/2019-09/msg00012.htmlcnnvd
- http://lists.opensuse.org/opensuse-security-announce/2019-09/msg00014.htmlcnnvd
- https://nvd.nist.gov/vuln/detail/CVE-2019-5060cnnvd
- https://talosintelligence.com/vulnerability_reports/TALOS-2019-0844cnnvd
- https://vigilance.fr/vulnerability/Simple-DirectMedia-Layer-integer-overflow-via-colorhash-30256cnnvd
- https://www.libsdl.org/Patchcnnvd
- https://www.talosintelligence.com/vulnerability_reports/TALOS-2019-0844cnnvd
- http://lists.opensuse.org/opensuse-security-announce/2019-09/msg00012.htmlenisa_euvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan