CVE-2017-8291Artifex Ghostscript
Remote Code Execution in Ghostscript via -dSAFER Bypass
High 7.8 KEV High EPSS
Follow: this CVE · Artifex · Artifex Ghostscript We alert you by email or Slack (account required).
- Priority
- 56
- CVSS 3.1
- 7.8
- EPSS
- 97.0% probability of exploitation in 30 days · percentile 100
- Auth required
- Yes
- In KEV since
- May 24, 2022
- CISA deadline
- Jun 14, 2022
- Ransomware use
- Unknown
- Published
- Apr 27, 2017
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-843
- SSVC (CISA)
- Exploitation: active · Automatable: no · Technical impact: total
- Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
What happens
Ghostscript versions prior to 9.21 allows bypassing the -dSAFER restriction through type confusion in .rsdparams. An attacker can execute arbitrary commands by processing a malicious .eps document containing a "/OutputFile (%pipe%" substring. This vulnerability was actively exploited in April 2017 and is confirmed by CISA as exploited in the wild.
Show the original NVD text
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.
Exploitation confirmed by CISA
Artifex Ghostscript allows -dSAFER bypass and remote command execution via .rsdparams type confusion with a "/OutputFile.
Action required by CISA: Apply updates per vendor instructions.
What to do
Patch available · fixed versions: 9.21
Update Ghostscript to version 9.21 or later. Avoid processing .eps files from untrusted sources.
- Apply the vendor's security update for Ghostscript.
- CISA has confirmed it is exploited: treat it as urgent. The deadline for US federal agencies was June 14, 2022.
- Check logs for signs of earlier exploitation.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| artifex | ghostscript | < 9.21 |
| debian | debian_linux | 8.0 |
| redhat | enterprise_linux_desktop | 6.0 |
| redhat | enterprise_linux_desktop | 7.0 |
| redhat | enterprise_linux_eus | 7.3 |
| redhat | enterprise_linux_eus | 7.4 |
| redhat | enterprise_linux_eus | 7.5 |
| redhat | enterprise_linux_eus | 7.6 |
| redhat | enterprise_linux_eus | 7.7 |
| redhat | enterprise_linux_server | 6.0 |
| redhat | enterprise_linux_server | 7.0 |
| redhat | enterprise_linux_server_aus | 7.3 |
| redhat | enterprise_linux_server_aus | 7.4 |
| redhat | enterprise_linux_server_aus | 7.6 |
| redhat | enterprise_linux_server_aus | 7.7 |
| redhat | enterprise_linux_server_tus | 7.3 |
| redhat | enterprise_linux_server_tus | 7.6 |
| redhat | enterprise_linux_server_tus | 7.7 |
| redhat | enterprise_linux_workstation | 6.0 |
| redhat | enterprise_linux_workstation | 7.0 |
Official sources
References
Links published by the sources. Open them with care.
- openwall.com Mailing List Patch Third Party Advisory
- www.debian.org Mailing List Third Party Advisory
- www.securityfocus.com Broken Link Third Party Advisory VDB Entry
- access.redhat.com Third Party Advisory
- bugs.ghostscript.com Issue Tracking Third Party Advisory VDB Entry
- bugzilla.redhat.com Issue Tracking Patch Third Party Advisory
- bugzilla.suse.com Exploit Issue Tracking Third Party Advisory
- git.ghostscript.com Broken Link
- security.gentoo.org Third Party Advisory
- www.exploit-db.com Exploit Third Party Advisory VDB Entry
- www.cisa.gov US Government Resource