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.
CVE-2017-7890
Score 6.5 from GitHub Security Advisory published 2022-05-14. NVD baseline CVSS 6.5; sources differ by 0.0.
- Lower severity and no public exploit yet
A fix is available — apply it.
- CVSS v3
- 6.5
- EG Score
- 6.5(medium)
- EG Risk
- 35(Track)EG Risk 35/100SSVC: Track
EG Risk is EchelonGraph's 0–100 priority score: it fuses intrinsic severity with real-world exploitation and automatability so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner. Distinct from the 0–10 EG Score (severity).
How it’s computedSeverity65% × 45%Exploitation3% × 40%Automatability30% × 15%Action: Routine — remediate on your standard cadence. - EPSS PROB
- 3%
- EPSS %ILE
- 88%
- KEV
- Not listed
Published
August 2, 2017
Last Modified
June 17, 2026
References (20)
- cve@mitrehttp://php.net/ChangeLog-5.php
- cve@mitrehttp://php.net/ChangeLog-7.php
- cve@mitrehttp://www.debian.org/security/2017/dsa-3938
- cve@mitrehttp://www.securityfocus.com/bid/99492
- cve@mitrehttps://access.redhat.com/errata/RHSA-2018:0406
- cve@mitrehttps://access.redhat.com/errata/RHSA-2018:1296
- cve@mitrehttps://bugs.php.net/bug.php?id=74435
- cve@mitrehttps://bugs.php.net/patch-display.php?bug=74435&patch=fix-74435-php-7.0&revision=1497970038
- cve@mitrehttps://security.netapp.com/advisory/ntap-20180112-0001/
- cve@mitrehttps://www.tenable.com/security/tns-2017-12
- af854a3a-2127-422b-91ae-364da2661108http://php.net/ChangeLog-5.php
- af854a3a-2127-422b-91ae-364da2661108http://php.net/ChangeLog-7.php
- af854a3a-2127-422b-91ae-364da2661108http://www.debian.org/security/2017/dsa-3938
- af854a3a-2127-422b-91ae-364da2661108http://www.securityfocus.com/bid/99492
- af854a3a-2127-422b-91ae-364da2661108https://access.redhat.com/errata/RHSA-2018:0406
Patch Availability(4)
| Vendor / Ecosystem | Fixed in / Patch | Released | Source |
|---|---|---|---|
| ubuntu | libgd-tools (2.0.36~rc1~dfsg-6ubuntu2.5) @ precise | 2026-05-22 | ubuntu |
| ubuntu | libgd3 (2.1.1-4ubuntu0.16.04.7) @ xenial | 2026-05-22 | ubuntu |
| redhat | rh-php70-php-0:7.0.27-1.el7 | 2018-05-03 | redhat |
| redhat | php-0:5.4.16-43.el7_4.1 | 2018-03-06 | redhat |
Patches are aggregated from vendor advisories (Red Hat, Microsoft, Cisco, GitHub) and package ecosystems (OSV, GHSA). Multiple rows for the same upstream release have been deduplicated.
Affected Packages
(10 across 10 ecosystems)
Alpine:v3.4(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| gd | — | 2.2.5-r0 | — |
Alpine:v3.5(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| gd | — | 2.2.5-r0 | — |
Alpine:v3.6(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| gd | — | 2.2.5-r0 | — |
Debian:11(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| libgd2 | — | 2.2.5-1 | — |
Debian:12(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| libgd2 | — | 2.2.5-1 | — |
Debian:13(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| libgd2 | — | 2.2.5-1 | — |
Debian:14(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| libgd2 | — | 2.2.5-1 | — |
Debian:7(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| libgd2 | 2.0.36~rc1~dfsg-6.1 ... 2.0.36~rc1~dfsg-6.1+deb7u8 (9 versions) | 2.0.36~rc1~dfsg-6.1+deb7u9 | — |
Debian:8(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| libgd2 | 2.1.0-5 ... 2.1.0-5+deb8u9 (10 versions) | 2.1.0-5+deb8u10 | — |
Debian:9(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| libgd2 | 2.2.4-2 | 2.2.4-2+deb9u1 | — |
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
All Vendor Advisories
(4)
Every vendor that published an advisory referencing this CVE — pulled from our cve_vendor_advisories aggregation. Click any row for the vendor's original advisory page.
Data Freshness Timeline
(refreshed 4× in last 7d / 23× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
Showing the most recent 100 of 163 total refreshes for this CVE.
- 2026-09-24 13:59 UTCEPSS rescore
- 2026-09-23 13:42 UTCEPSS rescore
- 2026-09-21 20:27 UTCEPSS rescore
- 2026-09-19 15:36 UTCEPSS rescore
- 2026-09-18 08:20 UTCOSV refresh
- 2026-09-17 19:22 UTCEPSS rescore
- 2026-09-17 19:22 UTCEPSS rescore
- 2026-09-15 03:05 UTCEPSS rescore
- 2026-09-13 16:42 UTCEPSS rescore
- 2026-09-12 14:56 UTCEPSS rescore
- 2026-09-11 09:31 UTCEPSS rescore
- 2026-09-07 15:56 UTCEPSS rescore
- 2026-09-05 15:24 UTCEPSS rescore
- 2026-09-04 13:56 UTCEPSS rescore
- 2026-09-04 05:02 UTCEPSS rescore
- 2026-09-02 14:07 UTCEPSS rescore
- 2026-09-02 14:07 UTCEPSS rescore
- 2026-09-01 03:31 UTCEPSS rescore
- 2026-08-30 19:13 UTCEPSS rescore
- 2026-08-30 09:00 UTCOSV refresh
- 2026-08-28 21:36 UTCEPSS rescore
- 2026-08-27 14:21 UTCEPSS rescore
- 2026-08-26 14:41 UTCEPSS rescore
- 2026-08-25 13:44 UTCEPSS rescore
- 2026-08-23 00:14 UTCEPSS rescore
Show 75 moreShow fewer
- 2026-08-21 23:44 UTCEPSS rescore
- 2026-08-19 16:59 UTCEPSS rescore
- 2026-08-18 13:43 UTCEPSS rescore
- 2026-08-16 14:51 UTCEPSS rescore
- 2026-08-16 02:10 UTCEPSS rescore
- 2026-08-15 01:26 UTCEPSS rescore
- 2026-08-14 00:09 UTCOSV refresh
- 2026-08-12 13:46 UTCEPSS rescore
- 2026-08-08 16:32 UTCEPSS rescore
- 2026-08-07 16:22 UTCEPSS rescore
- 2026-08-06 13:42 UTCEPSS rescore
- 2026-08-06 13:42 UTCEPSS rescore
- 2026-08-05 19:13 UTCEPSS rescore
- 2026-08-02 02:23 UTCEPSS rescore
- 2026-08-02 02:23 UTCEPSS rescore
- 2026-08-01 04:12 UTCEPSS rescore
- 2026-07-30 16:24 UTCEPSS rescore
- 2026-07-30 01:26 UTCEPSS rescore
- 2026-07-29 03:33 UTCOSV refresh
- 2026-07-28 15:32 UTCEPSS rescore
- 2026-07-26 14:51 UTCEPSS rescore
- 2026-07-26 14:51 UTCEPSS rescore
- 2026-07-23 14:15 UTCEPSS rescore
- 2026-07-23 01:30 UTCEG score recompute
- 2026-07-22 22:10 UTCEG score recompute
- 2026-07-22 14:04 UTCEPSS rescore
- 2026-07-21 15:21 UTCEPSS rescore
- 2026-07-20 17:04 UTCEPSS rescore
- 2026-07-20 17:04 UTCEPSS rescore
- 2026-07-19 14:28 UTCEPSS rescore
- 2026-07-19 14:28 UTCEPSS rescore
- 2026-07-19 02:26 UTCEPSS rescore
- 2026-07-19 02:26 UTCEPSS rescore
- 2026-07-18 10:01 UTCEPSS rescore
- 2026-07-16 16:59 UTCEPSS rescore
- 2026-07-16 16:59 UTCEPSS rescore
- 2026-07-15 16:55 UTCEPSS rescore
- 2026-07-15 16:54 UTCEPSS rescore
- 2026-07-15 01:56 UTCEPSS rescore
- 2026-07-15 01:56 UTCEPSS rescore
- 2026-07-13 22:26 UTCEPSS rescore
- 2026-07-13 22:26 UTCEPSS rescore
- 2026-07-12 05:43 UTCEPSS rescore
- 2026-07-11 19:52 UTCOSV refresh
- 2026-07-11 08:24 UTCEPSS rescore
- 2026-07-09 19:06 UTCEPSS rescore
- 2026-07-08 15:11 UTCEPSS rescore
- 2026-07-07 13:42 UTCEPSS rescore
- 2026-07-06 16:24 UTCEPSS rescore
- 2026-07-06 16:24 UTCEPSS rescore
- 2026-07-06 02:20 UTCEPSS rescore
- 2026-07-06 02:20 UTCEPSS rescore
- 2026-07-05 02:27 UTCEPSS rescore
- 2026-07-04 06:28 UTCEPSS rescore
- 2026-07-04 06:28 UTCEPSS rescore
- 2026-07-02 16:54 UTCEPSS rescore
- 2026-07-01 15:03 UTCEPSS rescore
- 2026-06-30 23:19 UTCEPSS rescore
- 2026-06-30 23:19 UTCEPSS rescore
- 2026-06-28 04:53 UTCEPSS rescore
- 2026-06-28 04:53 UTCEPSS rescore
- 2026-06-27 03:06 UTCEPSS rescore
- 2026-06-25 13:47 UTCEPSS rescore
- 2026-06-24 14:02 UTCEPSS rescore
- 2026-06-24 14:02 UTCEPSS rescore
- 2026-06-23 21:30 UTCEPSS rescore
- 2026-06-23 21:30 UTCEPSS rescore
- 2026-06-23 02:30 UTCOSV refresh
- 2026-06-22 14:23 UTCEPSS rescore
- 2026-06-22 14:23 UTCEPSS rescore
- 2026-06-21 01:57 UTCEPSS rescore
- 2026-06-21 01:57 UTCEPSS rescore
- 2026-06-19 19:23 UTCEPSS rescore
- 2026-06-19 19:23 UTCEPSS rescore
- 2026-06-18 17:50 UTCEPSS rescore
Related CVEs(same product + same vendor + same CWE)
Same product
10 shownDebian:9:libgd2 · Alpine:v3.5:gd · Alpine:v3.6:gd
- CVE-2017-6362EG 7.5EPSS p92HIGH
- CVE-2019-6978EG 9.8EPSS p91CRITICAL
- CVE-2019-6977EG 8.9EPSS p99HIGH
- CVE-2016-10168EG 7.8HIGH
- CVE-2016-10167EG 5.5MEDIUM
- CVE-2016-9317EG 5.5MEDIUM
- CVE-2018-1000222EG 8.8EPSS p91HIGH
- CVE-2018-5711EG 5.5EPSS p96MEDIUM
- CVE-2016-10166EG 9.8EPSS p96CRITICAL
- CVE-2016-6912EG 9.8EPSS p91CRITICAL
Same vendor
10 shownredhat:RHSA-2018:1296
- CVE-2017-12933EG 9.8EPSS p94CRITICAL
- CVE-2017-12932EG 9.8EPSS p94CRITICAL
- CVE-2017-11362EG 9.8CRITICAL
- CVE-2017-9228EG 9.8EPSS p93CRITICAL
- CVE-2017-9227EG 9.8EPSS p93CRITICAL
- CVE-2017-9226EG 9.8EPSS p94CRITICAL
- CVE-2017-9224EG 9.8EPSS p94CRITICAL
- CVE-2016-10160EG 9.8EPSS p94CRITICAL
- CVE-2016-7479EG 9.8EPSS p99CRITICAL
- CVE-2017-5340EG 9.8EPSS p97CRITICAL
Same CWE
10 shownCWE-200
Frequently asked(5)
What is CVE-2017-7890?
When was CVE-2017-7890 disclosed?
Is CVE-2017-7890 actively exploited?
What is the CVSS score of CVE-2017-7890?
How do I remediate CVE-2017-7890?
Dependency Blast Radius
See which npm, PyPI, Go, and Maven packages are affected by CVE-2017-7890
Is Your Infrastructure Affected by CVE-2017-7890?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.