{"id":"CVE-2016-7568","aliases":["ALPINE-CVE-2016-7568","DEBIAN-CVE-2016-7568","DSA-3693-1","EUVD-2016-8421","GHSA-fphp-jmfp-4vj9","MGASA-2016-0339","SUSE-SU-2016:2668-1","SUSE-SU-2016:2683-1","SUSE-SU-2016:2683-2","SUSE-SU-2016:2766-1","UBUNTU-CVE-2016-7568","USN-3117-1"],"status":"published","title":"Integer overflow in the gdImageWebpCtx function in gd_webp.c in the GD Graphics Library (aka...","description":"Integer overflow in the gdImageWebpCtx function in gd_webp.c in the GD Graphics Library (aka libgd) through 2.2.3, as used in PHP through 7.0.11, allows remote attackers to cause a denial of service (heap-based buffer overflow) or possibly have unspecified other impact via crafted imagewebp and imagedestroy calls.","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.05101,"percentile":0.92422,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-190"],"published":"2016-09-28T00:00:00Z","modified":"2026-10-24T10:48:47Z","fixes":[{"ecosystem":"Alpine:v3.4","package":"gd","fixed_in":["2.2.3-r1"],"sources":["osv"]},{"ecosystem":"Debian:12","package":"libgd2","fixed_in":["2.2.3-87-gd0fec80-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"libgd2","fixed_in":["2.2.3-87-gd0fec80-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"libgd2","fixed_in":["2.2.3-87-gd0fec80-1"],"sources":["osv"]},{"ecosystem":"Mageia:5","package":"libgd","fixed_in":["2.2.3-1.2.mga5"],"sources":["osv"]},{"ecosystem":"Ubuntu:14.04:LTS","package":"libgd2","fixed_in":["2.1.0-3ubuntu0.5"],"sources":["osv"]},{"ecosystem":"Ubuntu:16.04:LTS","package":"libgd2","fixed_in":["2.1.1-4ubuntu0.16.04.5"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Alpine:v3.4","package":"gd","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.2.3-r1"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"libgd2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.2.3-87-gd0fec80-1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"libgd2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.2.3-87-gd0fec80-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"libgd2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.2.3-87-gd0fec80-1"}]}]},{"source":"osv","ecosystem":"Debian:8","package":"libgd2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.0-5+deb8u7"}]}],"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"],"bundled":3},{"source":"osv","ecosystem":"Mageia:5","package":"libgd","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.2.3-1.2.mga5"}]}]},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Desktop 12 SP1","package":"gd","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.0-17.1"}]}],"bundled":3},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Software Development Kit 12 SP1","package":"gd","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.0-17.1"}]}],"bundled":3},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server 12 SP1","package":"gd","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.0-17.1"}]}],"bundled":3},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 12 SP1","package":"gd","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.0-17.1"}]}],"bundled":3},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Workstation Extension 12 SP1","package":"gd","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.0-17.1"}]}],"bundled":3},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Module for Web and Scripting 12","package":"php7","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"7.0.7-20.1"}]}],"bundled":3},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Software Development Kit 12 SP1","package":"php7","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"7.0.7-20.1"}]}],"bundled":3},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Module for Web and Scripting 12","package":"php7","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"7.0.7-20.1"}]}],"bundled":3},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Module for Web and Scripting 12","package":"php5","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.5.14-83.1"}]}],"bundled":3},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Software Development Kit 12 SP1","package":"php5","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.5.14-83.1"}]}],"bundled":3},{"source":"osv","ecosystem":"Ubuntu:14.04:LTS","package":"libgd2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.0-3ubuntu0.5"}]}],"versions":["2.1.0-2","2.1.0-3","2.1.0-3ubuntu0.1","2.1.0-3ubuntu0.2","2.1.0-3ubuntu0.3"]},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"libgd2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.1-4ubuntu0.16.04.5"}]}],"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"]},{"source":"osv","ecosystem":"Ubuntu:14.04:LTS","package":"libgd2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.0-3ubuntu0.5"}]}],"versions":["2.1.0-2","2.1.0-3","2.1.0-3ubuntu0.1","2.1.0-3ubuntu0.2","2.1.0-3ubuntu0.3"],"bundled":3},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"libgd2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.1-4ubuntu0.16.04.5"}]}],"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"],"bundled":3}],"products":[{"vendor":"debian","product":"debian_linux"},{"vendor":"libgd","product":"libgd"},{"vendor":"php","product":"php"}],"references":[{"url":"https://github.com/php/php-src/commit/c18263e0e0769faee96a5d0ee04b750c442783c6","tags":["x_refsource_CONFIRM","x_transferred","Issue Tracking","Patch","Third Party Advisory","fix"]},{"url":"http://www.debian.org/security/2016/dsa-3693","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred","Third Party Advisory","advisory"]},{"url":"https://security.gentoo.org/glsa/201612-09","tags":["vendor-advisory","x_refsource_GENTOO","x_transferred","Third Party Advisory","advisory"]},{"url":"https://bugs.php.net/bug.php?id=73003","tags":["x_refsource_CONFIRM","x_transferred","Issue Tracking","Vendor Advisory","report"]},{"url":"https://github.com/libgd/libgd/issues/308","tags":["x_refsource_CONFIRM","x_transferred","Issue Tracking","Patch","Third Party Advisory","fix"]},{"url":"https://github.com/libgd/libgd/commit/40bec0f38f50e8510f5bb71a82f516d46facde03","tags":["x_refsource_CONFIRM","x_transferred","Issue Tracking","Patch","Third Party Advisory","fix"]},{"url":"http://www.securityfocus.com/bid/93184","tags":["vdb-entry","x_refsource_BID","x_transferred","Third Party Advisory","VDB Entry","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2016-7568"},{"url":"https://github.com/advisories/GHSA-fphp-jmfp-4vj9"},{"url":"https://security.alpinelinux.org/vuln/CVE-2016-7568","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2016-7568","tags":["advisory"]},{"url":"https://advisories.mageia.org/MGASA-2016-0339.html","tags":["advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=19481","tags":["report"]},{"url":"http://openwall.com/lists/oss-security/2016/09/28/7","tags":["web"]},{"url":"https://www.suse.com/support/update/announcement/2016/suse-su-20162668-1/","tags":["advisory"]},{"url":"https://bugzilla.suse.com/1001900","tags":["report"]},{"url":"https://bugzilla.suse.com/1004924","tags":["report"]},{"url":"https://bugzilla.suse.com/1005274","tags":["report"]},{"url":"https://www.suse.com/security/cve/CVE-2016-6911","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2016-7568","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2016-8670","tags":["web"]},{"url":"https://www.suse.com/support/update/announcement/2016/suse-su-20162683-1/","tags":["advisory"]},{"url":"https://www.suse.com/support/update/announcement/2016/suse-su-20162683-2/","tags":["advisory"]},{"url":"https://www.suse.com/support/update/announcement/2016/suse-su-20162766-1/","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2016-7568","tags":["report"]},{"url":"https://ubuntu.com/security/notices/USN-3117-1","tags":["advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2016-7568","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2016-6911","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2016-8670","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2016-7568","description":"Integer overflow in the gdImageWebpCtx function in gd_webp.c in the GD Graphics Library (aka libgd) through 2.2.3, as used in PHP through 7.0.11, allows remote attackers to cause a denial of service (heap-based buffer overflow) or possibly have unspecified other impact via crafted imagewebp and imagedestroy calls.","status":"published","published":"2016-09-28T20:00:00Z","modified":"2024-08-06T02:04:55.604Z","updated_at":"2026-11-02T14:33:36.802481Z"}],"euvd":[{"id":"EUVD-2016-8421","description":"Integer overflow in the gdImageWebpCtx function in gd_webp.c in the GD Graphics Library (aka libgd) through 2.2.3, as used in PHP through 7.0.11, allows remote attackers to cause a denial of service (heap-based buffer overflow) or possibly have unspecified other impact via crafted imagewebp and imagedestroy calls.","status":"published","published":"2016-09-28T20:00:00Z","modified":"2024-08-06T02:04:55Z","updated_at":"2026-11-03T02:22:32.403524Z"}],"ghsa":[{"id":"GHSA-fphp-jmfp-4vj9","title":"Integer overflow in the gdImageWebpCtx function in gd_webp.c in the GD Graphics Library (aka...","description":"Integer overflow in the gdImageWebpCtx function in gd_webp.c in the GD Graphics Library (aka libgd) through 2.2.3, as used in PHP through 7.0.11, allows remote attackers to cause a denial of service (heap-based buffer overflow) or possibly have unspecified other impact via crafted imagewebp and imagedestroy calls.","status":"published","published":"2022-05-14T01:27:55Z","modified":"2023-02-02T05:03:51Z","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-190"],"updated_at":"2026-11-02T14:51:44.264716Z"}],"nvd":[{"id":"CVE-2016-7568","description":"Integer overflow in the gdImageWebpCtx function in gd_webp.c in the GD Graphics Library (aka libgd) through 2.2.3, as used in PHP through 7.0.11, allows remote attackers to cause a denial of service (heap-based buffer overflow) or possibly have unspecified other impact via crafted imagewebp and imagedestroy calls.","status":"published","published":"2016-09-28T20:59:02.68Z","modified":"2026-06-17T00:53:15.473Z","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-190"],"updated_at":"2026-11-02T14:03:31.485755Z"}],"osv":[{"id":"ALPINE-CVE-2016-7568","description":"Integer overflow in the gdImageWebpCtx function in gd_webp.c in the GD Graphics Library (aka libgd) through 2.2.3, as used in PHP through 7.0.11, allows remote attackers to cause a denial of service (heap-based buffer overflow) or possibly have unspecified other impact via crafted imagewebp and imagedestroy calls.","status":"published","published":"2016-09-28T20:59:02.68Z","modified":"2026-09-22T06:30:38.782609216Z","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-7568","description":"Integer overflow in the gdImageWebpCtx function in gd_webp.c in the GD Graphics Library (aka libgd) through 2.2.3, as used in PHP through 7.0.11, allows remote attackers to cause a denial of service (heap-based buffer overflow) or possibly have unspecified other impact via crafted imagewebp and imagedestroy calls.","status":"published","published":"2016-09-28T20:59:02.68Z","modified":"2026-10-24T10:48:47.948265426Z","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:03.171316Z"},{"id":"DEBIAN-CVE-2016-7568","description":"Integer overflow in the gdImageWebpCtx function in gd_webp.c in the GD Graphics Library (aka libgd) through 2.2.3, as used in PHP through 7.0.11, allows remote attackers to cause a denial of service (heap-based buffer overflow) or possibly have unspecified other impact via crafted imagewebp and imagedestroy calls.","status":"published","published":"2016-09-28T20:59:02.68Z","modified":"2026-09-22T07:02:15.757899416Z","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-7568","description":"Integer overflow in the gdImageWebpCtx function in gd_webp.c in the GD Graphics Library (aka libgd) through 2.2.3, as used in PHP through 7.0.11, allows remote attackers to cause a denial of service (heap-based buffer overflow) or possibly have unspecified other impact via crafted imagewebp and imagedestroy calls.","status":"published","published":"2016-09-28T00:00:00Z","modified":"2026-04-22T10:58:37.40696Z","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.994319Z"},{"id":"DSA-3693-1","title":"libgd2 - security update","status":"published","published":"2016-10-14T00:00:00Z","modified":"2026-03-09T01:22:46.753145Z","updated_at":"2026-11-02T15:46:16.523846Z"},{"id":"MGASA-2016-0339","title":"The updated packages fix a security vulnerability","description":"Integer overflow in the gdImageWebpCtx function in gd_webp.c in the GD \nGraphics Library (aka libgd) through 2.2.3, as used in PHP through 7.0.11, \nallows remote attackers to cause a denial of service (heap-based buffer \noverflow) or possibly have unspecified other impact via crafted imagewebp \nand imagedestroy calls. (CVE-2016-7568)\n","status":"published","published":"2016-10-12T13:46:10Z","modified":"2026-04-16T06:22:27.795307003Z","updated_at":"2026-11-02T15:49:40.103088Z"},{"id":"SUSE-SU-2016:2668-1","title":"Security update for gd","description":"\nThis update for gd fixes the following security issues:\n\n- CVE-2016-7568: A specially crafted image file could cause an application crash or potentially execute arbitrary code\n                 when the image is converted to webp (bsc#1001900)\n- CVE-2016-8670: Stack Buffer Overflow in GD dynamicGetbuf (bsc#1004924)\n- CVE-2016-6911: Check for out-of-bound read in dynamicGetbuf() (bsc#1005274)\n","status":"published","published":"2016-10-28T12:55:11Z","modified":"2026-02-04T03:15:51.64259Z","updated_at":"2026-11-02T15:53:43.438985Z"},{"id":"SUSE-SU-2016:2683-1","title":"Security update for php7","description":"This update for php7 fixes the following security issue:\n\n- CVE-2016-7568: A specially crafted image file could cause an application crash or potentially execute arbitrary code\n                 when the image is converted to webp (bsc#1001900)\n- CVE-2016-8670: Stack Buffer Overflow in GD dynamicGetbuf (bsc#1004924)\n- CVE-2016-6911: Check for out-of-bound read in dynamicGetbuf() (bsc#1005274)\n","status":"published","published":"2016-10-31T07:15:30Z","modified":"2026-02-04T02:29:57.660304Z","updated_at":"2026-11-02T15:53:43.438985Z"},{"id":"SUSE-SU-2016:2683-2","title":"Security update for php7","description":"This update for php7 fixes the following security issue:\n\n- CVE-2016-7568: A specially crafted image file could cause an application crash or potentially execute arbitrary code\n                 when the image is converted to webp (bsc#1001900)\n- CVE-2016-8670: Stack Buffer Overflow in GD dynamicGetbuf (bsc#1004924)\n- CVE-2016-6911: Check for out-of-bound read in dynamicGetbuf() (bsc#1005274)\n","status":"published","published":"2016-10-31T07:15:22Z","modified":"2026-02-04T02:51:56.89266Z","updated_at":"2026-11-02T15:53:43.438985Z"},{"id":"SUSE-SU-2016:2766-1","title":"Security update for php5","description":"This update for php5 fixes the following security issues:\n\n- CVE-2016-7568: A specially crafted image file could cause an application crash or potentially execute arbitrary code\n                 when the image is converted to webp (bsc#1001900)\n- CVE-2016-8670: Stack Buffer Overflow in GD dynamicGetbuf (bsc#1004924)\n- CVE-2016-6911: Check for out-of-bound read in dynamicGetbuf() (bsc#1005274)\n","status":"published","published":"2016-11-09T17:10:27Z","modified":"2025-05-02T04:05:29.694994Z","updated_at":"2026-11-02T15:53:43.438985Z"},{"id":"USN-3117-1","title":"libgd2 vulnerabilities","description":"Ibrahim El-Sayed discovered that the GD library incorrectly handled certain\nmalformed Tiff images. If a user or automated system were tricked into\nprocessing a specially crafted Tiff image, an attacker could cause a denial\nof service. (CVE-2016-6911)\n\nKe Liu discovered that the GD library incorrectly handled certain integers\nwhen processing WebP images. If a user or automated system were tricked\ninto processing a specially crafted WebP image, an attacker could cause a\ndenial of service, or possibly execute arbitrary code. This issue only\napplied to Ubuntu 14.04 LTS, Ubuntu 16.04 LTS and Ubuntu 16.10.\n(CVE-2016-7568)\n\nEmmanuel Law discovered that the GD library incorrectly handled certain\nstrings when creating images. If a user or automated system were tricked\ninto processing a specially crafted image, an attacker could cause a denial\nof service, or possibly execute arbitrary code. (CVE-2016-8670)\n","status":"published","published":"2016-11-01T17:10:21Z","modified":"2026-04-22T09:30:06.107566Z","updated_at":"2026-11-02T16:58:10.303275Z"}]}}
