BREACHSPIDER
CVE databaseVendorsIntelFeaturesDevelopersDocsPricingSign inStart free trial

CVE-2017-8291 in Artifex Ghostscript and 7 more products

Known-exploited (CISA) since 2022-05-24 High 7.8 Public exploit reported

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.

Affects 8 products from 3 vendors. Facts below cite their sources.

CVSS 3.17.8
EPSS97.0%
EPSS percentile100th
FixUnknown

Requires local access, low complexity, no authentication required, requires user interaction, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.

Affected products and versions

VendorProductAffected versions
Artifex Ghostscript < 9.21
Debian Debian Linux 8.0
Redhat Enterprise Linux Server 6.0 7.0
Redhat Enterprise Linux Workstation 6.0 7.0
Redhat Enterprise Linux Eus 7.3 7.4 7.5 7.6 7.7
Redhat Enterprise Linux Server Aus 7.3 7.4 7.6 7.7
Redhat Enterprise Linux Server Tus 7.3 7.6 7.7
Redhat Enterprise Linux Desktop 6.0 7.0

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

No official vendor advisory link on record. See the CVE record.

Exploitation

CISA known-exploitedYes added 2022-05-24
Public exploitReported · reference

Official 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.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2017-8291
BreachSpider IDBS-2017-GLOBAL-196490-H
CVSS vectorCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Published2017-04-27
Last modified2026-06-17
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-843: CWE-843

Analysis AI-written, not human-reviewed

CVE-2017-8291 affects Artifex Ghostscript versions up to 2017-04-26, allowing a -dSAFER bypass and remote command execution through a crafted .eps document. This vulnerability has been exploited in the wild and is listed in the KEV catalog with a high EPSS score, indicating a significant risk to affected systems.

The vulnerability can be exploited by an attacker who can provide a crafted .eps document to the Ghostscript interpreter. The document contains a specific substring that triggers a type confusion, leading to a -dSAFER bypass and potential remote command execution. The attack requires user interaction to open the malicious document.

Compensating controls AI-drafted, review before use

Implement strict file input validation and restrict the use of Ghostscript to trusted sources. Consider running Ghostscript in a sandboxed environment to limit the impact of potential exploitation.

NERC CIP: CIP-007 CIP-007-R2

IEC 62443: SR 7.6

Not validated for your network. A compensating control does not replace the vendor fix.

Questions

What is CVE-2017-8291?

CVE-2017-8291 affects Artifex Ghostscript versions up to 2017-04-26, allowing a -dSAFER bypass and remote command execution through a crafted .eps document. This vulnerability has been exploited in the wild and is listed in the KEV catalog with a high EPSS score, indicating a significant risk to affected systems.

What is the CVSS score for CVE-2017-8291?

CVE-2017-8291 has CVSS 7.8 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H. EPSS: 97.0%.

Is CVE-2017-8291 actively exploited?

Yes. CVE-2017-8291 is in the CISA known-exploited catalog (added 2022-05-24). Active exploitation confirmed. Immediate patching required.

How do I remediate CVE-2017-8291?

Priority: IMMEDIATE.

What systems are affected by CVE-2017-8291?

CVE-2017-8291 affects Artifex Ghostscript; Debian Debian Linux; Redhat Enterprise Linux Server, Enterprise Linux Workstation, Enterprise Linux Eus, Enterprise Linux Server Aus, Enterprise Linux Server Tus, Enterprise Linux Desktop.

What NERC-CIP standard applies to CVE-2017-8291?

NERC CIP CIP-007 CIP-007-R2: This CVE could allow an attacker to execute arbitrary commands on a critical system, violating the requirement for protection against unauthorized access to electronic security perimeters.

What IEC 62443 requirement maps to CVE-2017-8291?

IEC 62443 SR 7.6: This vulnerability could lead to unauthorized control of the system, which is a direct violation of the security requirement for preventing unauthorized changes to the system configuration and operation.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Artifex","product":"Ghostscript","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.