{"id":"UBUNTU-CVE-2019-5059","details":"An exploitable code execution vulnerability exists in the XPM image rendering functionality of SDL2_image 2.0.4. A specially crafted XPM image can cause an integer overflow, 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.","modified":"2026-04-22T11:57:57.765441Z","published":"2019-07-31T17:15:00Z","upstream":["CVE-2019-5059"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2019-5059"},{"type":"REPORT","url":"https://talosintelligence.com/vulnerability_reports/TALOS-2019-0843"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2019-5059"}],"affected":[{"package":{"name":"libsdl2-image","ecosystem":"Ubuntu:Pro:14.04:LTS","purl":"pkg:deb/ubuntu/libsdl2-image@2.0.0+dfsg-3+deb8u2build0.14.04.1~esm1?arch=source&distro=esm-infra-legacy/trusty"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.0.0+dfsg-2","2.0.0+dfsg-3","2.0.0+dfsg-3build2","2.0.0+dfsg-3+deb8u1build0.14.04.1","2.0.0+dfsg-3+deb8u2build0.14.04.1~esm1"],"ecosystem_specific":{"binaries":[{"binary_version":"2.0.0+dfsg-3+deb8u2build0.14.04.1~esm1","binary_name":"libsdl2-image-2.0-0"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2019/UBUNTU-CVE-2019-5059.json"}},{"package":{"name":"libsdl2-image","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/libsdl2-image@2.0.1+dfsg-2+deb9u1build0.16.04.1?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.0.0+dfsg-3build2","2.0.1+dfsg-1","2.0.1+dfsg-2","2.0.1+dfsg-2+deb9u1build0.16.04.1"],"ecosystem_specific":{"binaries":[{"binary_version":"2.0.1+dfsg-2+deb9u1build0.16.04.1","binary_name":"libsdl2-image-2.0-0"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2019/UBUNTU-CVE-2019-5059.json"}},{"package":{"name":"libsdl2-image","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/libsdl2-image@2.0.3+dfsg1-1?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.0.1+dfsg-3","2.0.1+dfsg-4","2.0.2+dfsg1-1","2.0.3+dfsg1-1"],"ecosystem_specific":{"binaries":[{"binary_version":"2.0.3+dfsg1-1","binary_name":"libsdl2-image-2.0-0"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2019/UBUNTU-CVE-2019-5059.json"}},{"package":{"name":"libsdl2-image","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/libsdl2-image@2.0.5+dfsg1-1?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.5+dfsg1-1"}]}],"ecosystem_specific":{"binaries":[{"binary_version":"2.0.5+dfsg1-1","binary_name":"libsdl2-image-2.0-0"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2019/UBUNTU-CVE-2019-5059.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}