Skip to content
StratQuad

Threats

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

CVSS 3.1
7.8
HIGH
EPSS score
0.97
Probability of exploitation in 30 days
EPSS percentile
99th
Share of scored CVEs at or below this one
Added to KEV
24 May 2022
CISA due date
14 Jun 2022
Applies to US federal agencies

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Daily EPSS score, 3 Nov to 14 Nov, source FIRST

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