CVE-2017-8291
Description
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.
Severity
HIGH
CVSS v3
7.8
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H · source nvd
Exploit chance (EPSS)
96.968%
chance of exploitation in the next 30 days
higher than 99.9% of scored CVEs · 2026-11-16
CISA KEV
Listed
added 2022-05-24
Public exploit code
Yes
Exploit references (NVD and CNA): 2
Metasploit modules: 1
Nuclei templates: 0
Exploit-DB: 1
Weakness
- CWE-843: Access of Resource Using Incompatible Type
CISA Known Exploited Vulnerabilities entry
| Vulnerability name | Artifex Ghostscript Type Confusion Vulnerability |
|---|---|
| Vendor / product | Artifex / Ghostscript |
| Date added | 2022-05-24 |
| Federal remediation due date | 2022-06-14 |
| Required action | Apply updates per vendor instructions. |
| Known ransomware campaign use | Unknown |
CISA SSVC decision points
| Exploitation | active |
|---|---|
| Automatable | no |
| Technical impact | total |
| Scored | 2025-02-04 |
Timeline
- 2017-04-27Published by the CNA01:41 UTC
- 2017-05-02First Exploit-DB entry (EDB-ID 41955)5 days after publication
- 2022-05-24Added to the CISA KEV catalog1853 days after publication
- 2025-02-04CISA SSVC decision recorded2840 days after publication
Exploit and advisory records
| Exploit-DB | Type | Platform | Published | EDB-verified |
|---|---|---|---|---|
| EDB-ID 41955 | local | linux | 2017-05-02 | yes |
Affected products
| Vendor | Product |
|---|---|
| artifex | ghostscript |
| debian | debian_linux |
| redhat | enterprise_linux_desktop |
| redhat | enterprise_linux_eus |
| redhat | enterprise_linux_server |
| redhat | enterprise_linux_server_aus |
| redhat | enterprise_linux_server_tus |
| redhat | enterprise_linux_workstation |
References
- http://openwall.com/lists/oss-security/2017/04/28/2
- https://bugzilla.redhat.com/show_bug.cgi?id=1446063
- http://www.debian.org/security/2017/dsa-3838
- https://access.redhat.com/errata/RHSA-2017:1230
- https://security.gentoo.org/glsa/201708-06
- https://bugzilla.suse.com/show_bug.cgi?id=1036453
- https://www.exploit-db.com/exploits/41955/
- http://www.securityfocus.com/bid/98476
- https://bugs.ghostscript.com/show_bug.cgi?id=697808
- https://git.ghostscript.com/?p=ghostpdl.git%3Ba=commit%3Bh=04b37bbce174eed24edec7ad5b920eb93db4d47d
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2017-8291
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2017-8291'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2017-8291'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2017-8291'curl 'https://api.contrastcyber.com/cve_products/CVE-2017-8291'curl 'https://api.contrastcyber.com/kev_lookup/CVE-2017-8291'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).