{"schemaVersion":3,"id":"CVE-2019-5060","aliases":["ALPINE-CVE-2019-5060","UBUNTU-CVE-2019-5060","DEBIAN-CVE-2019-5060"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2019-07-31T16:51:28.000Z","modified":"2024-08-04T19:47:55.654Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.8,"severity":"high","version":"3.0","versionLabel":"v3.0","source":"CVE.org","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.0","versionLabel":"v3.0","source":"CVE.org","score":8.8,"severity":"high","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Alpine","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":7.2,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":7.2,"impact":9.8,"computed":true},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Ubuntu","score":8.8,"severity":"high","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":7.2,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":7.2,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.0","versionLabel":"v3.0","source":"NVD","score":8.8,"severity":"high","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":6.8,"severity":"medium","vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.03969,"percentile":0.90338,"severity":"low","asOf":"2026-10-18T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-18T00:00:00.000Z","baselineScore":0.03969},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.03969,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.03969,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.03969,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.03969,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.03969,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.03969,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.03969,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.03969,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.03969,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.03969,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.03969,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.03969,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.03969,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.03969,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.03969,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.03969,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.03969,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.03969,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.03969,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.03969,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.03969,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.03969,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.03969,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.03969,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.03969,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.03969,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.03969,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.03969,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.03969,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.03969,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.03969,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.03969,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.03969,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.03969,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.03969,"percentile":0.90338}],"last30":[{"date":"2026-09-18T00:00:00.000Z","score":0.03969,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.03969,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.03969,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.03969,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.03969,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.03969,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.03969,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.03969,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.03969,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.03969,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.03969,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.03969,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.03969,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.03969,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.03969,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.03969,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.03969,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.03969,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.03969,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.03969,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.03969,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.03969,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.03969,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.03969,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.03969,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.03969,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.03969,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.03969,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.03969,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.03969,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.03969,"percentile":0.90338}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"REF_30466792EF7CA9BE","name":"Exploit Reference (talosintelligence.com)","source":"reference","url":"https://talosintelligence.com/vulnerability_reports/TALOS-2019-0844","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-190","name":"Integer Overflow or Wraparound","description":"The product performs a calculation that can\n         produce an integer overflow or wraparound when the logic\n         assumes that the resulting value will always be larger than\n         the original value. This occurs when an integer value is\n         incremented to a value that is too large to store in the\n         associated representation. When this occurs, the value may\n         become a very small or negative number.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/190.html"},{"id":"CWE-787","name":"Out-of-bounds Write","description":"The product writes data past the end, or before the beginning, of the intended buffer.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/787.html"}],"affected":[{"vendor":"alpine","product":"sdl2_image","name":"sdl2_image","label":"sdl2_image","ecosystem":"Alpine Linux","cpePart":null,"purl":"pkg:apk/alpine/sdl2_image","purlType":"apk","versions":[{"text":"< 2.0.5-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.0.5-r0","eol":null,"hubHref":null},{"vendor":"debian","product":"libsdl2-image","name":"libsdl2-image","label":"libsdl2-image","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/libsdl2-image","purlType":"deb","versions":[{"text":"< 2.0.5+dfsg1-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.0.5+dfsg1-1","eol":null,"hubHref":null},{"vendor":"debian","product":"sdl-image1.2","name":"sdl-image1.2","label":"sdl-image1.2","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/sdl-image1.2","purlType":"deb","versions":[{"text":"< 1.2.12-12","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.2.12-12","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"libsdl2-image","name":"libsdl2-image","label":"libsdl2-image","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/libsdl2-image","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null},{"text":"< 2.0.5+dfsg1-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"All versions (No fix recorded) | < 2.0.5+dfsg1-1","eol":null,"hubHref":null},{"vendor":"libsdl","product":"sdl2_image","name":"sdl2 image","label":"sdl2_image","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"2.0.4","noFixRecorded":false,"fixedIn":null}],"versionsText":"2.0.4","eol":null,"hubHref":"/vendor/libsdl/sdl2_image"},{"vendor":"opensuse","product":"backports_sle","name":"backports sle","label":"backports_sle","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"15.0","noFixRecorded":false,"fixedIn":null},{"text":"15.0:sp1","noFixRecorded":false,"fixedIn":null}],"versionsText":"15.0 | 15.0:sp1","eol":null,"hubHref":"/vendor/opensuse/backports_sle"},{"vendor":"opensuse","product":"leap","name":"leap","label":"leap","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"15.0","noFixRecorded":false,"fixedIn":null},{"text":"15.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"15.0 | 15.1","eol":{"isEol":true,"eolDate":"2019-12-03T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"15.0","label":"Leap 15.0","eolFrom":"2019-12-03T00:00:00.000Z","isLts":false,"isMaintained":false,"latestVersion":null},"product":{"name":"opensuse","label":"openSUSE","category":"os"}},"hubHref":"/vendor/opensuse/leap"}],"affectedCount":7,"eol":{"hasEol":true,"count":1},"references":[{"url":"http://lists.opensuse.org/opensuse-security-announce/2019-09/msg00012.html","label":"lists.opensuse.org/opensuse-security-announce/2019-09/msg00012.html","hostname":"lists.opensuse.org","tags":["Vendor Advisory","X Refsource SUSE","Mailing List","Third Party Advisory"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2019-09/msg00014.html","label":"lists.opensuse.org/opensuse-security-announce/2019-09/msg00014.html","hostname":"lists.opensuse.org","tags":["Vendor Advisory","X Refsource SUSE","Mailing List","Third Party Advisory"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2019-09/msg00030.html","label":"lists.opensuse.org/opensuse-security-announce/2019-09/msg00030.html","hostname":"lists.opensuse.org","tags":["Vendor Advisory","X Refsource SUSE","Mailing List","Third Party Advisory"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2019-09/msg00029.html","label":"lists.opensuse.org/opensuse-security-announce/2019-09/msg00029.html","hostname":"lists.opensuse.org","tags":["Vendor Advisory","X Refsource SUSE","Mailing List","Third Party Advisory"]},{"url":"https://talosintelligence.com/vulnerability_reports/TALOS-2019-0844","label":"talosintelligence.com/vulnerability_reports/TALOS-2019-0844","hostname":"talosintelligence.com","tags":["X Refsource MISC","REPORT","Exploit","Third Party Advisory"]},{"url":"https://security.alpinelinux.org/vuln/CVE-2019-5060","label":"security.alpinelinux.org/vuln/CVE-2019-5060","hostname":"security.alpinelinux.org","tags":["Advisory"]},{"url":"https://ubuntu.com/security/CVE-2019-5060","label":"ubuntu.com/security/CVE-2019-5060","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2019-5060","label":"www.cve.org/CVERecord?id=CVE-2019-5060","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2019-5060","label":"security-tracker.debian.org/tracker/CVE-2019-5060","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["MGASA-2019-0363","MGASA-2019-0364","OPENSUSE-SU-2019:2070-1","OPENSUSE-SU-2019:2071-1","OPENSUSE-SU-2019:2108-1","OPENSUSE-SU-2019:2109-1"],"duplicates":[],"related":["OPENSUSE-SU-2019:2070-1","OPENSUSE-SU-2019:2071-1","OPENSUSE-SU-2019:2108-1","OPENSUSE-SU-2019:2109-1"]},"timeline":[{"kind":"published","date":"2019-07-31T16:51:28.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-04T19:47:55.654Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":46,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T13:57:15.992Z","stale":false,"partial":false}}