Skip to content
OpenAdvisories
High · 7.8 Known exploited Public exploit CVE-2017-8291 EUVD-2017-17253GHSA-rh88-cwv2-gjxm

Artifex Ghostscript through 2017-04-26 allows -dSAFER bypass and remote command execution via .rsdparams type confusion with a "/OutputFile…

Published Apr 27, 2017 · Updated Oct 21, 2025 · Assigned by mitre

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 ghostscript 9.20~dfsg-3.1 —
Debian 13 ghostscript 9.20~dfsg-3.1 —
Debian 12 ghostscript 9.20~dfsg-3.1 —
Debian 8 ghostscript 9.06~dfsg-2+deb8u5 DSA-3838-1
Debian 7 ghostscript 9.05~dfsg-6.3+deb7u6 DLA-932-1
ReleasePackageFixed inAdvisory
Ubuntu 16.04 LTS ghostscript 9.18~dfsg~0-0ubuntu2.4 USN-3272-1
Ubuntu 14.04 LTS ghostscript 9.10~dfsg-0ubuntu10.7 USN-3272-1
ReleasePackageFixed inAdvisory
RHEL 7 ghostscript +4 9.07-20.el7_3.5 RHSA-2017:1230
RHEL 6 ghostscript +3 8.70-23.el6_9.2 RHSA-2017:1230
ReleasePackageFixed inAdvisory
SLES 12 SP2 ghostscript 9.15-20.1 SUSE-SU-2017:1404-1, SUSE-SU-2017:1138-1
SLES 12 SP1 ghostscript 9.15-20.1 SUSE-SU-2017:1404-1, SUSE-SU-2017:1138-1
SLES 12 ghostscript 9.15-22.1 SUSE-SU-2017:1404-1
SLES 11 SP4 ghostscript-library 8.62-32.44.1 SUSE-SU-2017:1322-1, SUSE-SU-2017:1153-1
SLES 11 SP3 ghostscript-library 8.62-32.46.1 SUSE-SU-2017:1322-1
Show 6 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 12 SP2 ghostscript 9.15-20.1 SUSE-SU-2017:1404-1, SUSE-SU-2017:1138-1
SLES for SAP 12 SP1 ghostscript 9.15-20.1 SUSE-SU-2017:1404-1, SUSE-SU-2017:1138-1
SLES for SAP 12 ghostscript 9.15-22.1 SUSE-SU-2017:1404-1
SLES for SAP 11 SP4 ghostscript-library 8.62-32.44.1 SUSE-SU-2017:1322-1, SUSE-SU-2017:1153-1
SUSE OpenStack Cloud 5 ghostscript-library 8.62-32.46.1 SUSE-SU-2017:1322-1
SUSE Linux Enterprise Point of Sale 11 SP3 ghostscript-library 8.62-32.46.1 SUSE-SU-2017:1322-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed ghostscript 9.54.0-2.2 openSUSE-SU-2024:10783-1
ReleasePackageFixed inAdvisory
Alpine v3.24 ghostscript 9.21-r2 —
Alpine v3.23 ghostscript 9.21-r2 —
Alpine v3.22 ghostscript 9.21-r2 —
Alpine v3.21 ghostscript 9.21-r2 —
Alpine v3.20 ghostscript 9.21-r2 —
Show 18 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 ghostscript 9.21-r2 —
Alpine v3.18 ghostscript 9.21-r2 —
Alpine v3.17 ghostscript 9.21-r2 —
Alpine v3.16 ghostscript 9.21-r2 —
Alpine v3.15 ghostscript 9.21-r2 —
Alpine v3.14 ghostscript 9.21-r2 —
Alpine v3.13 ghostscript 9.21-r2 —
Alpine v3.12 ghostscript 9.21-r2 —
Alpine v3.11 ghostscript 9.21-r2 —
Alpine v3.10 ghostscript 9.21-r2 —
Alpine v3.9 ghostscript 9.21-r2 —
Alpine v3.8 ghostscript 9.21-r2 —
Alpine v3.7 ghostscript 9.21-r2 —
Alpine v3.6 ghostscript 9.21-r2 —
Alpine v3.5 ghostscript 9.21-r0 —
Alpine v3.4 ghostscript 9.21-r0 —
Alpine v3.3 ghostscript 9.21-r0 —
Alpine v3.2 ghostscript 9.21-r0 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 7 ghostscript +4 9.07-20.el7_3.5 ELSA-2017-1230

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

Metasploit 1 module

Exploit-DB 1

GitHub 2 repositories

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Advisories 10

References