{"id":"CVE-2016-6912","aliases":["ALPINE-CVE-2016-6912","DEBIAN-CVE-2016-6912","DSA-3777-1","EUVD-2016-7797","GHSA-wmff-45hx-q83q","MGASA-2017-0055","SUSE-SU-2017:0468-1","UBUNTU-CVE-2016-6912","USN-3213-1","openSUSE-SU-2024:10777-1"],"status":"published","title":"Double free vulnerability in the gdImageWebPtr function in the GD Graphics Library (aka libgd)...","description":"Double free vulnerability in the gdImageWebPtr function in the GD Graphics Library (aka libgd) before 2.2.4 allows remote attackers to have unspecified impact via large width and height values.","severity":{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.04486,"percentile":0.91538,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-415"],"published":"2017-01-26T00:00:00Z","modified":"2026-10-20T13:15:27Z","fixes":[{"ecosystem":"Alpine:v3.3","package":"gd","fixed_in":["2.2.4-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.4","package":"gd","fixed_in":["2.2.4-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.5","package":"gd","fixed_in":["2.2.4-r0"],"sources":["osv"]},{"ecosystem":"Debian:12","package":"libgd2","fixed_in":["2.2.4-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"libgd2","fixed_in":["2.2.4-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"libgd2","fixed_in":["2.2.4-1"],"sources":["osv"]},{"ecosystem":"Ubuntu:14.04:LTS","package":"libgd2","fixed_in":["2.1.0-3ubuntu0.6"],"sources":["osv"]},{"ecosystem":"Ubuntu:16.04:LTS","package":"libgd2","fixed_in":["2.1.1-4ubuntu0.16.04.6"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Alpine:v3.3","package":"gd","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.2.4-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.4","package":"gd","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.2.4-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.5","package":"gd","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.2.4-r0"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"libgd2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.2.4-1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"libgd2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.2.4-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"libgd2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.2.4-1"}]}]},{"source":"osv","ecosystem":"Debian:8","package":"libgd2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.0-5+deb8u9"}]}],"versions":["2.1.0-5","2.1.0-5+deb8u1","2.1.0-5+deb8u2","2.1.0-5+deb8u3","2.1.0-5+deb8u4","2.1.0-5+deb8u5","2.1.0-5+deb8u6","2.1.0-5+deb8u7","2.1.0-5+deb8u8"],"bundled":6},{"source":"osv","ecosystem":"Mageia:5","package":"libgd","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.2.4-1.1.mga5"}]}],"bundled":5},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Desktop 12 SP1","package":"gd","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.0-23.1"}]}],"bundled":6},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Desktop 12 SP2","package":"gd","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.0-23.1"}]}],"bundled":6},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server for Raspberry Pi 12 SP2","package":"gd","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.0-23.1"}]}],"bundled":6},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Software Development Kit 12 SP1","package":"gd","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.0-23.1"}]}],"bundled":6},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Software Development Kit 12 SP2","package":"gd","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.0-23.1"}]}],"bundled":6},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server 12 SP1","package":"gd","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.0-23.1"}]}],"bundled":6},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 12 SP1","package":"gd","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.0-23.1"}]}],"bundled":6},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server 12 SP2","package":"gd","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.0-23.1"}]}],"bundled":6},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 12 SP2","package":"gd","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.0-23.1"}]}],"bundled":6},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Workstation Extension 12 SP1","package":"gd","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.0-23.1"}]}],"bundled":6},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Workstation Extension 12 SP2","package":"gd","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.0-23.1"}]}],"bundled":6},{"source":"osv","ecosystem":"Ubuntu:14.04:LTS","package":"libgd2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.0-3ubuntu0.6"}]}],"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"]},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"libgd2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.1-4ubuntu0.16.04.6"}]}],"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"]},{"source":"osv","ecosystem":"Ubuntu:14.04:LTS","package":"libgd2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.0-3ubuntu0.6"}]}],"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"],"bundled":7},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"libgd2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.1-4ubuntu0.16.04.6"}]}],"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"],"bundled":7},{"source":"osv","ecosystem":"openSUSE:Tumbleweed","package":"gd","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.3.3-1.1"}]}],"bundled":14}],"products":[{"vendor":"libgd","product":"libgd"}],"references":[{"url":"https://github.com/libgd/libgd/blob/gd-2.2.4/CHANGELOG.md","tags":["x_refsource_CONFIRM","x_transferred","Patch","Release Notes","fix","report"]},{"url":"http://www.debian.org/security/2017/dsa-3777","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred","advisory"]},{"url":"https://github.com/libgd/libgd/commit/a49feeae76d41959d85ee733925a4cf40bac61b2","tags":["x_refsource_CONFIRM","x_transferred","Patch","Vendor Advisory","fix"]},{"url":"http://www.securityfocus.com/bid/95843","tags":["vdb-entry","x_refsource_BID","x_transferred","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2016-6912"},{"url":"https://github.com/advisories/GHSA-wmff-45hx-q83q"},{"url":"https://security.alpinelinux.org/vuln/CVE-2016-6912","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2016-6912","tags":["advisory"]},{"url":"https://advisories.mageia.org/MGASA-2017-0055.html","tags":["advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=20171","tags":["report"]},{"url":"https://github.com/libgd/libgd/releases/tag/gd-2.2.4","tags":["web"]},{"url":"http://openwall.com/lists/oss-security/2017/01/26/1","tags":["web"]},{"url":"http://openwall.com/lists/oss-security/2017/01/28/6","tags":["web"]},{"url":"https://www.debian.org/security/2017/dsa-3777","tags":["web"]},{"url":"https://www.suse.com/support/update/announcement/2017/suse-su-20170468-1/","tags":["advisory"]},{"url":"https://bugzilla.suse.com/1022263","tags":["report"]},{"url":"https://bugzilla.suse.com/1022264","tags":["report"]},{"url":"https://bugzilla.suse.com/1022265","tags":["report"]},{"url":"https://bugzilla.suse.com/1022283","tags":["report"]},{"url":"https://bugzilla.suse.com/1022284","tags":["report"]},{"url":"https://bugzilla.suse.com/1022553","tags":["report"]},{"url":"https://www.suse.com/security/cve/CVE-2016-10166","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2016-10167","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2016-10168","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2016-6906","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2016-6912","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2016-9317","tags":["web"]},{"url":"https://ubuntu.com/security/CVE-2016-6912","tags":["report"]},{"url":"https://ubuntu.com/security/notices/USN-3213-1","tags":["advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2016-6912","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2016-6906","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2016-9317","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2016-9933","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2016-10166","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2016-10167","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2016-10168","tags":["report"]},{"url":"","tags":["advisory"]},{"url":"https://www.suse.com/security/cve/CVE-2007-2756","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2017-6362","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2017-7890","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2018-1000222","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2018-14553","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2018-5711","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2019-11038","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2019-6977","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2019-6978","tags":["web"]}],"sources":{"cve":[{"id":"CVE-2016-6912","description":"Double free vulnerability in the gdImageWebPtr function in the GD Graphics Library (aka libgd) before 2.2.4 allows remote attackers to have unspecified impact via large width and height values.","status":"published","published":"2017-01-26T15:00:00Z","modified":"2024-08-06T01:43:38.555Z","updated_at":"2026-11-02T14:33:34.815789Z"}],"euvd":[{"id":"EUVD-2016-7797","description":"Double free vulnerability in the gdImageWebPtr function in the GD Graphics Library (aka libgd) before 2.2.4 allows remote attackers to have unspecified impact via large width and height values.","status":"published","published":"2017-01-26T15:00:00Z","modified":"2024-08-06T01:43:38Z","updated_at":"2026-11-03T02:22:35.048987Z"}],"ghsa":[{"id":"GHSA-wmff-45hx-q83q","title":"Double free vulnerability in the gdImageWebPtr function in the GD Graphics Library (aka libgd)...","description":"Double free vulnerability in the gdImageWebPtr function in the GD Graphics Library (aka libgd) before 2.2.4 allows remote attackers to have unspecified impact via large width and height values.","status":"published","published":"2022-05-17T00:27:22Z","modified":"2023-02-03T05:01:46Z","cvss":[{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-415"],"updated_at":"2026-11-02T14:53:02.192117Z"}],"nvd":[{"id":"CVE-2016-6912","description":"Double free vulnerability in the gdImageWebPtr function in the GD Graphics Library (aka libgd) before 2.2.4 allows remote attackers to have unspecified impact via large width and height values.","status":"published","published":"2017-01-26T15:59:00.33Z","modified":"2026-06-17T00:51:59.01Z","cvss":[{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary"},{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"primary"}],"cwes":["CWE-415"],"updated_at":"2026-11-02T14:03:35.029632Z"}],"osv":[{"id":"ALPINE-CVE-2016-6912","description":"Double free vulnerability in the gdImageWebPtr function in the GD Graphics Library (aka libgd) before 2.2.4 allows remote attackers to have unspecified impact via large width and height values.","status":"published","published":"2017-01-26T15:59:00.33Z","modified":"2026-09-22T06:30:31.297217614Z","cvss":[{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:27:46.318571Z"},{"id":"CVE-2016-6912","description":"Double free vulnerability in the gdImageWebPtr function in the GD Graphics Library (aka libgd) before 2.2.4 allows remote attackers to have unspecified impact via large width and height values.","status":"published","published":"2017-01-26T15:59:00.33Z","modified":"2026-10-20T13:15:27.297587947Z","cvss":[{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:44:02.776224Z"},{"id":"DEBIAN-CVE-2016-6912","description":"Double free vulnerability in the gdImageWebPtr function in the GD Graphics Library (aka libgd) before 2.2.4 allows remote attackers to have unspecified impact via large width and height values.","status":"published","published":"2017-01-26T15:59:00.33Z","modified":"2026-09-22T07:02:13.692315689Z","cvss":[{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:45:27.910042Z"},{"id":"UBUNTU-CVE-2016-6912","description":"Double free vulnerability in the gdImageWebPtr function in the GD Graphics Library (aka libgd) before 2.2.4 allows remote attackers to have unspecified impact via large width and height values.","status":"published","published":"2017-01-26T00:00:00Z","modified":"2026-04-22T10:55:16.762307Z","cvss":[{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:54:12.642042Z"},{"id":"DSA-3777-1","title":"libgd2 - security update","status":"published","published":"2017-01-31T00:00:00Z","modified":"2026-03-09T01:20:00.143147Z","updated_at":"2026-11-02T15:46:16.523846Z"},{"id":"MGASA-2017-0055","title":"Updated libgd packages fix security vulnerability","description":"OOB reads of the TGA decompression buffer (CVE-2016-6906).\n\nDouble-free in gdImageWebPtr() (CVE-2016-6912).\n\ngdImageCreate() doesn't check for oversized images and as such is prone to\nDoS vulnerabilities (CVE-2016-9317).\n\nPotential unsigned underflow in gd_interpolation.c (CVE-2016-10166).\n\nDOS vulnerability in gdImageCreateFromGd2Ctx() (CVE-2016-10167).\n\nSigned Integer Overflow gd_io.c (CVE-2016-10168).\n","status":"published","published":"2017-02-20T13:00:19Z","modified":"2026-04-16T06:26:03.386813636Z","updated_at":"2026-11-02T15:49:40.103088Z"},{"id":"openSUSE-SU-2024:10777-1","title":"gd-2.3.3-1.1 on GA media","description":"These are all security issues fixed in the gd-2.3.3-1.1 package on the GA media of openSUSE Tumbleweed.","status":"published","published":"2024-06-15T00:00:00Z","modified":"2026-02-04T02:16:49.11313Z","updated_at":"2026-11-02T16:58:34.487567Z"},{"id":"SUSE-SU-2017:0468-1","title":"Security update for gd","description":"\nThis update for gd fixes the following security issues:\n\n- CVE-2016-6906: An out-of-bounds read in TGA decompression was fixed which could have lead to crashes. (bsc#1022553)\n- CVE-2016-6912: Double free vulnerability in the gdImageWebPtr function\n  in the GD Graphics Library (aka libgd) allowed remote attackers to have\n  unspecified impact via large width and height values. (bsc#1022284)\n- CVE-2016-9317: The gdImageCreate function in the GD Graphics Library\n  (aka libgd) allowed remote attackers to cause a denial of service\n  (system hang) via an oversized image.  (bsc#1022283)\n- CVE-2016-10166: A potential unsigned underflow in gd interpolation\n  functions could lead to memory corruption in the GD Graphics Library (aka libgd) (bsc#1022263)\n- CVE-2016-10167: A denial of service problem in gdImageCreateFromGd2Ctx()\n  could lead to libgd running out of memory even on small files. (bsc#1022264)\n- CVE-2016-10168: A signed integer overflow in the GD Graphics Library (aka libgd) could lead\n  to memory corruption (bsc#1022265)\n","status":"published","published":"2017-02-15T06:31:22Z","modified":"2026-02-04T04:06:56.780848Z","updated_at":"2026-11-02T15:53:43.83457Z"},{"id":"USN-3213-1","title":"libgd2 vulnerabilities","description":"Stefan Esser discovered that the GD library incorrectly handled memory when\nprocessing certain images. If a user or automated system were tricked into\nprocessing a specially crafted image, an attacker could cause a denial of\nservice, or possibly execute arbitrary code. This issue only affected\nUbuntu 14.04 LTS, Ubuntu 16.04 LTS and Ubuntu 16.10. (CVE-2016-10166)\n\nIt was discovered that the GD library incorrectly handled certain malformed\nimages. If a user or automated system were tricked into processing a\nspecially crafted image, an attacker could cause a denial of service.\n(CVE-2016-10167)\n\nIt was discovered that the GD library incorrectly handled certain malformed\nimages. If a user or automated system were tricked into processing a\nspecially crafted image, an attacker could cause a denial of service, or\npossibly execute arbitrary code. (CVE-2016-10168)\n\nIbrahim El-Sayed discovered that the GD library incorrectly handled certain\nmalformed TGA images. If a user or automated system were tricked into\nprocessing a specially crafted TGA image, an attacker could cause a denial\nof service. This issue only affected Ubuntu 14.04 LTS, Ubuntu 16.04 LTS and\nUbuntu 16.10. (CVE-2016-6906)\n\nIbrahim El-Sayed discovered that the GD library incorrectly handled certain\nmalformed WebP images. If a user or automated system were tricked into\nprocessing a specially crafted WebP image, an attacker could cause a denial\nof service, or possibly execute arbitrary code. This issue only affected\nUbuntu 14.04 LTS, Ubuntu 16.04 LTS and Ubuntu 16.10. (CVE-2016-6912)\n\nIt was discovered that the GD library incorrectly handled creating\noversized images. If a user or automated system were tricked into creating\na specially crafted image, an attacker could cause a denial of service.\n(CVE-2016-9317)\n\nIt was discovered that the GD library incorrectly handled filling certain\nimages. If a user or automated system were tricked into filling an image,\nan attacker could cause a denial of service. (CVE-2016-9933)\n","status":"published","published":"2017-02-28T18:31:29Z","modified":"2026-04-22T09:32:58.908812Z","updated_at":"2026-11-02T16:58:10.303275Z"}]}}
