Actively exploited vulnerability / CVE-2017-8291
Ghostscript: a tampered document can let an attacker take control of a server
This vulnerability lets an attacker bypass Ghostscript's safety protections and run their own commands on the computer or server that processes a specially prepared document. For your business, that can mean unauthorized access to data, installation of malicious software, or your system being used in further attacks. It is on the lists of vulnerabilities used in real attacks kept by CISA, the US cybersecurity agency, and by ENISA, the EU cybersecurity agency.
- Identifier
- CVE-2017-8291 · EUVD-2017-17253
- Severity
- High (7.8/10)
- On the CISA list (US)
- yes, since 24 May 2022
- Deadline given to US federal agencies
- 14 June 2022
- On the ENISA list (EU)
- yes
- Probability of exploitation (EPSS)
- 97.0% (FIRST's estimate for the next 30 days)
Does it concern you?
Ghostscript is a program that reads and converts PDF and PostScript documents, often working behind other applications such as print servers, websites that create thumbnails or previews, and document management systems. It may be on your company's Linux servers even if nobody uses it directly.
Ghostscript versions older than 9.21 are affected. Ask your IT administrator or hosting provider to check which Ghostscript version is installed on your servers and in applications that process documents.
Affected products and versions
- Artifex Ghostscript
- ghostscript: before 9.21
What to do
Update Ghostscript to version 9.21 or later, following the vendor's instructions. Also check applications that bundle Ghostscript, as they may need their own update.
Versions that contain the fix: 9.21.
The official description
The text below is the description from the public database.
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.
Sources
- Debian Security Tracker
- Red Hat Security Data
- CVE Program
- GitHub Advisory Database
- Vendor advisory: nvd.nist.gov
- NVD
- ENISA EUVD
Data from the public CVE and NVD databases, the CISA KEV and ENISA EU KEV lists and FIRST's EPSS score. The explanations are ours, written from that data. Last updated: 29 November 2026.