CVE-2017-7890
publishedphp: Buffer over-read from unitialized data in gdImageCreateFromGifCtx function
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.5-r0 | Package fix record |
| Debian | jessie | libgd2 | Advisory build | 2.1.0-5+deb8u10 | DSA-3938-1 |
| Oracle Linux | 7 | phpx86_64 | Advisory build | 0:5.4.16-43.el7_4.1 | ELSA-2018-0406 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php70-phpsrc | Advisory build | 7.0.27-1.el6 | RHSA-2018:1296 |
| Alpine Linux | v3.5 | gd | Fixed | 2.2.5-r0 | Package fix record |
| Alpine Linux | v3.6 | gd | Fixed | 2.2.5-r0 | Package fix record |
| Alpine Linux | v3.7 | php7 | Fixed | 7.1.7-r0 | Package fix record |
Show 93 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Debian | stretch | libgd2 | Advisory build | 2.2.4-2+deb9u1 | DSA-3938-1 |
| Debian | wheezy | libgd2 | Advisory build | 2.0.36~rc1~dfsg-6.1+deb7u9 | DLA-1055-1 |
| Oracle Linux | 7 | php-bcmathx86_64 | Advisory build | 0:5.4.16-43.el7_4.1 | ELSA-2018-0406 |
| Oracle Linux | 7 | php-clix86_64 | Advisory build | 0:5.4.16-43.el7_4.1 | ELSA-2018-0406 |
| Oracle Linux | 7 | php-commonx86_64 | Advisory build | 0:5.4.16-43.el7_4.1 | ELSA-2018-0406 |
| Oracle Linux | 7 | php-dbax86_64 | Advisory build | 0:5.4.16-43.el7_4.1 | ELSA-2018-0406 |
| Oracle Linux | 7 | php-develx86_64 | Advisory build | 0:5.4.16-43.el7_4.1 | ELSA-2018-0406 |
| Oracle Linux | 7 | php-embeddedx86_64 | Advisory build | 0:5.4.16-43.el7_4.1 | ELSA-2018-0406 |
| Oracle Linux | 7 | php-enchantx86_64 | Advisory build | 0:5.4.16-43.el7_4.1 | ELSA-2018-0406 |
| Oracle Linux | 7 | php-fpmx86_64 | Advisory build | 0:5.4.16-43.el7_4.1 | ELSA-2018-0406 |
| Oracle Linux | 7 | php-gdx86_64 | Advisory build | 0:5.4.16-43.el7_4.1 | ELSA-2018-0406 |
| Oracle Linux | 7 | php-intlx86_64 | Advisory build | 0:5.4.16-43.el7_4.1 | ELSA-2018-0406 |
| Oracle Linux | 7 | php-ldapx86_64 | Advisory build | 0:5.4.16-43.el7_4.1 | ELSA-2018-0406 |
| Oracle Linux | 7 | php-mbstringx86_64 | Advisory build | 0:5.4.16-43.el7_4.1 | ELSA-2018-0406 |
| Oracle Linux | 7 | php-mysqlx86_64 | Advisory build | 0:5.4.16-43.el7_4.1 | ELSA-2018-0406 |
| Oracle Linux | 7 | php-mysqlndx86_64 | Advisory build | 0:5.4.16-43.el7_4.1 | ELSA-2018-0406 |
| Oracle Linux | 7 | php-odbcx86_64 | Advisory build | 0:5.4.16-43.el7_4.1 | ELSA-2018-0406 |
| Oracle Linux | 7 | php-pdox86_64 | Advisory build | 0:5.4.16-43.el7_4.1 | ELSA-2018-0406 |
| Oracle Linux | 7 | php-pgsqlx86_64 | Advisory build | 0:5.4.16-43.el7_4.1 | ELSA-2018-0406 |
| Oracle Linux | 7 | php-processx86_64 | Advisory build | 0:5.4.16-43.el7_4.1 | ELSA-2018-0406 |
| Oracle Linux | 7 | php-pspellx86_64 | Advisory build | 0:5.4.16-43.el7_4.1 | ELSA-2018-0406 |
| Oracle Linux | 7 | php-recodex86_64 | Advisory build | 0:5.4.16-43.el7_4.1 | ELSA-2018-0406 |
| Oracle Linux | 7 | php-snmpx86_64 | Advisory build | 0:5.4.16-43.el7_4.1 | ELSA-2018-0406 |
| Oracle Linux | 7 | php-soapx86_64 | Advisory build | 0:5.4.16-43.el7_4.1 | ELSA-2018-0406 |
| Oracle Linux | 7 | php-xmlx86_64 | Advisory build | 0:5.4.16-43.el7_4.1 | ELSA-2018-0406 |
| Oracle Linux | 7 | php-xmlrpcx86_64 | Advisory build | 0:5.4.16-43.el7_4.1 | ELSA-2018-0406 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php70-phpx86_64 | Advisory build | 7.0.27-1.el6 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php70-php-bcmathx86_64 | Advisory build | 7.0.27-1.el6 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php70-php-clix86_64 | Advisory build | 7.0.27-1.el6 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php70-php-commonx86_64 | Advisory build | 7.0.27-1.el6 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php70-php-dbax86_64 | Advisory build | 7.0.27-1.el6 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php70-php-dbgx86_64 | Advisory build | 7.0.27-1.el6 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php70-php-debuginfox86_64 | Advisory build | 7.0.27-1.el6 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php70-php-develx86_64 | Advisory build | 7.0.27-1.el6 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php70-php-embeddedx86_64 | Advisory build | 7.0.27-1.el6 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php70-php-enchantx86_64 | Advisory build | 7.0.27-1.el6 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php70-php-fpmx86_64 | Advisory build | 7.0.27-1.el6 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php70-php-gdx86_64 | Advisory build | 7.0.27-1.el6 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php70-php-gmpx86_64 | Advisory build | 7.0.27-1.el6 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php70-php-imapx86_64 | Advisory build | 7.0.27-1.el6 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php70-php-intlx86_64 | Advisory build | 7.0.27-1.el6 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php70-php-jsonx86_64 | Advisory build | 7.0.27-1.el6 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php70-php-ldapx86_64 | Advisory build | 7.0.27-1.el6 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php70-php-mbstringx86_64 | Advisory build | 7.0.27-1.el6 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php70-php-mysqlndx86_64 | Advisory build | 7.0.27-1.el6 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php70-php-odbcx86_64 | Advisory build | 7.0.27-1.el6 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php70-php-opcachex86_64 | Advisory build | 7.0.27-1.el6 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php70-php-pdox86_64 | Advisory build | 7.0.27-1.el6 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php70-php-pgsqlx86_64 | Advisory build | 7.0.27-1.el6 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php70-php-processx86_64 | Advisory build | 7.0.27-1.el6 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php70-php-pspellx86_64 | Advisory build | 7.0.27-1.el6 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php70-php-recodex86_64 | Advisory build | 7.0.27-1.el6 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php70-php-snmpx86_64 | Advisory build | 7.0.27-1.el6 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php70-php-soapx86_64 | Advisory build | 7.0.27-1.el6 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php70-php-tidyx86_64 | Advisory build | 7.0.27-1.el6 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php70-php-xmlx86_64 | Advisory build | 7.0.27-1.el6 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php70-php-xmlrpcx86_64 | Advisory build | 7.0.27-1.el6 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php70-php-zipx86_64 | Advisory build | 7.0.27-1.el6 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-7 | phpaarch64 | Advisory build | 5.4.16-43.el7_4.1 | RHSA-2018:0406 |
| Red Hat Enterprise Linux | RHEL-7 | phpppc64 | Advisory build | 5.4.16-43.el7_4.1 | RHSA-2018:0406 |
| Red Hat Enterprise Linux | RHEL-7 | phpppc64le | Advisory build | 5.4.16-43.el7_4.1 | RHSA-2018:0406 |
| Red Hat Enterprise Linux | RHEL-7 | phps390x | Advisory build | 5.4.16-43.el7_4.1 | RHSA-2018:0406 |
| Red Hat Enterprise Linux | RHEL-7 | phpsrc | Advisory build | 5.4.16-43.el7_4.1 | RHSA-2018:0406 |
| Red Hat Enterprise Linux | RHEL-7 | phpx86_64 | Advisory build | 5.4.16-43.el7_4.1 | RHSA-2018:0406 |
| Red Hat Enterprise Linux | RHEL-7 | php-bcmathaarch64 | Advisory build | 5.4.16-43.el7_4.1 | RHSA-2018:0406 |
| Red Hat Enterprise Linux | RHEL-7 | php-bcmathppc64 | Advisory build | 5.4.16-43.el7_4.1 | RHSA-2018:0406 |
| Red Hat Enterprise Linux | RHEL-7 | php-bcmathppc64le | Advisory build | 5.4.16-43.el7_4.1 | RHSA-2018:0406 |
| Red Hat Enterprise Linux | RHEL-7 | php-bcmaths390x | Advisory build | 5.4.16-43.el7_4.1 | RHSA-2018:0406 |
| Red Hat Enterprise Linux | RHEL-7 | php-bcmathx86_64 | Advisory build | 5.4.16-43.el7_4.1 | RHSA-2018:0406 |
| Red Hat Enterprise Linux | RHEL-7 | php-cliaarch64 | Advisory build | 5.4.16-43.el7_4.1 | RHSA-2018:0406 |
| Red Hat Enterprise Linux | RHEL-7 | php-clippc64 | Advisory build | 5.4.16-43.el7_4.1 | RHSA-2018:0406 |
| Red Hat Enterprise Linux | RHEL-7 | php-clippc64le | Advisory build | 5.4.16-43.el7_4.1 | RHSA-2018:0406 |
| Red Hat Enterprise Linux | RHEL-7 | php-clis390x | Advisory build | 5.4.16-43.el7_4.1 | RHSA-2018:0406 |
| Red Hat Enterprise Linux | RHEL-7 | php-clix86_64 | Advisory build | 5.4.16-43.el7_4.1 | RHSA-2018:0406 |
| Red Hat Enterprise Linux | RHEL-7 | php-commonaarch64 | Advisory build | 5.4.16-43.el7_4.1 | RHSA-2018:0406 |
| Red Hat Enterprise Linux | RHEL-7 | php-commonppc64 | Advisory build | 5.4.16-43.el7_4.1 | RHSA-2018:0406 |
| Red Hat Enterprise Linux | RHEL-7 | php-commonppc64le | Advisory build | 5.4.16-43.el7_4.1 | RHSA-2018:0406 |
| Red Hat Enterprise Linux | RHEL-7 | php-commons390x | Advisory build | 5.4.16-43.el7_4.1 | RHSA-2018:0406 |
| Red Hat Enterprise Linux | RHEL-7 | php-commonx86_64 | Advisory build | 5.4.16-43.el7_4.1 | RHSA-2018:0406 |
| Red Hat Enterprise Linux | RHEL-7 | php-dbaaarch64 | Advisory build | 5.4.16-43.el7_4.1 | RHSA-2018:0406 |
| Red Hat Enterprise Linux | RHEL-7 | php-dbappc64 | Advisory build | 5.4.16-43.el7_4.1 | RHSA-2018:0406 |
| Red Hat Enterprise Linux | RHEL-7 | php-dbappc64le | Advisory build | 5.4.16-43.el7_4.1 | RHSA-2018:0406 |
| Red Hat Enterprise Linux | RHEL-7 | php-dbas390x | Advisory build | 5.4.16-43.el7_4.1 | RHSA-2018:0406 |
| Red Hat Enterprise Linux | RHEL-7 | php-dbax86_64 | Advisory build | 5.4.16-43.el7_4.1 | RHSA-2018:0406 |
| Red Hat Enterprise Linux | RHEL-7 | php-debuginfoaarch64 | Advisory build | 5.4.16-43.el7_4.1 | RHSA-2018:0406 |
| Red Hat Enterprise Linux | RHEL-7 | php-debuginfoppc64 | Advisory build | 5.4.16-43.el7_4.1 | RHSA-2018:0406 |
| Red Hat Enterprise Linux | RHEL-7 | php-debuginfoppc64le | Advisory build | 5.4.16-43.el7_4.1 | RHSA-2018:0406 |
| Red Hat Enterprise Linux | RHEL-7 | php-debuginfos390x | Advisory build | 5.4.16-43.el7_4.1 | RHSA-2018:0406 |
| Red Hat Enterprise Linux | RHEL-7 | php-debuginfox86_64 | Advisory build | 5.4.16-43.el7_4.1 | RHSA-2018:0406 |
| Red Hat Enterprise Linux | RHEL-7 | php-develaarch64 | Advisory build | 5.4.16-43.el7_4.1 | RHSA-2018:0406 |
| Red Hat Enterprise Linux | RHEL-7 | php-develppc64 | Advisory build | 5.4.16-43.el7_4.1 | RHSA-2018:0406 |
| Red Hat Enterprise Linux | RHEL-7 | php-develppc64le | Advisory build | 5.4.16-43.el7_4.1 | RHSA-2018:0406 |
| Red Hat Enterprise Linux | RHEL-7 | php-devels390x | Advisory build | 5.4.16-43.el7_4.1 | RHSA-2018:0406 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
The GIF decoding function gdImageCreateFromGifCtx in gd_gif_in.c in the GD Graphics Library (aka libgd), as used in PHP before 5.6.31 and 7.x before 7.1.7, does not zero colorMap arrays before use. A specially crafted GIF image could use the uninitialized tables to read ~700 bytes from the top of the stack, potentially disclosing sensitive information.
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
10- http://php.net/ChangeLog-5.php
- http://php.net/ChangeLog-7.php
- DSA-3938 http://www.debian.org/security/2017/dsa-3938
- 99492 http://www.securityfocus.com/bid/99492
- RHSA-2018:0406 https://access.redhat.com/errata/RHSA-2018:0406
- RHSA-2018:1296 https://access.redhat.com/errata/RHSA-2018:1296
- https://bugs.php.net/bug.php?id=74435
- https://bugs.php.net/patch-display.php?bug=74435&patch=fix-74435-php-7.0&revision=1497970038
- https://security.netapp.com/advisory/ntap-20180112-0001/
- https://www.tenable.com/security/tns-2017-12
Provider assertions
2mitre · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- c31f1701e94e073ef1fd78edf872293ed4790e067d8e34945a96e0eac52aa88d
- Ingested
- 23 Sep 2026, 07:42:57 UTC
- Source record
- Official CVE record