Predictive Vulnerability Intelligence.

Product

  • Product
  • Pricing
  • Documentation

Company

  • About
  • Partnerships
  • Blog
  • Support

Legal

  • Terms
  • Privacy
  • Data Licensing

© 2026 FAUCET Technologies LLC. All rights reserved.

CVE-2016-5766

31
FAUCET Score

CVE-2016-5766 is an integer overflow vulnerability in the GD Graphics Library (libgd) affecting versions before 2.2.3, and subsequently PHP versions before 5.5.37, 5.6.23, and 7.0.8. This flaw allows remote attackers to trigger a heap-based buffer overflow and denial of service, or potentially other impacts, through specially crafted image chunk dimensions. With a CVSS score of 8.8 (High), it presents a significant risk due to its network attack vector and low attack complexity, potentially leading to high impact on confidentiality, integrity, and availability. Despite its severity, there is no evidence of active exploitation, publicly available exploit code, or significant community discussion or media coverage.

Impacted Technologies

VendorProductVersion(s)CPE
2.0CPE matchmatch criteria
cpe:2.3:o:redhat:openshift:2.0:*:enterprise:*:*:*:*:*
8.3CPE matchmatch criteria
cpe:2.3:o:freebsd:freebsd:8.3:*:*:*:*:*:*:*
6.0CPE matchmatch criteria
cpe:2.3:o:redhat:enterprise_linux:6.0:*:*:*:*:*:*:*
8.0CPE matchmatch criteria
cpe:2.3:o:freebsd:freebsd:8.0:*:*:*:*:*:*:*
5CPE matchmatch criteria
cpe:2.3:o:redhat:enterprise_linux:5:*:*:*:*:*:*:*

CVSS Data

CVSS version used by this source: 3.0

8.8HIGH

CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
REQUIRED
Scope
UNCHANGED
Confidentiality Impact
HIGH
Integrity Impact
HIGH
Availability Impact
HIGH
Exploitability Score
2.8
Impact Score
5.9
CvssVersion
3.0

Exploit Intelligence

EPSS Score
7.50%
Probability of exploitation in next 30 days
EPSS Percentile
93.8%
Percentile rank of EPSS score among Peer Group
As of 2026-07-25
Model: v2026.06.15
This CVE's current EPSS score of 0.0750 is in the 94th percentile among its peer group of 14,848 CVEs.

Social Chatter

The average CVE in this peer group has 0.0 Twitter, 0.1 Reddit, 0.2 Bluesky, 0.1 Mastodon, and 0.2 GitHub mentions.

Media Mentions

No media coverage found for this CVE.

The average CVE in this peer group has 0.3 InfoSec Media, 0.0 Vendor Blog, and 0.1 Security Researcher mentions.

Remediation

Patch Available

Vendor Patches (26)

