Back
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…
High8.8EPSS 7.5%
- Published
- Updated
- Reserved
- Assigned by
- mitre
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.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Modified | 3.0 | High8.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 7.5% · top 5.5% of all CVEs (3 Nov 2026)
Loading the EPSS history…
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 8.8.
Weakness
Affected products
n/a
- affected n/a
References (15)
- https://bugs.php.net/bug.php?id=72339 (opens in a new tab)x_refsource_CONFIRMx_transferred
- https://libgd.github.io/release-2.2.3.html (opens in a new tab)x_refsource_CONFIRMx_transferred
- openSUSE-SU-2016:1761 (opens in a new tab)vendor-advisoryx_refsource_SUSEx_transferred
- openSUSE-SU-2016:1922 (opens in a new tab)vendor-advisoryx_refsource_SUSEx_transferred
- RHSA-2016:2750 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- RHSA-2016:2598 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- http://php.net/ChangeLog-5.php (opens in a new tab)x_refsource_CONFIRMx_transferred
- http://github.com/php/php-src/commit/7722455726bec8c53458a32851d2a87982cf0eac?w=1 (opens in a new tab)x_refsource_CONFIRMx_transferred
- [oss-security] 20160623 Re: CVE for PHP 5.5.37 issues (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- GLSA-201612-09 (opens in a new tab)vendor-advisoryx_refsource_GENTOOx_transferred
- http://php.net/ChangeLog-7.php (opens in a new tab)x_refsource_CONFIRMx_transferred
- https://h20566.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c05240731 (opens in a new tab)x_refsource_CONFIRMx_transferred
- DSA-3619 (opens in a new tab)vendor-advisoryx_refsource_DEBIANx_transferred
- SUSE-SU-2016:2013 (opens in a new tab)vendor-advisoryx_refsource_SUSEx_transferred
- USN-3030-1 (opens in a new tab)vendor-advisoryx_refsource_UBUNTUx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2016-5766)Record last updated .