Skip to main content
No exploitation reportedFix available

CVE-2019-5060

No exploitation reported by the sources we read.

  • Published2019-07-31
  • WeaknessCWE-190 · CWE-787

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

Description

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.

Timeline

dates in UTC
  1. 2019-07-3117:15CVE publishedNVD

Versions per branch

NVD
Opensuse leap
BranchAffectedFixed in
15.0= 15.0no fix published
15.1= 15.1no fix published
Libsdl sdl2 image
BranchAffectedFixed in
2.0= 2.0.4no fix published
Opensuse backports sle
BranchAffectedFixed in
15.0= 15.0no fix published

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • libsdl2-imageUbuntu:Pro:18.04:LTSall versions · no fixed version listed
  • libsdl2-imageUbuntu:Pro:16.04:LTSall versions · no fixed version listed
  • libsdl2-imageUbuntu:Pro:14.04:LTSall versions · no fixed version listed
  • libsdl2-imageUbuntu:20.04:LTSall versions · fixed in 2.0.5+dfsg1-1
  • libsdl2-imageDebian:14all versions · fixed in 2.0.5+dfsg1-1
  • libsdl2-imageDebian:13all versions · fixed in 2.0.5+dfsg1-1
  • libsdl2-imageDebian:12all versions · fixed in 2.0.5+dfsg1-1
  • SDL_imageSUSE:Package Hub 15 SP1all versions · fixed in 1.2.12+hg695-bp151.4.3.1

16 more package ranges on OSV.dev

Vendor advisories

  • CVE-2019-5060 Red Hat Product Security

    SDL2_image: exploitable code execution in the XPM image rendering leads to an integer overflow in the colorhash function

Full record on NVD

Fix

No fix published by the sources we read yet. NVD record

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

  • NVDCVSS 3.18.8read 2026-10-23
  • CNACVSS 3.08.8known since 2026-10-23
  • NVDCVSS 2.06.8read 2026-10-23
  • CNAweakness (CWE)CWE-190known since 2026-10-23
  • NVDweakness (CWE)CWE-190, CWE-787read 2026-10-23
  • FIRST EPSSEPSS score4.0 %2026-12-03
  • OSVaffected packages—
  • GitHub Advisoriesadvisory—

Identifiers

Technical details

CVSS v3 vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Published
2019-07-31
Last modified
2026-06-17
NVD status
Modified
GitHub advisory
GHSA-qr2r-966r-5p23

Frequently asked questions

What is CVE-2019-5060?

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.

Is CVE-2019-5060 actively exploited?

Active exploitation of CVE-2019-5060 has not been confirmed. Its EPSS score was 4.0% on 2026-12-03, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2019-5060?

CVE-2019-5060 has a CVSS v3 base score of 8.8 (High severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.

Running SDL2_image? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website checks · 250 API requests/month

Sources for this record