Back
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…
Medium6.5EPSS 3.4%
- Published
- Updated
- Reserved
- Assigned by
- mitre
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.
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 (3 Nov 2026)
Loading the EPSS history…
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 6.5.
Weakness
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)
- 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-2017-7890)Record last updated .