CVE-2016-5767
publishedgd: Integer Overflow in gdImagePaletteToTrueColor() 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 |
| Alpine Linux | v3.4 | gd | Fixed | 2.2.2-r0 | Package fix record |
| Oracle Linux | 7 | phpaarch64 | Advisory build | 0:5.4.16-42.el7 | ELSA-2016-2598 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php56src | Advisory build | 2.3-1.el6 | RHSA-2016:2750 |
| 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 |
Show 93 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| 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 | phpaarch64 | Advisory build | 5.4.16-42.el7 | RHSA-2016:2598 |
| Red Hat Enterprise Linux | RHEL-7 | phpppc64 | Advisory build | 5.4.16-42.el7 | RHSA-2016:2598 |
| Red Hat Enterprise Linux | RHEL-7 | phpppc64le | Advisory build | 5.4.16-42.el7 | RHSA-2016:2598 |
| Red Hat Enterprise Linux | RHEL-7 | phps390x | Advisory build | 5.4.16-42.el7 | RHSA-2016:2598 |
| Red Hat Enterprise Linux | RHEL-7 | phpsrc | Advisory build | 5.4.16-42.el7 | RHSA-2016:2598 |
| Red Hat Enterprise Linux | RHEL-7 | phpx86_64 | Advisory build | 5.4.16-42.el7 | RHSA-2016:2598 |
| Red Hat Enterprise Linux | RHEL-7 | php-bcmathaarch64 | Advisory build | 5.4.16-42.el7 | RHSA-2016:2598 |
| Red Hat Enterprise Linux | RHEL-7 | php-bcmathppc64 | Advisory build | 5.4.16-42.el7 | RHSA-2016:2598 |
| Red Hat Enterprise Linux | RHEL-7 | php-bcmathppc64le | Advisory build | 5.4.16-42.el7 | RHSA-2016:2598 |
| Red Hat Enterprise Linux | RHEL-7 | php-bcmaths390x | Advisory build | 5.4.16-42.el7 | RHSA-2016:2598 |
| Red Hat Enterprise Linux | RHEL-7 | php-bcmathx86_64 | Advisory build | 5.4.16-42.el7 | RHSA-2016:2598 |
| Red Hat Enterprise Linux | RHEL-7 | php-cliaarch64 | Advisory build | 5.4.16-42.el7 | RHSA-2016:2598 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
Integer overflow in the gdImageCreate function in gd.c in the GD Graphics Library (aka libgd) before 2.0.34RC1, 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 a crafted image dimensions.
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
12- http://github.com/php/php-src/commit/c395c6e5d7e8df37a21265ff76e48fe75ceb5ae6?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
- [oss-security] 20160623 Re: CVE for PHP 5.5.37 issues http://www.openwall.com/lists/oss-security/2016/06/23/4
- 91395 http://www.securityfocus.com/bid/91395
- https://bugs.php.net/bug.php?id=72446
- https://h20566.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c05240731
Provider assertions
2mitre · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 1edcf05a17ba8e7b91a6b82c89e0eec9c7acef75309ef1b8a2f356589b04af49
- Ingested
- 23 Sep 2026, 07:41:26 UTC
- Source record
- Official CVE record