Artifex Ghostscript allows -dSAFER bypass and remote command execution via .rsdparams type confusion with a "/OutputFile.
In short
CVE-2017-8291 (Artifex Ghostscript Type Confusion) has a CVSS 3.1 base score of 7.8, rated high. CISA added it to the Known Exploited Vulnerabilities catalog on 24 May 2022. Fixed in Artifex Ghostscript 9.21 or later.
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.
CVSS 3.1 breakdown
- Attack vector
- Local
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- Required
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HAffected products
- Artifex Ghostscript< 9.21
- Debian Linux8.0
- Redhat Enterprise Linux Desktop6.0 · 7.0
- Redhat Enterprise Linux Eus7.3 · 7.4 · 7.5 · 7.6
- Redhat Enterprise Linux Server6.0 · 7.0
- Redhat Enterprise Linux Server Aus7.3 · 7.4 · 7.6 · 7.7
- Redhat Enterprise Linux Server Tus7.3 · 7.6 · 7.7
- Redhat Enterprise Linux Workstation6.0 · 7.0
Remediation
Fixed in- Artifex Ghostscript≥ 9.21
References
- http://openwall.com/lists/oss-security/2017/04/28/2
- https://access.redhat.com/errata/RHSA-2017:1230
- https://bugs.ghostscript.com/show_bug.cgi?id=697808
- https://bugzilla.redhat.com/show_bug.cgi?id=1446063
- https://bugzilla.suse.com/show_bug.cgi?id=1036453
- https://git.ghostscript.com/?p=ghostpdl.git%3Ba=commit%3Bh=04b37bbce174eed24edec7ad5b920eb93db4d47d
- https://security.gentoo.org/glsa/201708-06
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2017-8291
- https://www.exploit-db.com/exploits/41955/
- http://www.debian.org/security/2017/dsa-3838
and 1 more references
Related CVEs
Exploited and critical vulnerabilities in the same product or from the same vendor.
Data from the NVD, CISA KEV catalog and FIRST EPSS. The CVSS 4.0 base score is shown where the NVD has one, otherwise CVSS 3.1.
