Every CVE Search/ Get API key

CVE-2016-7568

Integer overflow in the gdImageWebpCtx function in gd_webp.c in the GD Graphics Library (aka...

9.8 CriticalFix available

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

5.10%Up 3.8 points since Feb 4, 2022
90%50%10%1%

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 CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS 2.0
7.5 HighAV: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 CriticalCVSS: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 CriticalCVSS: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 CriticalCVSS: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 CriticalCVSS: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 CriticalCVSS: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

Affected packages
PackageAffectedFixed
gd
Alpine:v3.4
before 2.2.3-r1
2.2.3-r1
libgd2
Debian:12
before 2.2.3-87-gd0fec80-1
2.2.3-87-gd0fec80-1
libgd2
Debian:13
before 2.2.3-87-gd0fec80-1
2.2.3-87-gd0fec80-1
libgd2
Debian:14
before 2.2.3-87-gd0fec80-1
2.2.3-87-gd0fec80-1
libgd2
Debian: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
libgd
Mageia:5
before 2.2.3-1.2.mga5
2.2.3-1.2.mga5
gd
SUSE:Linux Enterprise Desktop 12 SP1
before 2.1.0-17.1
2.1.0-17.1
gd
SUSE:Linux Enterprise Software Development Kit 12 SP1
before 2.1.0-17.1
2.1.0-17.1
gd
SUSE:Linux Enterprise Server 12 SP1
before 2.1.0-17.1
2.1.0-17.1
gd
SUSE:Linux Enterprise Server for SAP Applications 12 SP1
before 2.1.0-17.1
2.1.0-17.1
Show 7 moreShow less
Affected packages
PackageAffectedFixed
gd
SUSE:Linux Enterprise Workstation Extension 12 SP1
before 2.1.0-17.1
2.1.0-17.1
php7
SUSE:Linux Enterprise Module for Web and Scripting 12
before 7.0.7-20.1
7.0.7-20.1
php7
SUSE:Linux Enterprise Software Development Kit 12 SP1
before 7.0.7-20.1
7.0.7-20.1
php5
SUSE:Linux Enterprise Module for Web and Scripting 12
before 5.5.14-83.1
5.5.14-83.1
php5
SUSE:Linux Enterprise Software Development Kit 12 SP1
before 5.5.14-83.1
5.5.14-83.1
libgd2
Ubuntu: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
libgd2
Ubuntu: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

History
WhenChangedSources
2026-11-03aliasesEUVD
2026-11-02createdCVE List, GitHub Advisories, NVD, OSV

References

Show 23 moreShow less
MoveEnter Open