github_advisorypatch availablevia nvd_reference
View patch
redhatpatch availablevia redhat_api
Product: Red Hat Enterprise Linux 7Fixed in: php-0:5.4.16-42.el7
View patch
redhatpatch availablevia redhat_api
Product: Red Hat Enterprise Linux 7Fixed in: gd-0:2.0.35-27.el7_9
View patch
redhatpatch availablevia redhat_api
Product: Red Hat Software Collections for Red Hat Enterprise Linux 6Fixed in: rh-php56-0:2.3-1.el6
View patch
redhatpatch availablevia redhat_api
Product: Red Hat Software Collections for Red Hat Enterprise Linux 6Fixed in: rh-php56-php-0:5.6.25-1.el6
View patch
redhatpatch availablevia redhat_api
Product: Red Hat Software Collections for Red Hat Enterprise Linux 6Fixed in: rh-php56-php-pear-1:1.9.5-4.el6
View patch
redhatpatch availablevia redhat_api
Product: Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUSFixed in: rh-php56-0:2.3-1.el6
View patch
redhatpatch availablevia redhat_api
Product: Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUSFixed in: rh-php56-php-0:5.6.25-1.el6
View patch
redhatpatch availablevia redhat_api
Product: Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUSFixed in: rh-php56-php-pear-1:1.9.5-4.el6
View patch
redhatpatch availablevia redhat_api
Product: Red Hat Software Collections for Red Hat Enterprise Linux 7Fixed in: rh-php56-0:2.3-1.el7
View patch
redhatpatch availablevia redhat_api
Product: Red Hat Software Collections for Red Hat Enterprise Linux 7Fixed in: rh-php56-php-0:5.6.25-1.el7
View patch
redhatpatch availablevia redhat_api
Product: Red Hat Software Collections for Red Hat Enterprise Linux 7Fixed in: rh-php56-php-pear-1:1.9.5-4.el7
View patch
redhatpatch availablevia redhat_api
Product: Red Hat Software Collections for Red Hat Enterprise Linux 7.2 EUSFixed in: rh-php56-0:2.3-1.el7
View patch
redhatpatch availablevia redhat_api
Product: Red Hat Software Collections for Red Hat Enterprise Linux 7.2 EUSFixed in: rh-php56-php-pear-1:1.9.5-4.el7
View patch
redhatpatch availablevia redhat_api
Product: Red Hat Software Collections for Red Hat Enterprise Linux 7.3 EUSFixed in: rh-php56-0:2.3-1.el7
View patch
redhatpatch availablevia redhat_api
Product: Red Hat Software Collections for Red Hat Enterprise Linux 7.3 EUSFixed in: rh-php56-php-0:5.6.25-1.el7
View patch
redhatpatch availablevia redhat_api
Product: Red Hat Software Collections for Red Hat Enterprise Linux 7.3 EUSFixed in: rh-php56-php-pear-1:1.9.5-4.el7
View patch
redhatpatch availablevia redhat_api
Product: Red Hat Software Collections for Red Hat Enterprise Linux 7.2 EUSFixed in: rh-php56-php-0:5.6.25-1.el7
View patch
redhatno patchvia redhat_api
Product: Red Hat OpenShift Enterprise 2Fixed in: gd
redhatend of lifevia redhat_api
Product: Red Hat Enterprise Linux 5Fixed in: php
redhatend of lifevia redhat_api
Product: Red Hat Enterprise Linux 5Fixed in: php53
redhatend of lifevia redhat_api
Product: Red Hat Enterprise Linux 6Fixed in: gd
redhatend of lifevia redhat_api
Product: Red Hat Enterprise Linux 6Fixed in: php
redhatend of lifevia redhat_api
Product: Red Hat Software CollectionsFixed in: php54-php
redhatend of lifevia redhat_api
Product: Red Hat Enterprise Linux 5Fixed in: gd
redhatend of lifevia redhat_api
Product: Red Hat Software CollectionsFixed in: php55-php

Vendor Advisories (1)

redhatCVE-2016-5766Moderate

gd: Integer overflow in _gd2GetHeader() resulting in heap overflow

Jun 23, 2016

References

github.com / php/php-src/commit/7722455726bec8c53458a32851d2a87982cf0eac
ExploitPatch
lists.opensuse.org / opensuse-security-announce/2016-07/msg00004.html
lists.opensuse.org / opensuse-security-announce/2016-08/msg00025.html
lists.opensuse.org / opensuse-updates/2016-08/msg00003.html
php.net / ChangeLog-5.php
Release Notes
php.net / ChangeLog-7.php
Release Notes
rhn.redhat.com / errata/RHSA-2016-2598.html
rhn.redhat.com / errata/RHSA-2016-2750.html
bugs.php.net / bug.php
ExploitPatchVendor Advisory
h20566.www2.hpe.com / portal/site/hpsc/public/kb/docDisplay
libgd.github.io / release-2.2.3.html
Release Notes
security.gentoo.org / glsa/201612-09
debian.org / security/2016/dsa-3619
Third Party Advisory
openwall.com / lists/oss-security/2016/06/23/4
Release Notes
ubuntu.com / usn/USN-3030-1