High severity · published Aug 7, 2016
CVE-2016-5766
Integer overflow in the _gd2GetHeader function in gd_gd2.c in the GD Graphics Library (aka libgd) before 2.2.3, as used in PHP before 5.5.37, 5.6.x before 5.6.23, and 7.x before…
8.8
CVSS
7.5%
EPSS
No
On KEV
Description
Integer overflow in the _gd2GetHeader function in gd_gd2.c in the GD Graphics Library (aka libgd) before 2.2.3, as used in PHP before 5.5.37, 5.6.x before 5.6.23, and 7.x before 7.0.8, allows remote attackers to cause a denial of service (heap-based buffer overflow and application crash) or possibly have unspecified other impact via crafted chunk dimensions in an image.
CVSS vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
Required
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)7.5% · higher than 94% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
DL
Debian Linux · Debian
8.0 · source: NVD
EL
Enterprise Linux · Redhat
6.0; 5; 7.0 · source: NVD
FE
Fedora · Fedoraproject
23; 24; 22 · source: NVD
FR
Freebsd · Freebsd
8.3; 8.0; 10.0; 10.1; 8.4; 9.2; +7 more · source: NVD
LI
Libgd · Libgd
2.2.2 · source: NVD
OP
Openshift · Redhat
2.0 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2016-5766
CVE.org
https://www.cve.org/CVERecord?id=CVE-2016-5766
Exploit
http://github.com/php/php-src/commit/7722455726bec8c53458a32851d2a87982cf0eac?w=1
lists.opensuse.org
http://lists.opensuse.org/opensuse-security-announce/2016-07/msg00004.html
lists.opensuse.org
http://lists.opensuse.org/opensuse-security-announce/2016-08/msg00025.html
lists.opensuse.org
http://lists.opensuse.org/opensuse-updates/2016-08/msg00003.html
Release Notes
http://php.net/ChangeLog-5.php
Release Notes
http://php.net/ChangeLog-7.php
More from Debian Linux
10.0
CVE-2025-32433
Erlang/OTP SSH Vulnerable to Pre-Authentication RCE
10.0
CVE-2025-24201
Apple Multiple Products WebKit Out-of-Bounds Write Vulnerability
10.0
CVE-2021-44228
Apache Log4j2 JNDI features do not protect against attacker controlled LDAP and other JNDI related endpoints
10.0
CVE-2015-3306
ProFTPD Improper Access Control Vulnerability
9.8
CVE-2026-24061
GNU InetUtils Argument Injection Vulnerability
