Actively exploited · Published Apr 27, 2017 · Assigned by mitre
CVE-2017-8291
High 7.8 Exploited
In plain English
A high-severity type confusion in Ghostscript from Artifex. Attackers are actively exploiting it in the wild (listed by CISA on May 24, 2022). The chance it is exploited in the next 30 days is estimated at 97.0% (higher than 99.9% of all known vulnerabilities). Ready-made attack tooling exists: Metasploit, public proof-of-concept code. Fixed versions are available - upgrade the affected package.
CISA guidance
Apply updates per vendor instructions.
Federal agencies must remediate by Jun 14, 2022.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | ghostscript | 9.21-r2 | ALPINE-CVE-2017-8291 |
| Alpine:v3.21 | ghostscript | 9.21-r2 | ALPINE-CVE-2017-8291 |
| Alpine:v3.22 | ghostscript | 9.21-r2 | ALPINE-CVE-2017-8291 |
| Alpine:v3.23 | ghostscript | 9.21-r2 | ALPINE-CVE-2017-8291 |
| Alpine:v3.24 | ghostscript | 9.21-r2 | ALPINE-CVE-2017-8291 |
| Debian:12 | ghostscript | 9.20~dfsg-3.1 | DEBIAN-CVE-2017-8291 |
| Debian:13 | ghostscript | 9.20~dfsg-3.1 | DEBIAN-CVE-2017-8291 |
| Debian:14 | ghostscript | 9.20~dfsg-3.1 | DEBIAN-CVE-2017-8291 |
Affected products (as reported)
Weakness: CWE-843 · Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
References
- DSA-3838 vendor-advisory, x_refsource_DEBIAN
- https://bugzilla.suse.com/show_bug.cgi?id=1036453 x_refsource_MISC
- RHSA-2017:1230 vendor-advisory, x_refsource_REDHAT
- 98476 vdb-entry, x_refsource_BID
- 41955 exploit, x_refsource_EXPLOIT-DB
- http://openwall.com/lists/oss-security/2017/04/28/2 x_refsource_MISC
- GLSA-201708-06 vendor-advisory, x_refsource_GENTOO
- https://bugzilla.redhat.com/show_bug.cgi?id=1446063 x_refsource_MISC
- https://git.ghostscript.com/?p=ghostpdl.git%3Ba=commit%3Bh=04b37bbce174eed24edec7ad5b920eb93db4d47d x_refsource_CONFIRM
- https://bugs.ghostscript.com/show_bug.cgi?id=697808 x_refsource_MISC
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2017-8291 government-resource