CVE-2016-7568
Integer overflow in the gdImageWebpCtx function in gd_webp.c in the GD Graphics Library (aka...
CVE-2016-7568 is a critical vulnerability (CVSS 9.8) in Libgd, published September 28, 2016. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 5.10%, the 92nd percentile. Fixed in gd 2.2.3-r1.
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
9.8
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.
- Record
CVE-2016-7568- CVSS 3.0
- 9.8 Critical
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - CVSS 2.0
- 7.5 High
AV:N/AC:L/Au:N/C:P/I:P/A:P - Weakness
- CWE-190
- Updated
- 2026-11-02
CVE List No score
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.
- Record
CVE-2016-7568- Updated
- 2026-11-02
EUVDEUVD-2016-8421 No score
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.
- Record
EUVD-2016-8421- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-fphp-jmfp-4vj9
9.8
Integer overflow in the gdImageWebpCtx function in gd_webp.c in the GD Graphics Library (aka...
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.
- Record
GHSA-fphp-jmfp-4vj9- CVSS 3.0
- 9.8 Critical
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-190
- Updated
- 2026-11-02
OSVALPINE-CVE-2016-7568
9.8
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.
- Record
ALPINE-CVE-2016-7568- CVSS 3.0
- 9.8 Critical
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSV
9.8
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.
- Record
CVE-2016-7568- CVSS 3.0
- 9.8 Critical
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
Show 8 moreShow less
OSVDEBIAN-CVE-2016-7568
9.8
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.
- Record
DEBIAN-CVE-2016-7568- CVSS 3.0
- 9.8 Critical
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2016-7568
9.8
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.
- Record
UBUNTU-CVE-2016-7568- CVSS 3.0
- 9.8 Critical
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVMGASA-2016-0339 No score
The updated packages fix a security vulnerability
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. (CVE-2016-7568)
- Record
MGASA-2016-0339- Updated
- 2026-11-02
OSVSUSE-SU-2016:2668-1 No score
Security update for gd
This update for gd fixes the following security issues:
- CVE-2016-7568: A specially crafted image file could cause an application crash or potentially execute arbitrary code when the image is converted to webp (bsc#1001900)
- CVE-2016-8670: Stack Buffer Overflow in GD dynamicGetbuf (bsc#1004924)
- CVE-2016-6911: Check for out-of-bound read in dynamicGetbuf() (bsc#1005274)
- Record
SUSE-SU-2016:2668-1- Updated
- 2026-11-02
OSVSUSE-SU-2016:2683-1 No score
Security update for php7
This update for php7 fixes the following security issue:
- CVE-2016-7568: A specially crafted image file could cause an application crash or potentially execute arbitrary code when the image is converted to webp (bsc#1001900)
- CVE-2016-8670: Stack Buffer Overflow in GD dynamicGetbuf (bsc#1004924)
- CVE-2016-6911: Check for out-of-bound read in dynamicGetbuf() (bsc#1005274)
- Record
SUSE-SU-2016:2683-1- Updated
- 2026-11-02
OSVSUSE-SU-2016:2683-2 No score
Security update for php7
This update for php7 fixes the following security issue:
- CVE-2016-7568: A specially crafted image file could cause an application crash or potentially execute arbitrary code when the image is converted to webp (bsc#1001900)
- CVE-2016-8670: Stack Buffer Overflow in GD dynamicGetbuf (bsc#1004924)
- CVE-2016-6911: Check for out-of-bound read in dynamicGetbuf() (bsc#1005274)
- Record
SUSE-SU-2016:2683-2- Updated
- 2026-11-02
OSVSUSE-SU-2016:2766-1 No score
Security update for php5
This update for php5 fixes the following security issues:
- CVE-2016-7568: A specially crafted image file could cause an application crash or potentially execute arbitrary code when the image is converted to webp (bsc#1001900)
- CVE-2016-8670: Stack Buffer Overflow in GD dynamicGetbuf (bsc#1004924)
- CVE-2016-6911: Check for out-of-bound read in dynamicGetbuf() (bsc#1005274)
- Record
SUSE-SU-2016:2766-1- Updated
- 2026-11-02
OSVUSN-3117-1 No score
libgd2 vulnerabilities
Ibrahim El-Sayed discovered that the GD library incorrectly handled certain malformed Tiff images. If a user or automated system were tricked into processing a specially crafted Tiff image, an attacker could cause a denial of service. (CVE-2016-6911)
Ke Liu discovered that the GD library incorrectly handled certain integers when processing WebP images. If a user or automated system were tricked into processing a specially crafted WebP image, an attacker could cause a denial of service, or possibly execute arbitrary code. This issue only applied to Ubuntu 14.04 LTS, Ubuntu 16.04 LTS and Ubuntu 16.10. (CVE-2016-7568)
Emmanuel Law discovered that the GD library incorrectly handled certain strings when creating images. If a user or automated system were tricked into processing a specially crafted image, an attacker could cause a denial of service, or possibly execute arbitrary code. (CVE-2016-8670)
- Record
USN-3117-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
gdAlpine:v3.4 |
before 2.2.3-r1 | 2.2.3-r1 |
libgd2Debian:12 |
before 2.2.3-87-gd0fec80-1 | 2.2.3-87-gd0fec80-1 |
libgd2Debian:13 |
before 2.2.3-87-gd0fec80-1 | 2.2.3-87-gd0fec80-1 |
libgd2Debian:14 |
before 2.2.3-87-gd0fec80-1 | 2.2.3-87-gd0fec80-1 |
libgd2Debian:8 |
before 2.1.0-5+deb8u7, plus listed versions 2.1.0-52.1.0-5+deb8u12.1.0-5+deb8u22.1.0-5+deb8u32.1.0-5+deb8u42.1.0-5+deb8u52.1.0-5+deb8u6 |
2.1.0-5+deb8u7 |
libgdMageia:5 |
before 2.2.3-1.2.mga5 | 2.2.3-1.2.mga5 |
gdSUSE:Linux Enterprise Desktop 12 SP1 |
before 2.1.0-17.1 | 2.1.0-17.1 |
gdSUSE:Linux Enterprise Software Development Kit 12 SP1 |
before 2.1.0-17.1 | 2.1.0-17.1 |
gdSUSE:Linux Enterprise Server 12 SP1 |
before 2.1.0-17.1 | 2.1.0-17.1 |
gdSUSE:Linux Enterprise Server for SAP Applications 12 SP1 |
before 2.1.0-17.1 | 2.1.0-17.1 |
Show 7 moreShow less
| Package | Affected | Fixed |
|---|---|---|
gdSUSE:Linux Enterprise Workstation Extension 12 SP1 |
before 2.1.0-17.1 | 2.1.0-17.1 |
php7SUSE:Linux Enterprise Module for Web and Scripting 12 |
before 7.0.7-20.1 | 7.0.7-20.1 |
php7SUSE:Linux Enterprise Software Development Kit 12 SP1 |
before 7.0.7-20.1 | 7.0.7-20.1 |
php5SUSE:Linux Enterprise Module for Web and Scripting 12 |
before 5.5.14-83.1 | 5.5.14-83.1 |
php5SUSE:Linux Enterprise Software Development Kit 12 SP1 |
before 5.5.14-83.1 | 5.5.14-83.1 |
libgd2Ubuntu:14.04:LTS |
before 2.1.0-3ubuntu0.5, plus listed versions 2.1.0-22.1.0-32.1.0-3ubuntu0.12.1.0-3ubuntu0.22.1.0-3ubuntu0.3 |
2.1.0-3ubuntu0.5 |
libgd2Ubuntu:16.04:LTS |
before 2.1.1-4ubuntu0.16.04.5, plus listed versions 2.1.1-4build12.1.1-4build22.1.1-4ubuntu0.16.04.12.1.1-4ubuntu0.16.04.22.1.1-4ubuntu0.16.04.3 |
2.1.1-4ubuntu0.16.04.5 |
History
| When | Changed | Sources |
|---|---|---|
| 2026-11-03 | aliases | EUVD |
| 2026-11-02 | created | CVE List, GitHub Advisories, NVD, OSV |
References
github.com/php/php-src/commit/c18263e0e0769faee96a5d0ee04b750c442783c6
debian.org/security/2016/dsa-3693
security.gentoo.org/glsa/201612-09
bugs.php.net/bug.php?id=73003
github.com/libgd/libgd/issues/308
github.com/libgd/libgd/commit/40bec0f38f50e8510f5bb71a82f516d46facde03
Show 23 moreShow less
securityfocus.com/bid/93184
nvd.nist.gov/vuln/detail/CVE-2016-7568
github.com/advisories/GHSA-fphp-jmfp-4vj9
security.alpinelinux.org/vuln/CVE-2016-7568
security-tracker.debian.org/tracker/CVE-2016-7568
advisories.mageia.org/MGASA-2016-0339.html
bugs.mageia.org/show_bug.cgi?id=19481
openwall.com/lists/oss-security/2016/09/28/7
suse.com/support/update/announcement/2016/suse-su-20162668-1
bugzilla.suse.com/1001900
bugzilla.suse.com/1004924
bugzilla.suse.com/1005274
suse.com/security/cve/CVE-2016-6911
suse.com/security/cve/CVE-2016-7568
suse.com/security/cve/CVE-2016-8670
suse.com/support/update/announcement/2016/suse-su-20162683-1
suse.com/support/update/announcement/2016/suse-su-20162683-2
suse.com/support/update/announcement/2016/suse-su-20162766-1
ubuntu.com/security/CVE-2016-7568
ubuntu.com/security/notices/USN-3117-1
cve.org/CVERecord?id=CVE-2016-7568
ubuntu.com/security/CVE-2016-6911
ubuntu.com/security/CVE-2016-8670