High severity8.8NVD Advisory· Published Aug 7, 2016· Updated Jun 17, 2026
CVE-2016-5766
CVE-2016-5766
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected products
36cpe:2.3:o:fedoraproject:fedora:22:*:*:*:*:*:*:*+ 2 more
- cpe:2.3:o:fedoraproject:fedora:22:*:*:*:*:*:*:*
- cpe:2.3:o:fedoraproject:fedora:23:*:*:*:*:*:*:*
- cpe:2.3:o:fedoraproject:fedora:24:*:*:*:*:*:*:*
cpe:2.3:o:freebsd:freebsd:10.0:*:*:*:*:*:*:*+ 12 more
- cpe:2.3:o:freebsd:freebsd:10.0:*:*:*:*:*:*:*
- cpe:2.3:o:freebsd:freebsd:10.1:*:*:*:*:*:*:*
- cpe:2.3:o:freebsd:freebsd:10.2:*:*:*:*:*:*:*
- cpe:2.3:o:freebsd:freebsd:10.3:*:*:*:*:*:*:*
- cpe:2.3:o:freebsd:freebsd:8.0:*:*:*:*:*:*:*
- cpe:2.3:o:freebsd:freebsd:8.1:*:*:*:*:*:*:*
- cpe:2.3:o:freebsd:freebsd:8.2:*:*:*:*:*:*:*
- cpe:2.3:o:freebsd:freebsd:8.3:*:*:*:*:*:*:*
- cpe:2.3:o:freebsd:freebsd:8.4:*:*:*:*:*:*:*
- cpe:2.3:o:freebsd:freebsd:9.0:*:*:*:*:*:*:*
- cpe:2.3:o:freebsd:freebsd:9.1:*:*:*:*:*:*:*
- cpe:2.3:o:freebsd:freebsd:9.2:*:*:*:*:*:*:*
- cpe:2.3:o:freebsd:freebsd:9.3:*:*:*:*:*:*:*
cpe:2.3:o:redhat:enterprise_linux:5:*:*:*:*:*:*:*+ 2 more
- cpe:2.3:o:redhat:enterprise_linux:5:*:*:*:*:*:*:*
- cpe:2.3:o:redhat:enterprise_linux:6.0:*:*:*:*:*:*:*
- cpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:*
- osv-coords12 versionspkg:rpm/opensuse/gd&distro=openSUSE%20Tumbleweedpkg:rpm/suse/php53&distro=SUSE%20Linux%20Enterprise%20Server%2011%20SP4pkg:rpm/suse/php53&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2011%20SP4pkg:rpm/suse/php53&distro=SUSE%20Linux%20Enterprise%20Software%20Development%20Kit%2011%20SP4pkg:rpm/suse/php5&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Web%20and%20Scripting%2012pkg:rpm/suse/php5&distro=SUSE%20Linux%20Enterprise%20Server%2011%20SP2-LTSSpkg:rpm/suse/php5&distro=SUSE%20Linux%20Enterprise%20Software%20Development%20Kit%2012%20SP1pkg:rpm/suse/php5&distro=SUSE%20Linux%20Enterprise%20Software%20Development%20Kit%2012%20SP2pkg:rpm/suse/php5&distro=SUSE%20Linux%20Enterprise%20Software%20Development%20Kit%2012%20SP3pkg:rpm/suse/php7&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Web%20and%20Scripting%2012pkg:rpm/suse/php7&distro=SUSE%20Linux%20Enterprise%20Software%20Development%20Kit%2012%20SP2pkg:rpm/suse/php7&distro=SUSE%20Linux%20Enterprise%20Software%20Development%20Kit%2012%20SP3
< 2.2.3-2.1+ 11 more
- (no CPE)range: < 2.2.3-2.1
- (no CPE)range: < 5.3.17-74.1
- (no CPE)range: < 5.3.17-74.1
- (no CPE)range: < 5.3.17-74.1
- (no CPE)range: < 5.5.14-68.1
- (no CPE)range: < 5.2.14-0.7.30.89.1
- (no CPE)range: < 5.5.14-68.1
- (no CPE)range: < 5.5.14-109.5.1
- (no CPE)range: < 5.5.14-109.5.1
- (no CPE)range: < 7.0.7-50.9.2
- (no CPE)range: < 7.0.7-50.9.2
- (no CPE)range: < 7.0.7-50.9.2
Patches
Vulnerability mechanics
References
15- github.com/php/php-src/commit/7722455726bec8c53458a32851d2a87982cf0eacnvdExploitPatch
- bugs.php.net/bug.phpnvdExploitPatchVendor Advisory
- www.debian.org/security/2016/dsa-3619nvdThird Party Advisory
- php.net/ChangeLog-5.phpnvdRelease Notes
- php.net/ChangeLog-7.phpnvdRelease Notes
- www.openwall.com/lists/oss-security/2016/06/23/4nvdRelease Notes
- libgd.github.io/release-2.2.3.htmlnvdRelease Notes
- lists.opensuse.org/opensuse-security-announce/2016-07/msg00004.htmlnvd
- lists.opensuse.org/opensuse-security-announce/2016-08/msg00025.htmlnvd
- lists.opensuse.org/opensuse-updates/2016-08/msg00003.htmlnvd
- rhn.redhat.com/errata/RHSA-2016-2598.htmlnvd
- rhn.redhat.com/errata/RHSA-2016-2750.htmlnvd
- www.ubuntu.com/usn/USN-3030-1nvd
- h20566.www2.hpe.com/portal/site/hpsc/public/kb/docDisplaynvd
- security.gentoo.org/glsa/201612-09nvd
News mentions
0No linked articles in our index yet.