Artifex Ghostscript through 2017-04-26 allows -dSAFER bypass and remote command execution via .rsdparams type confusion with a "/OutputFile (%pipe%" substring in a crafted .eps document that is an input to the gs program, as exploited in the wild in April 2017.
CVE-2017-8291
Score elevated to 9.0 because this CVE is listed on the CISA Known Exploited Vulnerabilities catalog (added 2022-05-24), indicating real-world exploitation has been confirmed by US federal agencies. NVD baseline CVSS 7.8 retained for reference. Confidence: HIGH.
- Actively exploited in the wild (CISA-KEV)
A fix is available — apply it.
- CVSS v3
- 7.8
- EG Score
- 9.0(high)
- EPSS
- 99.9%
- KEV
- ⚠ Exploited
Published
April 27, 2017
Last Modified
April 21, 2026
Advisory Details (8)
Auto-updated May 19, 2026Ghostscript 9.21 - Type Confusion Arbitrary Command Execution (Metasploit) - Linux local Exploit
https://www.exploit-db.com/exploits/41955/GPL Ghostscript: Multiple vulnerabilities (GLSA 201708-06) — Gentoo security
https://security.gentoo.org/glsa/201708-061036453 – (CVE-2017-8291) VUL-0: CVE-2017-8291: ghostscript,ghostscript-library: Artifex Ghostscript through 2017-04-26 allows -dSAFER bypass and remotecommand execution via a "/Ou...
https://bugzilla.suse.com/show_bug.cgi?id=10364531446063 – (CVE-2017-8291) CVE-2017-8291 ghostscript: corruption of operand stack
Affected: Red Hat Enterprise Linux 6
https://bugzilla.redhat.com/show_bug.cgi?id=1446063[SECURITY] [DSA 3838-1] ghostscript security update
http://www.debian.org/security/2017/dsa-3838oss-security - Re: CVE-2017-8291 ghostscript remote code execution
http://openwall.com/lists/oss-security/2017/04/28/2Patch Availability(2)
| Vendor / Ecosystem | Fixed in / Patch | Released | Source |
|---|---|---|---|
| ubuntu | libgs9-common (9.19~dfsg+1-0ubuntu7.2) @ zesty | 2026-07-16 | ubuntu |
| redhat | ghostscript-0:9.07-20.el7_3.5 | 2017-05-12 | 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.
Weakness Classification(2)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
All Vendor Advisories
(2)
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 135× in last 7d / 580× 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 940 total refreshes for this CVE.
- 2026-07-16 02:32 UTCEG score recompute
- 2026-07-16 02:32 UTCVendor advisory
- 2026-07-16 02:32 UTCGHSA enrichment
- 2026-07-15 22:40 UTCEG score recompute
- 2026-07-15 22:40 UTCVendor advisory
- 2026-07-15 22:40 UTCGHSA enrichment
- 2026-07-15 18:48 UTCEG score recompute
- 2026-07-15 18:48 UTCVendor advisory
- 2026-07-15 18:48 UTCGHSA enrichment
- 2026-07-15 16:49 UTCCISA KEV update
- 2026-07-15 15:04 UTCCISA KEV update
- 2026-07-15 14:56 UTCEG score recompute
- 2026-07-15 14:56 UTCVendor advisory
- 2026-07-15 14:56 UTCGHSA enrichment
- 2026-07-15 11:05 UTCEG score recompute
- 2026-07-15 11:05 UTCVendor advisory
- 2026-07-15 11:05 UTCGHSA enrichment
- 2026-07-15 07:13 UTCEG score recompute
- 2026-07-15 07:13 UTCVendor advisory
- 2026-07-15 07:13 UTCGHSA enrichment
- 2026-07-15 03:21 UTCEG score recompute
- 2026-07-15 03:21 UTCVendor advisory
- 2026-07-15 03:20 UTCGHSA enrichment
- 2026-07-14 23:29 UTCEG score recompute
- 2026-07-14 23:29 UTCVendor advisory
Show 75 moreShow fewer
- 2026-07-14 23:29 UTCGHSA enrichment
- 2026-07-14 19:37 UTCEG score recompute
- 2026-07-14 19:37 UTCVendor advisory
- 2026-07-14 19:37 UTCGHSA enrichment
- 2026-07-14 18:05 UTCCISA KEV update
- 2026-07-14 15:46 UTCEG score recompute
- 2026-07-14 15:46 UTCVendor advisory
- 2026-07-14 15:46 UTCGHSA enrichment
- 2026-07-14 11:53 UTCEG score recompute
- 2026-07-14 11:53 UTCVendor advisory
- 2026-07-14 11:53 UTCGHSA enrichment
- 2026-07-14 08:02 UTCEG score recompute
- 2026-07-14 08:02 UTCVendor advisory
- 2026-07-14 08:02 UTCGHSA enrichment
- 2026-07-14 04:07 UTCEG score recompute
- 2026-07-14 04:07 UTCVendor advisory
- 2026-07-14 04:06 UTCGHSA enrichment
- 2026-07-14 00:14 UTCEG score recompute
- 2026-07-14 00:14 UTCVendor advisory
- 2026-07-14 00:14 UTCGHSA enrichment
- 2026-07-13 20:22 UTCEG score recompute
- 2026-07-13 20:22 UTCVendor advisory
- 2026-07-13 20:22 UTCGHSA enrichment
- 2026-07-13 17:07 UTCCISA KEV update
- 2026-07-13 16:30 UTCEG score recompute
- 2026-07-13 16:30 UTCVendor advisory
- 2026-07-13 16:30 UTCGHSA enrichment
- 2026-07-13 12:37 UTCEG score recompute
- 2026-07-13 12:37 UTCVendor advisory
- 2026-07-13 12:37 UTCGHSA enrichment
- 2026-07-13 08:46 UTCEG score recompute
- 2026-07-13 08:46 UTCVendor advisory
- 2026-07-13 08:45 UTCGHSA enrichment
- 2026-07-13 04:51 UTCEG score recompute
- 2026-07-13 04:51 UTCVendor advisory
- 2026-07-13 04:51 UTCGHSA enrichment
- 2026-07-13 00:59 UTCEG score recompute
- 2026-07-13 00:59 UTCVendor advisory
- 2026-07-13 00:59 UTCGHSA enrichment
- 2026-07-12 21:08 UTCEG score recompute
- 2026-07-12 21:08 UTCVendor advisory
- 2026-07-12 21:08 UTCGHSA enrichment
- 2026-07-12 17:16 UTCEG score recompute
- 2026-07-12 17:16 UTCVendor advisory
- 2026-07-12 17:16 UTCGHSA enrichment
- 2026-07-12 13:25 UTCEG score recompute
- 2026-07-12 13:25 UTCVendor advisory
- 2026-07-12 13:24 UTCGHSA enrichment
- 2026-07-12 09:33 UTCEG score recompute
- 2026-07-12 09:33 UTCVendor advisory
- 2026-07-12 09:33 UTCGHSA enrichment
- 2026-07-12 05:41 UTCEG score recompute
- 2026-07-12 05:41 UTCVendor advisory
- 2026-07-12 05:41 UTCGHSA enrichment
- 2026-07-12 01:50 UTCEG score recompute
- 2026-07-12 01:50 UTCVendor advisory
- 2026-07-12 01:50 UTCGHSA enrichment
- 2026-07-11 21:59 UTCEG score recompute
- 2026-07-11 21:59 UTCVendor advisory
- 2026-07-11 21:59 UTCGHSA enrichment
- 2026-07-11 18:07 UTCEG score recompute
- 2026-07-11 18:07 UTCVendor advisory
- 2026-07-11 18:07 UTCGHSA enrichment
- 2026-07-11 14:15 UTCEG score recompute
- 2026-07-11 14:15 UTCVendor advisory
- 2026-07-11 14:15 UTCGHSA enrichment
- 2026-07-11 10:19 UTCEG score recompute
- 2026-07-11 10:19 UTCVendor advisory
- 2026-07-11 10:19 UTCGHSA enrichment
- 2026-07-11 08:24 UTCEPSS rescore
- 2026-07-11 06:27 UTCEG score recompute
- 2026-07-11 06:27 UTCVendor advisory
- 2026-07-11 06:27 UTCGHSA enrichment
- 2026-07-11 02:36 UTCEG score recompute
- 2026-07-11 02:36 UTCVendor advisory
Publicly available exploits
(2 references)Working exploit code is in the public domain (1 Metasploit module) (1 Exploit-DB entry). Defenders should treat patch urgency accordingly — public PoCs typically lead to mass-exploitation within 24-72 hours.
- Exploit-DBEDB-41955✓ verifiedFirst seen May 2, 2017
Ghostscript 9.21 - Type Confusion Arbitrary Command Execution (Metasploit)
Open source ↗ - Metasploitexploit/unix/fileformat/ghostscript_type_confusion✓ verifiedFirst seen Apr 27, 2017
Ghostscript Type Confusion Arbitrary Command Execution
Open source ↗
Related CVEs(same vendor + same CWE)
Same vendor
10 shownredhat
Same CWE
10 shownCWE-843 · CWE-704
- CVE-2016-1000005EG 9.8CRITICAL
- CVE-2011-2337EG 9.8CRITICAL
- CVE-2011-1460EG 9.8CRITICAL
- CVE-2016-7398EG 9.8EPSS 93%CRITICAL
- CVE-2018-15981EG 9.8EPSS 96%CRITICAL
- CVE-2018-12812EG 9.8EPSS 94%CRITICAL
- CVE-2018-14403EG 9.8CRITICAL
- CVE-2012-0507EG 9.8 KEVEPSS 100%CRITICAL
- CVE-2010-20115EG 9.3CRITICAL
- CVE-2017-5070NVD 8.8EG 9.0 KEVEPSS 98%HIGH
Frequently asked(6)
What is CVE-2017-8291?
When was CVE-2017-8291 disclosed?
Is CVE-2017-8291 actively exploited?
What is the CVSS score of CVE-2017-8291?
Which products are affected by CVE-2017-8291?
How do I remediate CVE-2017-8291?
Dependency Blast Radius
Explore the affected products and dependency analysis for CVE-2017-8291
Is Your Infrastructure Affected by CVE-2017-8291?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.