Skip to content
On CISA KEVHigh

CVE-2017-8291Ghostscript Command Injection

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.

Published Apr 27, 2017 · Updated Nov 3, 2026 · Also known as ALPINE-CVE-2017-8291, CLEANSTART-2025-IN62339, DEBIAN-CVE-2017-8291, DLA-932-1, SUSE-SU-2017:1153-1, SUSE-SU-2017:1322-1, UBUNTU-CVE-2017-8291

Key Facts

Patch immediately
  • CVE-2017-8291 is a high-severity vulnerability (CVSS 7.8 v3.1) affecting Ghostscript (Artifex), Debian Linux, Enterprise Linux Desktop (Redhat) and 22 more products.
  • It is exploited in the wild, listed in CISA KEV, Industry KEV feed, CIRCL KEV, ENISA EUVD since Apr 27, 2017. A public exploit is reported by tracking sources, but no code link is listed yet.
  • EPSS estimates a 97% probability of exploitation in the next 30 days.
  • Fixed versions are available, including Ghostscript 9.21, Ghostscript 0:8.70-23.el6_9.2, Ghostscript 0:9.07-20.el7_3.5.
  • Brandefense priority: patch immediately, because it is listed as exploited in the wild.

Scores

CVSS v3.1

7.8

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

EPSS (30-day exploit likelihood)

97%

Higher than 99.9% of all scored CVEs

Exploit maturity

Exploited (KEV)

ATLAS score

82/100

Publication score, see How it works

Exploitation Verdict

KEV listed

May 24, 2022

1853 days after publication

Federal due date

Jun 14, 2022

Overdue

Ransomware use

Not reported

Attributed actors

Exploit & Defence Guidance

Exploit maturity

Exploited (KEV)

Public exploit code

3

Proof-of-concept links

In-the-wild evidence

7

Reports of active use

Required action (CISA): Apply updates per vendor instructions.

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.

Known-Exploited Catalog Listings

CatalogAddedRemediation dueRansomware use
CISA KEVMay 24, 2022Jun 14, 2022Not reported
Industry KEV feedApr 27, 2017Jun 14, 2022Not reported
CIRCL KEVMay 24, 2022Jun 14, 2022Not reported
ENISA EUVDMay 24, 2022n/aNot reported

Required action: Apply updates per vendor instructions.

Affected Products

177 affected entries in total
ProductAffected versionsFixed in
GhostscriptArtifexSee advisory9.21
Debian LinuxDebian8.0n/a
Enterprise Linux DesktopRedhat6.0, 7.0n/a
Enterprise Linux EusRedhat7.3, 7.4, 7.5, 7.6, 7.7n/a
Enterprise Linux ServerRedhat6.0, 7.0n/a
20 more affected products in the full CVE brief

Patched Releases

Ghostscript

9.21, 0:8.70-23.el6_9.2, 0:9.07-20.el7_3.5, 8.70-23.25.amzn1, 8.70-23.el6_9.2, 9.05~dfsg-6.3+deb7u6, 9.06~dfsg-2+deb8u5, 9.07-20.el7_3.5, 9.10~dfsg-0ubuntu10.7, 9.15-11.3.1, 9.15-20.1, 9.15-22.1, 9.18~dfsg~0-0ubuntu2.4, 9.20-1.mga5, 9.20~dfsg-3.1, 9.21-2, 9.21-r0, 9.21-r2, 9.54.0-2.2

ghostscript-cups

9.07-20.el7_3.5

ghostscript-devel

8.62-32.44.1, 8.62-32.46.1, 8.70-23.25.amzn1, 8.70-23.el6_9.2, 9.07-20.el7_3.5, 9.15-11.3.1, 9.15-20.1, 9.15-22.1, 9.54.0-2.2

ghostscript-doc

8.70-23.25.amzn1, 8.70-23.el6_9.2, 9.07-20.el7_3.5

ghostscript-fonts-other

8.62-32.44.1, 8.62-32.46.1

ghostscript-fonts-rus

8.62-32.44.1, 8.62-32.46.1

ghostscript-fonts-std

8.62-32.44.1, 8.62-32.46.1

ghostscript-gtk

8.70-23.el6_9.2, 9.07-20.el7_3.5

ghostscript-ijs-devel

8.62-32.44.1, 8.62-32.46.1

ghostscript-library

8.62-32.44.1, 8.62-32.46.1

ghostscript-mini

9.15-11.3.1

ghostscript-mini-devel

9.15-11.3.1

ghostscript-omni

8.62-32.44.1, 8.62-32.46.1

ghostscript-x11

8.62-32.44.1, 8.62-32.46.1, 9.15-11.3.1, 9.15-20.1, 9.15-22.1, 9.54.0-2.2

gutenprint

5.2.10-5.1.mga5

libgimpprint

4.2.7-32.44.1, 4.2.7-32.46.1

libgimpprint-devel

4.2.7-32.44.1, 4.2.7-32.46.1

libspectre

0.2.7-5.1.mga5

rootio-ghostscript

9.20~dfsg-3.1, 9.21-r2

Timeline

  1. Publicly disclosed

    Apr 27, 2017

  2. Added to Industry KEV feed

    Apr 27, 2017

  3. Added to CISA KEV

    May 24, 2022

  4. Added to CIRCL KEV

    May 24, 2022

  5. Added to ENISA EUVD

    May 24, 2022

  6. Last updated

    Nov 3, 2026

Weakness Type

  • CWE-77 Improper Neutralization of Special Elements used in a Command
  • CWE-843 Access of Resource Using Incompatible Type

References

15 more references in the full CVE brief

FAQ

Common Questions.

Is CVE-2017-8291 On Your Attack Surface?

Brandefense matches it against the products discovered on your perimeter and opens a finding the day a CVE like this is listed.

Request A Demo

More vulnerabilities

Figures as of Dec 2, 2026. Compiled by Brandefense technologies from public vulnerability catalogs; scoring as described in How it works.

To report an error, contact Brandefense.