# 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.

- Page: https://www.vulneraibility.com/cve/CVE-2017-8291
- CVSS: 7.8
- Known exploited: yes, in CISA KEV since 2022-05-24; CISA due date 2022-06-14
- EPSS: 96.97% (percentile 99.9)
- Public exploit code: 2 on Exploit-DB · 1 Metasploit module · 2 GitHub proofs of concept (first 2017-05-02)
- CISA SSVC: exploitation active, automatable no, technical impact total (assessed 2025-02-04)
- Weakness: CWE-843
- Published: 2017-04-27

## Affected

- artifex:ghostscript
- debian:debian_linux
- redhat:enterprise_linux_desktop
- redhat:enterprise_linux_eus
- redhat:enterprise_linux_server
- redhat:enterprise_linux_server_aus
- redhat:enterprise_linux_server_tus
- redhat:enterprise_linux_workstation

## References

- [advisory] http://www.debian.org/security/2017/dsa-3838
- [other] https://bugzilla.suse.com/show_bug.cgi?id=1036453
- [advisory] https://access.redhat.com/errata/RHSA-2017:1230
- [other] http://www.securityfocus.com/bid/98476
- [exploit] https://www.exploit-db.com/exploits/41955/
- [other] http://openwall.com/lists/oss-security/2017/04/28/2
- [advisory] https://security.gentoo.org/glsa/201708-06
- [other] https://bugzilla.redhat.com/show_bug.cgi?id=1446063
- [other] https://git.ghostscript.com/?p=ghostpdl.git%3Ba=commit%3Bh=04b37bbce174eed24edec7ad5b920eb93db4d47d
- [other] https://bugs.ghostscript.com/show_bug.cgi?id=697808
- [other] https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2017-8291

---
Summary, impact and action are written by the vulneraibility.com AI analysis pipeline from the CVE record, NVD, CISA and FIRST data; verify against the references.
