CVEfocus › CVE database › CVE-2017-8291

CVE-2017-8291

Known exploited (CISA KEV)CVSS 7.8 HighEPSS 97.0% (in the top 1% of all CVEs)Published 2017-04-27Updated 2025-10-21Assigner: mitre

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.

CWE-843

What to do

This CVE is being exploited in the wild (CISA Known Exploited Vulnerabilities, added 2022-05-24). If you run an affected version, patch or mitigate now.

Fixed builds are available from Alpine, Debian, Red Hat, Ubuntu: see the table below for the fixed version per release.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

37Fixed
1Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 16.04ghostscriptFixed9.18~dfsg~0-0ubuntu2.4UBUNTU-CVE-2017-8291
Ubuntu 14.04ghostscriptFixed9.10~dfsg-0ubuntu10.7UBUNTU-CVE-2017-8291
Debian 14ghostscriptFixed9.20~dfsg-3.1DEBIAN-CVE-2017-8291
Debian 13ghostscriptFixed9.20~dfsg-3.1DEBIAN-CVE-2017-8291
Debian 12ghostscriptFixed9.20~dfsg-3.1DEBIAN-CVE-2017-8291
Red Hat Enterprise Linux 7ghostscriptFixed0:9.07-20.el7_3.5RHSA-2017:1230
Red Hat Enterprise Linux 7ghostscript-cupsFixed0:9.07-20.el7_3.5RHSA-2017:1230
Red Hat Enterprise Linux 7ghostscript-develFixed0:9.07-20.el7_3.5RHSA-2017:1230
Red Hat Enterprise Linux 7ghostscript-docFixed0:9.07-20.el7_3.5RHSA-2017:1230
Red Hat Enterprise Linux 7ghostscript-gtkFixed0:9.07-20.el7_3.5RHSA-2017:1230
Red Hat Enterprise Linux 6ghostscriptFixed0:8.70-23.el6_9.2RHSA-2017:1230
Red Hat Enterprise Linux 6ghostscript-develFixed0:8.70-23.el6_9.2RHSA-2017:1230
Red Hat Enterprise Linux 6ghostscript-docFixed0:8.70-23.el6_9.2RHSA-2017:1230
Red Hat Enterprise Linux 6ghostscript-gtkFixed0:8.70-23.el6_9.2RHSA-2017:1230
Red Hat Enterprise Linux 5ghostscriptWill not fix
Will not fix
Alpine Linux 3.24ghostscriptFixed9.21-r2ALPINE-CVE-2017-8291
Alpine Linux 3.23ghostscriptFixed9.21-r2ALPINE-CVE-2017-8291
Alpine Linux 3.22ghostscriptFixed9.21-r2ALPINE-CVE-2017-8291
Alpine Linux 3.21ghostscriptFixed9.21-r2ALPINE-CVE-2017-8291
Alpine Linux 3.20ghostscriptFixed9.21-r2ALPINE-CVE-2017-8291
Alpine Linux 3.19ghostscriptFixed9.21-r2ALPINE-CVE-2017-8291
Alpine Linux 3.18ghostscriptFixed9.21-r2ALPINE-CVE-2017-8291
Alpine Linux 3.17ghostscriptFixed9.21-r2ALPINE-CVE-2017-8291
Alpine Linux 3.16ghostscriptFixed9.21-r2ALPINE-CVE-2017-8291
Alpine Linux 3.15ghostscriptFixed9.21-r2ALPINE-CVE-2017-8291
Alpine Linux 3.14ghostscriptFixed9.21-r2ALPINE-CVE-2017-8291
Alpine Linux 3.13ghostscriptFixed9.21-r2ALPINE-CVE-2017-8291
Alpine Linux 3.12ghostscriptFixed9.21-r2ALPINE-CVE-2017-8291
Alpine Linux 3.11ghostscriptFixed9.21-r2ALPINE-CVE-2017-8291
Alpine Linux 3.10ghostscriptFixed9.21-r2ALPINE-CVE-2017-8291
Alpine Linux 3.9ghostscriptFixed9.21-r2ALPINE-CVE-2017-8291
Alpine Linux 3.8ghostscriptFixed9.21-r2ALPINE-CVE-2017-8291
Alpine Linux 3.7ghostscriptFixed9.21-r2ALPINE-CVE-2017-8291
Alpine Linux 3.6ghostscriptFixed9.21-r2ALPINE-CVE-2017-8291
Alpine Linux 3.5ghostscriptFixed9.21-r0ALPINE-CVE-2017-8291
Alpine Linux 3.4ghostscriptFixed9.21-r0ALPINE-CVE-2017-8291
Alpine Linux 3.3ghostscriptFixed9.21-r0ALPINE-CVE-2017-8291
Alpine Linux 3.2ghostscriptFixed9.21-r0ALPINE-CVE-2017-8291

What the vendor says

As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.