{"id":"UBUNTU-CVE-2017-2887","details":"An exploitable buffer overflow vulnerability exists in the XCF property handling functionality of SDL_image 2.0.1. A specially crafted xcf file can cause a stack-based buffer overflow resulting in potential code execution. An attacker can provide a specially crafted XCF file to trigger this vulnerability.","modified":"2025-09-08T16:44:04Z","published":"2017-10-11T18:29:00Z","upstream":["CVE-2017-2887"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2017-2887"},{"type":"REPORT","url":"https://www.talosintelligence.com/vulnerability_reports/TALOS-2017-0394"},{"type":"REPORT","url":"https://hg.libsdl.org/SDL_image/rev/318484db0705"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2017-2887"}],"affected":[{"package":{"name":"libsdl2-image","ecosystem":"Ubuntu:14.04:LTS","purl":"pkg:deb/ubuntu/libsdl2-image@2.0.0+dfsg-3+deb8u1build0.14.04.1?arch=source&distro=trusty"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.0+dfsg-3+deb8u1build0.14.04.1"}]}],"versions":["2.0.0+dfsg-2","2.0.0+dfsg-3","2.0.0+dfsg-3build2"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"libsdl2-image-2.0-0","binary_version":"2.0.0+dfsg-3+deb8u1build0.14.04.1"},{"binary_name":"libsdl2-image-dev","binary_version":"2.0.0+dfsg-3+deb8u1build0.14.04.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2017/UBUNTU-CVE-2017-2887.json"}},{"package":{"name":"sdl-image1.2","ecosystem":"Ubuntu:14.04:LTS","purl":"pkg:deb/ubuntu/sdl-image1.2@1.2.12-5+deb9u1build0.14.04.1?arch=source&distro=trusty"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.12-5+deb9u1build0.14.04.1"}]}],"versions":["1.2.12-4ubuntu1","1.2.12-5","1.2.12-5build2"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"libsdl-image1.2","binary_version":"1.2.12-5+deb9u1build0.14.04.1"},{"binary_name":"libsdl-image1.2-dev","binary_version":"1.2.12-5+deb9u1build0.14.04.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2017/UBUNTU-CVE-2017-2887.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"},{"fixed":"2.0.1+dfsg-2+deb9u1build0.16.04.1"}]}],"versions":["2.0.0+dfsg-3build2","2.0.1+dfsg-1","2.0.1+dfsg-2"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"libsdl2-image-2.0-0","binary_version":"2.0.1+dfsg-2+deb9u1build0.16.04.1"},{"binary_name":"libsdl2-image-dev","binary_version":"2.0.1+dfsg-2+deb9u1build0.16.04.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2017/UBUNTU-CVE-2017-2887.json"}},{"package":{"name":"sdl-image1.2","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/sdl-image1.2@1.2.12-5+deb9u1build0.16.04.1?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.12-5+deb9u1build0.16.04.1"}]}],"versions":["1.2.12-5build2"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"libsdl-image1.2","binary_version":"1.2.12-5+deb9u1build0.16.04.1"},{"binary_name":"libsdl-image1.2-dev","binary_version":"1.2.12-5+deb9u1build0.16.04.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2017/UBUNTU-CVE-2017-2887.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"},{"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.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}