{"id":"USN-7112-1","summary":"libgd2 vulnerability","details":"It was discovered that the GD Graphics Library did not perform proper\nbounds checking while handling BMP and WebP files. If a user were tricked\ninto opening a specially crafted file, an attacker could possibly use\nthis issue to cause a denial of service (application crash).\n\n","modified":"2026-02-10T04:45:55Z","published":"2024-11-15T01:44:40Z","related":["UBUNTU-CVE-2021-40812"],"upstream":["CVE-2021-40812","UBUNTU-CVE-2021-40812"],"references":[{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-7112-1"},{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2021-40812"}],"affected":[{"package":{"name":"libgd2","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/libgd2@2.1.1-4ubuntu0.16.04.12+esm4?arch=source&distro=esm-infra/xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.1-4ubuntu0.16.04.12+esm4"}]}],"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","2.1.1-4ubuntu0.16.04.10","2.1.1-4ubuntu0.16.04.11","2.1.1-4ubuntu0.16.04.12","2.1.1-4ubuntu0.16.04.12+esm1"],"ecosystem_specific":{"binaries":[{"binary_name":"libgd-dev","binary_version":"2.1.1-4ubuntu0.16.04.12+esm4"},{"binary_name":"libgd-tools","binary_version":"2.1.1-4ubuntu0.16.04.12+esm4"},{"binary_name":"libgd3","binary_version":"2.1.1-4ubuntu0.16.04.12+esm4"}],"availability":"Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-7112-1.json","cves_map":{"cves":[{"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"},{"type":"Ubuntu","score":"low"}],"id":"CVE-2021-40812"}],"ecosystem":"Ubuntu:Pro:16.04:LTS"}}},{"package":{"name":"libgd2","ecosystem":"Ubuntu:Pro:18.04:LTS","purl":"pkg:deb/ubuntu/libgd2@2.2.5-4ubuntu0.5+esm3?arch=source&distro=esm-infra/bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.2.5-4ubuntu0.5+esm3"}]}],"versions":["2.2.5-3","2.2.5-4","2.2.5-4ubuntu0.2","2.2.5-4ubuntu0.3","2.2.5-4ubuntu0.4","2.2.5-4ubuntu0.5"],"ecosystem_specific":{"binaries":[{"binary_name":"libgd-dev","binary_version":"2.2.5-4ubuntu0.5+esm3"},{"binary_name":"libgd-tools","binary_version":"2.2.5-4ubuntu0.5+esm3"},{"binary_name":"libgd3","binary_version":"2.2.5-4ubuntu0.5+esm3"}],"availability":"Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-7112-1.json","cves_map":{"cves":[{"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"},{"type":"Ubuntu","score":"low"}],"id":"CVE-2021-40812"}],"ecosystem":"Ubuntu:Pro:18.04:LTS"}}},{"package":{"name":"libgd2","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/libgd2@2.2.5-5.2ubuntu2.4?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.2.5-5.2ubuntu2.4"}]}],"versions":["2.2.5-5.2","2.2.5-5.2ubuntu2","2.2.5-5.2ubuntu2.1"],"ecosystem_specific":{"binaries":[{"binary_name":"libgd-dev","binary_version":"2.2.5-5.2ubuntu2.4"},{"binary_name":"libgd-tools","binary_version":"2.2.5-5.2ubuntu2.4"},{"binary_name":"libgd3","binary_version":"2.2.5-5.2ubuntu2.4"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-7112-1.json","cves_map":{"cves":[{"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"},{"type":"Ubuntu","score":"low"}],"id":"CVE-2021-40812"}],"ecosystem":"Ubuntu:20.04:LTS"}}},{"package":{"name":"libgd2","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/libgd2@2.3.0-2ubuntu2.3?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.3.0-2ubuntu2.3"}]}],"versions":["2.3.0-2ubuntu1","2.3.0-2ubuntu2"],"ecosystem_specific":{"binaries":[{"binary_name":"libgd-dev","binary_version":"2.3.0-2ubuntu2.3"},{"binary_name":"libgd-tools","binary_version":"2.3.0-2ubuntu2.3"},{"binary_name":"libgd3","binary_version":"2.3.0-2ubuntu2.3"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-7112-1.json","cves_map":{"cves":[{"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"},{"type":"Ubuntu","score":"low"}],"id":"CVE-2021-40812"}],"ecosystem":"Ubuntu:22.04:LTS"}}}],"schema_version":"1.7.3"}