CVE-2017-8291
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.
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 16.04 | ghostscript | Fixed | 9.18~dfsg~0-0ubuntu2.4 | UBUNTU-CVE-2017-8291 |
| Ubuntu 14.04 | ghostscript | Fixed | 9.10~dfsg-0ubuntu10.7 | UBUNTU-CVE-2017-8291 |
| Debian 14 | ghostscript | Fixed | 9.20~dfsg-3.1 | DEBIAN-CVE-2017-8291 |
| Debian 13 | ghostscript | Fixed | 9.20~dfsg-3.1 | DEBIAN-CVE-2017-8291 |
| Debian 12 | ghostscript | Fixed | 9.20~dfsg-3.1 | DEBIAN-CVE-2017-8291 |
| Red Hat Enterprise Linux 7 | ghostscript | Fixed | 0:9.07-20.el7_3.5 | RHSA-2017:1230 |
| Red Hat Enterprise Linux 7 | ghostscript-cups | Fixed | 0:9.07-20.el7_3.5 | RHSA-2017:1230 |
| Red Hat Enterprise Linux 7 | ghostscript-devel | Fixed | 0:9.07-20.el7_3.5 | RHSA-2017:1230 |
| Red Hat Enterprise Linux 7 | ghostscript-doc | Fixed | 0:9.07-20.el7_3.5 | RHSA-2017:1230 |
| Red Hat Enterprise Linux 7 | ghostscript-gtk | Fixed | 0:9.07-20.el7_3.5 | RHSA-2017:1230 |
| Red Hat Enterprise Linux 6 | ghostscript | Fixed | 0:8.70-23.el6_9.2 | RHSA-2017:1230 |
| Red Hat Enterprise Linux 6 | ghostscript-devel | Fixed | 0:8.70-23.el6_9.2 | RHSA-2017:1230 |
| Red Hat Enterprise Linux 6 | ghostscript-doc | Fixed | 0:8.70-23.el6_9.2 | RHSA-2017:1230 |
| Red Hat Enterprise Linux 6 | ghostscript-gtk | Fixed | 0:8.70-23.el6_9.2 | RHSA-2017:1230 |
| Red Hat Enterprise Linux 5 | ghostscript | Will not fix Will not fix | ||
| Alpine Linux 3.24 | ghostscript | Fixed | 9.21-r2 | ALPINE-CVE-2017-8291 |
| Alpine Linux 3.23 | ghostscript | Fixed | 9.21-r2 | ALPINE-CVE-2017-8291 |
| Alpine Linux 3.22 | ghostscript | Fixed | 9.21-r2 | ALPINE-CVE-2017-8291 |
| Alpine Linux 3.21 | ghostscript | Fixed | 9.21-r2 | ALPINE-CVE-2017-8291 |
| Alpine Linux 3.20 | ghostscript | Fixed | 9.21-r2 | ALPINE-CVE-2017-8291 |
| Alpine Linux 3.19 | ghostscript | Fixed | 9.21-r2 | ALPINE-CVE-2017-8291 |
| Alpine Linux 3.18 | ghostscript | Fixed | 9.21-r2 | ALPINE-CVE-2017-8291 |
| Alpine Linux 3.17 | ghostscript | Fixed | 9.21-r2 | ALPINE-CVE-2017-8291 |
| Alpine Linux 3.16 | ghostscript | Fixed | 9.21-r2 | ALPINE-CVE-2017-8291 |
| Alpine Linux 3.15 | ghostscript | Fixed | 9.21-r2 | ALPINE-CVE-2017-8291 |
| Alpine Linux 3.14 | ghostscript | Fixed | 9.21-r2 | ALPINE-CVE-2017-8291 |
| Alpine Linux 3.13 | ghostscript | Fixed | 9.21-r2 | ALPINE-CVE-2017-8291 |
| Alpine Linux 3.12 | ghostscript | Fixed | 9.21-r2 | ALPINE-CVE-2017-8291 |
| Alpine Linux 3.11 | ghostscript | Fixed | 9.21-r2 | ALPINE-CVE-2017-8291 |
| Alpine Linux 3.10 | ghostscript | Fixed | 9.21-r2 | ALPINE-CVE-2017-8291 |
| Alpine Linux 3.9 | ghostscript | Fixed | 9.21-r2 | ALPINE-CVE-2017-8291 |
| Alpine Linux 3.8 | ghostscript | Fixed | 9.21-r2 | ALPINE-CVE-2017-8291 |
| Alpine Linux 3.7 | ghostscript | Fixed | 9.21-r2 | ALPINE-CVE-2017-8291 |
| Alpine Linux 3.6 | ghostscript | Fixed | 9.21-r2 | ALPINE-CVE-2017-8291 |
| Alpine Linux 3.5 | ghostscript | Fixed | 9.21-r0 | ALPINE-CVE-2017-8291 |
| Alpine Linux 3.4 | ghostscript | Fixed | 9.21-r0 | ALPINE-CVE-2017-8291 |
| Alpine Linux 3.3 | ghostscript | Fixed | 9.21-r0 | ALPINE-CVE-2017-8291 |
| Alpine Linux 3.2 | ghostscript | Fixed | 9.21-r0 | ALPINE-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:
- http://www.debian.org/security/2017/dsa-3838 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2017:1230 (vendor-advisory)
- https://security.gentoo.org/glsa/201708-06 (vendor-advisory)
References
- http://www.debian.org/security/2017/dsa-3838
- https://bugzilla.suse.com/show_bug.cgi?id=1036453
- https://access.redhat.com/errata/RHSA-2017:1230
- http://www.securityfocus.com/bid/98476
- https://www.exploit-db.com/exploits/41955/
- http://openwall.com/lists/oss-security/2017/04/28/2
- https://security.gentoo.org/glsa/201708-06
- https://bugzilla.redhat.com/show_bug.cgi?id=1446063
- https://git.ghostscript.com/?p=ghostpdl.git%3Ba=commit%3Bh=04b37bbce174eed24edec7ad5b920eb93db4d47d
- https://bugs.ghostscript.com/show_bug.cgi?id=697808
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.