Ghostscript -dSAFER bypass and remote command execution
CVE-2017-8291Known exploitedHigh
Ghostscript contains a type confusion flaw in how it handles the .rsdparams parameter when processing EPS documents. An attacker can craft a malicious EPS file containing a /OutputFile parameter with a %pipe% substring that bypasses the -dSAFER security restriction and executes arbitrary commands. The attacker needs only to provide the crafted EPS file as input to the gs program.
Plain English summary of the NVD and CISA text, checked by machine against both.
Scores and dates
- Added to KEV
- 24 May 2022
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Detail
Artifex Ghostscript. CISA required action: Apply updates per vendor instructions.
Weakness: CWE-843 (opens in a new tab)
Affected versions
- artifex ghostscript: before 9.21
- debian debian linux: 8.0
- redhat enterprise linux desktop: 6.0
- redhat enterprise linux desktop: 7.0
- redhat enterprise linux eus: 7.3
- redhat enterprise linux eus: 7.4
- redhat enterprise linux eus: 7.5
- redhat enterprise linux eus: 7.6
- redhat enterprise linux eus: 7.7
- redhat enterprise linux server: 6.0
- redhat enterprise linux server: 7.0
- redhat enterprise linux server aus: 7.3
- redhat enterprise linux server aus: 7.4
- redhat enterprise linux server aus: 7.6
- redhat enterprise linux server aus: 7.7
- redhat enterprise linux server tus: 7.3
- redhat enterprise linux server tus: 7.6
- redhat enterprise linux server tus: 7.7
- redhat enterprise linux workstation: 6.0
- redhat enterprise linux workstation: 7.0