CVE-2017-7890
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…
- 6.5MediumCVSS base score
- 3.4%Exploitation in 30 daysEPSS · top 11% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
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.
Timeline
ID reserved
By mitre
- 4 months later
· 4 months later
Published
- 7 years later
· 7 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Modified | 3.0 | Medium6.5 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N |
- EPSS (exploitation in 30 days)
- 3.4% · top 11% of all CVEs (9 Nov 2026)
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 6.5.
Affected products
n/a
- affected n/a
References
10
- https://bugs.php.net/patch-display.php?bug=74435&patch=fix-74435-php-7.0&revision=1497970038 (opens in a new tab)x_refsource_CONFIRMx_transferred
- https://www.tenable.com/security/tns-2017-12 (opens in a new tab)x_refsource_CONFIRMx_transferred
- DSA-3938 (opens in a new tab)vendor-advisoryx_refsource_DEBIANx_transferred
- RHSA-2018:1296 (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
- https://security.netapp.com/advisory/ntap-20180112-0001/ (opens in a new tab)x_refsource_CONFIRMx_transferred
- 99492 (opens in a new tab)vdb-entryx_refsource_BIDx_transferred
- http://php.net/ChangeLog-7.php (opens in a new tab)x_refsource_CONFIRMx_transferred
- RHSA-2018:0406 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- https://bugs.php.net/bug.php?id=74435 (opens in a new tab)x_refsource_CONFIRMx_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)
- EUVD EUVD-2017-16862 (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://cveledger.app/cve/CVE-2017-7890)Record last updated .