CVE-2017-8291Ghostscript Command Injection
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.
Published Apr 27, 2017 · Updated Nov 3, 2026 · Also known as ALPINE-CVE-2017-8291, CLEANSTART-2025-IN62339, DEBIAN-CVE-2017-8291, DLA-932-1, SUSE-SU-2017:1153-1, SUSE-SU-2017:1322-1, UBUNTU-CVE-2017-8291
Key Facts
Patch immediately- CVE-2017-8291 is a high-severity vulnerability (CVSS 7.8 v3.1) affecting Ghostscript (Artifex), Debian Linux, Enterprise Linux Desktop (Redhat) and 22 more products.
- It is exploited in the wild, listed in CISA KEV, Industry KEV feed, CIRCL KEV, ENISA EUVD since Apr 27, 2017. A public exploit is reported by tracking sources, but no code link is listed yet.
- EPSS estimates a 97% probability of exploitation in the next 30 days.
- Fixed versions are available, including Ghostscript 9.21, Ghostscript 0:8.70-23.el6_9.2, Ghostscript 0:9.07-20.el7_3.5.
- Brandefense priority: patch immediately, because it is listed as exploited in the wild.
Scores
CVSS v3.1
7.8
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS (30-day exploit likelihood)
97%
Higher than 99.9% of all scored CVEs
Exploit maturity
Exploited (KEV)
ATLAS score
82/100
Publication score, see How it works
Exploitation Verdict
KEV listed
May 24, 2022
1853 days after publication
Federal due date
Jun 14, 2022
Overdue
Ransomware use
Not reported
Attributed actors
Exploit & Defence Guidance
Exploit maturity
Exploited (KEV)
Public exploit code
3
Proof-of-concept links
In-the-wild evidence
7
Reports of active use
Required action (CISA): Apply updates per vendor instructions.
Advisories And Exploit References
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.
Known-Exploited Catalog Listings
| Catalog | Added | Remediation due | Ransomware use |
|---|---|---|---|
| CISA KEV | May 24, 2022 | Jun 14, 2022 | Not reported |
| Industry KEV feed | Apr 27, 2017 | Jun 14, 2022 | Not reported |
| CIRCL KEV | May 24, 2022 | Jun 14, 2022 | Not reported |
| ENISA EUVD | May 24, 2022 | n/a | Not reported |
Required action: Apply updates per vendor instructions.
Affected Products
177 affected entries in total| Product | Affected versions | Fixed in |
|---|---|---|
| GhostscriptArtifex | See advisory | 9.21 |
| Debian LinuxDebian | 8.0 | n/a |
| Enterprise Linux DesktopRedhat | 6.0, 7.0 | n/a |
| Enterprise Linux EusRedhat | 7.3, 7.4, 7.5, 7.6, 7.7 | n/a |
| Enterprise Linux ServerRedhat | 6.0, 7.0 | n/a |
Patched Releases
Ghostscript
9.21, 0:8.70-23.el6_9.2, 0:9.07-20.el7_3.5, 8.70-23.25.amzn1, 8.70-23.el6_9.2, 9.05~dfsg-6.3+deb7u6, 9.06~dfsg-2+deb8u5, 9.07-20.el7_3.5, 9.10~dfsg-0ubuntu10.7, 9.15-11.3.1, 9.15-20.1, 9.15-22.1, 9.18~dfsg~0-0ubuntu2.4, 9.20-1.mga5, 9.20~dfsg-3.1, 9.21-2, 9.21-r0, 9.21-r2, 9.54.0-2.2
ghostscript-cups
9.07-20.el7_3.5
ghostscript-devel
8.62-32.44.1, 8.62-32.46.1, 8.70-23.25.amzn1, 8.70-23.el6_9.2, 9.07-20.el7_3.5, 9.15-11.3.1, 9.15-20.1, 9.15-22.1, 9.54.0-2.2
ghostscript-doc
8.70-23.25.amzn1, 8.70-23.el6_9.2, 9.07-20.el7_3.5
ghostscript-fonts-other
8.62-32.44.1, 8.62-32.46.1
ghostscript-fonts-rus
8.62-32.44.1, 8.62-32.46.1
ghostscript-fonts-std
8.62-32.44.1, 8.62-32.46.1
ghostscript-gtk
8.70-23.el6_9.2, 9.07-20.el7_3.5
ghostscript-ijs-devel
8.62-32.44.1, 8.62-32.46.1
ghostscript-library
8.62-32.44.1, 8.62-32.46.1
ghostscript-mini
9.15-11.3.1
ghostscript-mini-devel
9.15-11.3.1
ghostscript-omni
8.62-32.44.1, 8.62-32.46.1
ghostscript-x11
8.62-32.44.1, 8.62-32.46.1, 9.15-11.3.1, 9.15-20.1, 9.15-22.1, 9.54.0-2.2
gutenprint
5.2.10-5.1.mga5
libgimpprint
4.2.7-32.44.1, 4.2.7-32.46.1
libgimpprint-devel
4.2.7-32.44.1, 4.2.7-32.46.1
libspectre
0.2.7-5.1.mga5
rootio-ghostscript
9.20~dfsg-3.1, 9.21-r2
Timeline
Publicly disclosed
Apr 27, 2017
Added to Industry KEV feed
Apr 27, 2017
Added to CISA KEV
May 24, 2022
Added to CIRCL KEV
May 24, 2022
Added to ENISA EUVD
May 24, 2022
Last updated
Nov 3, 2026
Weakness Type
- CWE-77 Improper Neutralization of Special Elements used in a Command
- CWE-843 Access of Resource Using Incompatible Type
References
- advisorysecurity.alpinelinux.org · CVE-2017-8291
- advisorysecurity-tracker.debian.org · CVE-2017-8291
- advisoryubuntu.com · CVE-2017-8291
- advisoryVulnCheck exploitation report
- advisoryRHSA-2017:1230
FAQ
Common Questions.
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.
Affected: Ghostscript (Artifex); Debian Linux versions 8.0; Enterprise Linux Desktop (Redhat) versions 6.0, 7.0, among others. The full list is in the CVE brief.
It is exploited in the wild, listed in CISA KEV, Industry KEV feed, CIRCL KEV, ENISA EUVD since Apr 27, 2017.
Yes. It was added on May 24, 2022 with a federal remediation due date of Jun 14, 2022.
A public exploit is reported by tracking sources, but no code link is listed yet.
Fixed versions are available, including Ghostscript 9.21, Ghostscript 0:8.70-23.el6_9.2, Ghostscript 0:9.07-20.el7_3.5.
Brandefense priority: patch immediately, because it is listed as exploited in the wild.
Is CVE-2017-8291 On Your Attack Surface?
Brandefense matches it against the products discovered on your perimeter and opens a finding the day a CVE like this is listed.
Request A Demo