CVE-2016-5766
publishedgd: Integer overflow in _gd2GetHeader() resulting in heap overflow
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | n/an/a | Affected | Not stated | mitre |
| Amazon Linux | AL2 | Release evaluationALAS2-2021-1577 | Fixed | Not stated | Amazon Linux assessment |
| Alpine Linux | v3.2 | gd | Fixed | 2.2.1-r2 | Package fix record |
| Debian | jessie | libgd2 | Advisory build | 2.1.0-5+deb8u4 | DSA-3619-1 |
| Oracle Linux | 7 | gdaarch64 | Advisory build | 0:2.0.35-27.el7_9 | ELSA-2020-5443 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php56src | Advisory build | 2.3-1.el6 | RHSA-2016:2750 |
| Alpine Linux | v3.3 | gd | Fixed | 2.2.1-r2 | Package fix record |
| Alpine Linux | v3.4 | gd | Fixed | 2.2.3-r0 | Package fix record |
Show 94 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Debian | wheezy | libgd2 | Advisory build | 2.0.36~rc1~dfsg-6.1+deb7u4 | DLA-534-1 |
| Oracle Linux | 7 | gdx86_64 | Advisory build | 0:2.0.35-27.el7_9 | ELSA-2020-5443 |
| Oracle Linux | 7 | gd-develaarch64 | Advisory build | 0:2.0.35-27.el7_9 | ELSA-2020-5443 |
| Oracle Linux | 7 | gd-develx86_64 | Advisory build | 0:2.0.35-27.el7_9 | ELSA-2020-5443 |
| Oracle Linux | 7 | gd-progsaarch64 | Advisory build | 0:2.0.35-27.el7_9 | ELSA-2020-5443 |
| Oracle Linux | 7 | gd-progsx86_64 | Advisory build | 0:2.0.35-27.el7_9 | ELSA-2020-5443 |
| Oracle Linux | 7 | phpaarch64 | Advisory build | 0:5.4.16-42.el7 | ELSA-2016-2598 |
| Oracle Linux | 7 | phpx86_64 | Advisory build | 0:5.4.16-42.el7 | ELSA-2016-2598 |
| Oracle Linux | 7 | php-bcmathaarch64 | Advisory build | 0:5.4.16-42.el7 | ELSA-2016-2598 |
| Oracle Linux | 7 | php-bcmathx86_64 | Advisory build | 0:5.4.16-42.el7 | ELSA-2016-2598 |
| Oracle Linux | 7 | php-cliaarch64 | Advisory build | 0:5.4.16-42.el7 | ELSA-2016-2598 |
| Oracle Linux | 7 | php-clix86_64 | Advisory build | 0:5.4.16-42.el7 | ELSA-2016-2598 |
| Oracle Linux | 7 | php-commonaarch64 | Advisory build | 0:5.4.16-42.el7 | ELSA-2016-2598 |
| Oracle Linux | 7 | php-commonx86_64 | Advisory build | 0:5.4.16-42.el7 | ELSA-2016-2598 |
| Oracle Linux | 7 | php-dbaaarch64 | Advisory build | 0:5.4.16-42.el7 | ELSA-2016-2598 |
| Oracle Linux | 7 | php-dbax86_64 | Advisory build | 0:5.4.16-42.el7 | ELSA-2016-2598 |
| Oracle Linux | 7 | php-develaarch64 | Advisory build | 0:5.4.16-42.el7 | ELSA-2016-2598 |
| Oracle Linux | 7 | php-develx86_64 | Advisory build | 0:5.4.16-42.el7 | ELSA-2016-2598 |
| Oracle Linux | 7 | php-embeddedaarch64 | Advisory build | 0:5.4.16-42.el7 | ELSA-2016-2598 |
| Oracle Linux | 7 | php-embeddedx86_64 | Advisory build | 0:5.4.16-42.el7 | ELSA-2016-2598 |
| Oracle Linux | 7 | php-enchantaarch64 | Advisory build | 0:5.4.16-42.el7 | ELSA-2016-2598 |
| Oracle Linux | 7 | php-enchantx86_64 | Advisory build | 0:5.4.16-42.el7 | ELSA-2016-2598 |
| Oracle Linux | 7 | php-fpmaarch64 | Advisory build | 0:5.4.16-42.el7 | ELSA-2016-2598 |
| Oracle Linux | 7 | php-fpmx86_64 | Advisory build | 0:5.4.16-42.el7 | ELSA-2016-2598 |
| Oracle Linux | 7 | php-gdaarch64 | Advisory build | 0:5.4.16-42.el7 | ELSA-2016-2598 |
| Oracle Linux | 7 | php-gdx86_64 | Advisory build | 0:5.4.16-42.el7 | ELSA-2016-2598 |
| Oracle Linux | 7 | php-intlaarch64 | Advisory build | 0:5.4.16-42.el7 | ELSA-2016-2598 |
| Oracle Linux | 7 | php-intlx86_64 | Advisory build | 0:5.4.16-42.el7 | ELSA-2016-2598 |
| Oracle Linux | 7 | php-ldapaarch64 | Advisory build | 0:5.4.16-42.el7 | ELSA-2016-2598 |
| Oracle Linux | 7 | php-ldapx86_64 | Advisory build | 0:5.4.16-42.el7 | ELSA-2016-2598 |
| Oracle Linux | 7 | php-mbstringaarch64 | Advisory build | 0:5.4.16-42.el7 | ELSA-2016-2598 |
| Oracle Linux | 7 | php-mbstringx86_64 | Advisory build | 0:5.4.16-42.el7 | ELSA-2016-2598 |
| Oracle Linux | 7 | php-mysqlaarch64 | Advisory build | 0:5.4.16-42.el7 | ELSA-2016-2598 |
| Oracle Linux | 7 | php-mysqlx86_64 | Advisory build | 0:5.4.16-42.el7 | ELSA-2016-2598 |
| Oracle Linux | 7 | php-mysqlndaarch64 | Advisory build | 0:5.4.16-42.el7 | ELSA-2016-2598 |
| Oracle Linux | 7 | php-mysqlndx86_64 | Advisory build | 0:5.4.16-42.el7 | ELSA-2016-2598 |
| Oracle Linux | 7 | php-odbcaarch64 | Advisory build | 0:5.4.16-42.el7 | ELSA-2016-2598 |
| Oracle Linux | 7 | php-odbcx86_64 | Advisory build | 0:5.4.16-42.el7 | ELSA-2016-2598 |
| Oracle Linux | 7 | php-pdoaarch64 | Advisory build | 0:5.4.16-42.el7 | ELSA-2016-2598 |
| Oracle Linux | 7 | php-pdox86_64 | Advisory build | 0:5.4.16-42.el7 | ELSA-2016-2598 |
| Oracle Linux | 7 | php-pgsqlaarch64 | Advisory build | 0:5.4.16-42.el7 | ELSA-2016-2598 |
| Oracle Linux | 7 | php-pgsqlx86_64 | Advisory build | 0:5.4.16-42.el7 | ELSA-2016-2598 |
| Oracle Linux | 7 | php-processaarch64 | Advisory build | 0:5.4.16-42.el7 | ELSA-2016-2598 |
| Oracle Linux | 7 | php-processx86_64 | Advisory build | 0:5.4.16-42.el7 | ELSA-2016-2598 |
| Oracle Linux | 7 | php-pspellaarch64 | Advisory build | 0:5.4.16-42.el7 | ELSA-2016-2598 |
| Oracle Linux | 7 | php-pspellx86_64 | Advisory build | 0:5.4.16-42.el7 | ELSA-2016-2598 |
| Oracle Linux | 7 | php-recodeaarch64 | Advisory build | 0:5.4.16-42.el7 | ELSA-2016-2598 |
| Oracle Linux | 7 | php-recodex86_64 | Advisory build | 0:5.4.16-42.el7 | ELSA-2016-2598 |
| Oracle Linux | 7 | php-snmpaarch64 | Advisory build | 0:5.4.16-42.el7 | ELSA-2016-2598 |
| Oracle Linux | 7 | php-snmpx86_64 | Advisory build | 0:5.4.16-42.el7 | ELSA-2016-2598 |
| Oracle Linux | 7 | php-soapaarch64 | Advisory build | 0:5.4.16-42.el7 | ELSA-2016-2598 |
| Oracle Linux | 7 | php-soapx86_64 | Advisory build | 0:5.4.16-42.el7 | ELSA-2016-2598 |
| Oracle Linux | 7 | php-xmlaarch64 | Advisory build | 0:5.4.16-42.el7 | ELSA-2016-2598 |
| Oracle Linux | 7 | php-xmlx86_64 | Advisory build | 0:5.4.16-42.el7 | ELSA-2016-2598 |
| Oracle Linux | 7 | php-xmlrpcaarch64 | Advisory build | 0:5.4.16-42.el7 | ELSA-2016-2598 |
| Oracle Linux | 7 | php-xmlrpcx86_64 | Advisory build | 0:5.4.16-42.el7 | ELSA-2016-2598 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php56x86_64 | Advisory build | 2.3-1.el6 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php56-phpsrc | Advisory build | 5.6.25-1.el6 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php56-phpx86_64 | Advisory build | 5.6.25-1.el6 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php56-php-bcmathx86_64 | Advisory build | 5.6.25-1.el6 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php56-php-clix86_64 | Advisory build | 5.6.25-1.el6 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php56-php-commonx86_64 | Advisory build | 5.6.25-1.el6 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php56-php-dbax86_64 | Advisory build | 5.6.25-1.el6 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php56-php-dbgx86_64 | Advisory build | 5.6.25-1.el6 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php56-php-debuginfox86_64 | Advisory build | 5.6.25-1.el6 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php56-php-develx86_64 | Advisory build | 5.6.25-1.el6 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php56-php-embeddedx86_64 | Advisory build | 5.6.25-1.el6 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php56-php-enchantx86_64 | Advisory build | 5.6.25-1.el6 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php56-php-fpmx86_64 | Advisory build | 5.6.25-1.el6 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php56-php-gdx86_64 | Advisory build | 5.6.25-1.el6 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php56-php-gmpx86_64 | Advisory build | 5.6.25-1.el6 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php56-php-imapx86_64 | Advisory build | 5.6.25-1.el6 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php56-php-intlx86_64 | Advisory build | 5.6.25-1.el6 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php56-php-ldapx86_64 | Advisory build | 5.6.25-1.el6 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php56-php-mbstringx86_64 | Advisory build | 5.6.25-1.el6 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php56-php-mysqlndx86_64 | Advisory build | 5.6.25-1.el6 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php56-php-odbcx86_64 | Advisory build | 5.6.25-1.el6 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php56-php-opcachex86_64 | Advisory build | 5.6.25-1.el6 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php56-php-pdox86_64 | Advisory build | 5.6.25-1.el6 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php56-php-pearnoarch | Advisory build | 1:1.9.5-4.el6 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php56-php-pearsrc | Advisory build | 1:1.9.5-4.el6 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php56-php-pgsqlx86_64 | Advisory build | 5.6.25-1.el6 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php56-php-processx86_64 | Advisory build | 5.6.25-1.el6 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php56-php-pspellx86_64 | Advisory build | 5.6.25-1.el6 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php56-php-recodex86_64 | Advisory build | 5.6.25-1.el6 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php56-php-snmpx86_64 | Advisory build | 5.6.25-1.el6 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php56-php-soapx86_64 | Advisory build | 5.6.25-1.el6 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php56-php-tidyx86_64 | Advisory build | 5.6.25-1.el6 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php56-php-xmlx86_64 | Advisory build | 5.6.25-1.el6 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php56-php-xmlrpcx86_64 | Advisory build | 5.6.25-1.el6 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php56-runtimex86_64 | Advisory build | 2.3-1.el6 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php56-scldevelx86_64 | Advisory build | 2.3-1.el6 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-7 | gdi686 | Advisory build | 2.0.35-27.el7_9 | RHSA-2020:5443 |
| Red Hat Enterprise Linux | RHEL-7 | gdppc | Advisory build | 2.0.35-27.el7_9 | RHSA-2020:5443 |
Package entries are limited to the first 100 builds and 100 linked advisories.
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | n/a | n/a (affected) | mitre · cna |
Weaknesses
1- n/a
References
15- http://github.com/php/php-src/commit/7722455726bec8c53458a32851d2a87982cf0eac?w=1
- openSUSE-SU-2016:1761 http://lists.opensuse.org/opensuse-security-announce/2016-07/msg00004.html
- SUSE-SU-2016:2013 http://lists.opensuse.org/opensuse-security-announce/2016-08/msg00025.html
- openSUSE-SU-2016:1922 http://lists.opensuse.org/opensuse-updates/2016-08/msg00003.html
- http://php.net/ChangeLog-5.php
- http://php.net/ChangeLog-7.php
- RHSA-2016:2598 http://rhn.redhat.com/errata/RHSA-2016-2598.html
- RHSA-2016:2750 http://rhn.redhat.com/errata/RHSA-2016-2750.html
- DSA-3619 http://www.debian.org/security/2016/dsa-3619
- [oss-security] 20160623 Re: CVE for PHP 5.5.37 issues http://www.openwall.com/lists/oss-security/2016/06/23/4
- USN-3030-1 http://www.ubuntu.com/usn/USN-3030-1
- https://bugs.php.net/bug.php?id=72339
- https://h20566.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c05240731
- https://libgd.github.io/release-2.2.3.html
- GLSA-201612-09 https://security.gentoo.org/glsa/201612-09
Provider assertions
2mitre · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- bfa9a443b065b72aeabfd89404de92e28a77c436f0424442005aae44ab555c31
- Ingested
- 23 Sep 2026, 07:41:26 UTC
- Source record
- Official CVE record