{"id":"UBUNTU-CVE-2018-1000222","details":"Libgd version 2.2.5 contains a Double Free Vulnerability vulnerability in gdImageBmpPtr Function that can result in Remote Code Execution . This attack appear to be exploitable via Specially Crafted Jpeg Image can trigger double free. This vulnerability appears to have been fixed in after commit ac16bdf2d41724b5a65255d4c28fb0ec46bc42f5.","modified":"2026-04-22T11:39:20.321139Z","published":"2018-08-20T00:00:00Z","related":["USN-3755-1"],"upstream":["CVE-2018-1000222"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2018-1000222"},{"type":"REPORT","url":"https://github.com/libgd/libgd/issues/447"},{"type":"REPORT","url":"https://github.com/libgd/libgd/commit/ac16bdf2d41724b5a65255d4c28fb0ec46bc42f5"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-3755-1"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2018-1000222"}],"affected":[{"package":{"name":"libgd2","ecosystem":"Ubuntu:14.04:LTS","purl":"pkg:deb/ubuntu/libgd2@2.1.0-3ubuntu0.10?arch=source&distro=trusty"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.0-3ubuntu0.10"}]}],"versions":["2.1.0-2","2.1.0-3","2.1.0-3ubuntu0.1","2.1.0-3ubuntu0.2","2.1.0-3ubuntu0.3","2.1.0-3ubuntu0.5","2.1.0-3ubuntu0.6","2.1.0-3ubuntu0.7","2.1.0-3ubuntu0.8"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"libgd-tools","binary_version":"2.1.0-3ubuntu0.10"},{"binary_name":"libgd3","binary_version":"2.1.0-3ubuntu0.10"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-1000222.json"}},{"package":{"name":"libgd2","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/libgd2@2.1.1-4ubuntu0.16.04.10?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.1-4ubuntu0.16.04.10"}]}],"versions":["2.1.1-4build1","2.1.1-4build2","2.1.1-4ubuntu0.16.04.1","2.1.1-4ubuntu0.16.04.2","2.1.1-4ubuntu0.16.04.3","2.1.1-4ubuntu0.16.04.5","2.1.1-4ubuntu0.16.04.6","2.1.1-4ubuntu0.16.04.7","2.1.1-4ubuntu0.16.04.8"],"ecosystem_specific":{"binaries":[{"binary_name":"libgd-tools","binary_version":"2.1.1-4ubuntu0.16.04.10"},{"binary_name":"libgd3","binary_version":"2.1.1-4ubuntu0.16.04.10"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-1000222.json"}},{"package":{"name":"libgd2","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/libgd2@2.2.5-4ubuntu0.2?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.2.5-4ubuntu0.2"}]}],"versions":["2.2.5-3","2.2.5-4"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"libgd-tools","binary_version":"2.2.5-4ubuntu0.2"},{"binary_name":"libgd3","binary_version":"2.2.5-4ubuntu0.2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-1000222.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":"Ubuntu","score":"medium"}]}