Live threats

All CVEs / Artifex

CVE-2017-8291Artifex Ghostscript

Remote Code Execution in Ghostscript via -dSAFER Bypass

High 7.8 KEV High EPSS

Priority
56
CVSS 3.1
7.8
EPSS
97.0%
probability of exploitation in 30 days · percentile 100
Auth required
Yes
In KEV since
May 24, 2022
CISA deadline
Jun 14, 2022
Ransomware use
Unknown
Published
Apr 27, 2017
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-843
SSVC (CISA)
Exploitation: active · Automatable: no · Technical impact: total
Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

What happens

Ghostscript versions prior to 9.21 allows bypassing the -dSAFER restriction through type confusion in .rsdparams. An attacker can execute arbitrary commands by processing a malicious .eps document containing a "/OutputFile (%pipe%" substring. This vulnerability was actively exploited in April 2017 and is confirmed by CISA as exploited in the wild.

Show the original NVD text

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.

Source text, unmodified. NVD.

Exploitation confirmed by CISA

Artifex Ghostscript allows -dSAFER bypass and remote command execution via .rsdparams type confusion with a "/OutputFile.

Action required by CISA: Apply updates per vendor instructions.

Source text, unmodified. CISA KEV.

What to do

Patch available · fixed versions: 9.21

Update Ghostscript to version 9.21 or later. Avoid processing .eps files from untrusted sources.

Vendor advisory · bugs.ghostscript.com ↗

  1. Apply the vendor's security update for Ghostscript.
  2. CISA has confirmed it is exploited: treat it as urgent. The deadline for US federal agencies was June 14, 2022.
  3. Check logs for signs of earlier exploitation.

Affected products (CPE)

VendorProductVersions
artifexghostscript< 9.21
debiandebian_linux8.0
redhatenterprise_linux_desktop6.0
redhatenterprise_linux_desktop7.0
redhatenterprise_linux_eus7.3
redhatenterprise_linux_eus7.4
redhatenterprise_linux_eus7.5
redhatenterprise_linux_eus7.6
redhatenterprise_linux_eus7.7
redhatenterprise_linux_server6.0
redhatenterprise_linux_server7.0
redhatenterprise_linux_server_aus7.3
redhatenterprise_linux_server_aus7.4
redhatenterprise_linux_server_aus7.6
redhatenterprise_linux_server_aus7.7
redhatenterprise_linux_server_tus7.3
redhatenterprise_linux_server_tus7.6
redhatenterprise_linux_server_tus7.7
redhatenterprise_linux_workstation6.0
redhatenterprise_linux_workstation7.0

Official sources

References

Links published by the sources. Open them with care.