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 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.
Key facts
- CVSS score
- 8.8 (v3.0)
- Severity
- HIGH
- CVSS vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H- Weakness (CWE)
- CWE-190
- EPSS score
- 7.5% (94th percentile)
- In CISA KEV
- No
- In EU EUVD
- Yes (EUVD-2016-6701)
- Published
- August 7, 2016
- NVD last modified
- June 17, 2026
- Status
- Modified
EU Vulnerability Database (EUVD)
This vulnerability is also tracked by ENISA as EUVD-2016-6701 in the EU Vulnerability Database. Last updated in EUVD on August 6, 2024.
View on the EU Vulnerability DatabaseAffected products
- debian / debian linux
- fedoraproject / fedora
- fedoraproject / fedora
- fedoraproject / fedora
- freebsd / freebsd
- freebsd / freebsd
- freebsd / freebsd
- freebsd / freebsd
- freebsd / freebsd
- freebsd / freebsd
- freebsd / freebsd
- freebsd / freebsd
- freebsd / freebsd
- freebsd / freebsd
- freebsd / freebsd
- freebsd / freebsd
- freebsd / freebsd
- libgd / libgd
- php / php
- php / php
- php / php
- php / php
- php / php
- php / php
- php / php
- php / php
- php / php
- php / php
- php / php
- php / php
- php / php
- php / php
- php / php
- php / php
- php / php
- php / php
- php / php
- php / php
- php / php
- php / php
- php / php
- php / php
- php / php
- php / php
- php / php
- php / php
- php / php
- php / php
- php / php
- php / php
and 12 more…
Certified products that may be affected
6 FIPS 140 or Common Criteria certified products, from automated matching by sec-certs.org.
- Red Hat Enterprise Linux 5 OpenSSH-Server Cryptographic Module - Red Hat®, Inc. - FIPS 140 1384 - historical
- Red Hat Enterprise Linux 5 OpenSSH Client Cryptographic Module - Red Hat®, Inc. - FIPS 140 1385 - historical
- Red Hat Enterprise Linux 5 OpenSwan Cryptographic Module - Red Hat®, Inc. - FIPS 140 1386 - historical
- Red Hat Enterprise Linux 5 Kernel Crypto API Cryptographic Module - Red Hat®, Inc. - FIPS 140 1387 - historical
- Red Hat Enterprise Linux 5 OpenSSL Cryptographic Module - Red Hat®, Inc. - FIPS 140 1320 - historical
See all 6 in the Security Certifications Explorer.
References
- http://github.com/php/php-src/commit/7722455726bec8c53458a32851d2a87982cf0eac?w=1(Exploit, Patch)
- http://lists.opensuse.org/opensuse-security-announce/2016-07/msg00004.html
- http://lists.opensuse.org/opensuse-security-announce/2016-08/msg00025.html
- http://lists.opensuse.org/opensuse-updates/2016-08/msg00003.html
- http://php.net/ChangeLog-5.php(Release Notes)
- http://php.net/ChangeLog-7.php(Release Notes)
- http://rhn.redhat.com/errata/RHSA-2016-2598.html
- http://rhn.redhat.com/errata/RHSA-2016-2750.html
- http://www.debian.org/security/2016/dsa-3619(Third Party Advisory)
- http://www.openwall.com/lists/oss-security/2016/06/23/4(Release Notes)
- http://www.ubuntu.com/usn/USN-3030-1
- https://bugs.php.net/bug.php?id=72339(Exploit, Patch, Vendor Advisory)
- https://h20566.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c05240731
- https://libgd.github.io/release-2.2.3.html(Release Notes)
- https://security.gentoo.org/glsa/201612-09
Last updated September 17, 2026 · Source: NVD, CISA KEV, FIRST.org EPSS
Query CVEs from your AI assistant
The CVE/NVD Explorer brain answers CVE questions directly inside Claude, ChatGPT, or any MCP assistant — always up to date, no setup. Add it once and stop pasting advisories into chat.
Add the CVE brain