CVE-2017-8291
CONFIRMED EXPLOITEDArtifex Ghostscript Type Confusion Vulnerability
Is Artifex Ghostscript affected by CVE-2017-8291?
Artifex Ghostscript is listed in the CISA Known Exploited Vulnerabilities catalog for CVE-2017-8291, added on 2022-05-24. CISA only adds a CVE once it has evidence of exploitation in the wild, so the patching question is not whether it can be attacked but how soon your instances must be updated.
Affected products published by NIST NVD (20 vulnerable CPE entries): artifex ghostscript, debian debian_linux, redhat enterprise_linux_desktop, redhat enterprise_linux_eus, redhat enterprise_linux_server and redhat enterprise_linux_server_aus and 2 further CPE product entries.
Published CPE version bounds mark releases below 9.21 as vulnerable. Those bounds describe what is affected, not what patches it: upgrade to the fixed release named in the vendor advisory below, then confirm the installed version with your package manager or scanner.
The CISA remediation deadline for this entry is 2022-06-14.
RELATED VULNERABILITY DOSSIERS
Other catalog entries that share this product, vendor, or weakness, or that sit next to this advisory in the CISA KEV timeline.
- CVE-2026-85046Shared weaknessGoogle Chromium V8
Google Chromium V8 Type Confusion Vulnerability
- CVE-2026-21519Shared weaknessMicrosoft Windows
Microsoft Windows Type Confusion Vulnerability
- CVE-2025-13223Shared weaknessGoogle Chromium V8
Google Chromium V8 Type Confusion Vulnerability
- CVE-2025-10585Shared weaknessGoogle Chromium V8
Google Chromium V8 Type Confusion Vulnerability
- CVE-2017-18362Neighboring entryKaseya Virtual System/Server Administrator (VSA)
Kaseya VSA SQL Injection Vulnerability
- CVE-2017-8543Neighboring entryMicrosoft Windows
Microsoft Windows Search Remote Code Execution Vulnerability
1. VULNERABILITY OVERVIEW & TECHNICAL MECHANISM
Artifex Ghostscript allows -dSAFER bypass and remote command execution via .rsdparams type confusion with a "/OutputFile.
Get Stack Watch email when a KEV hits your stack ($99/year or $12/month)
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.
2. AFFECTED VERSIONS, PRODUCTS & VERIFIED CPE CONFIGURATIONS
3. EXPLOITATION EVIDENCE, IMPACT & HOW TO DETECT IT
This vulnerability was added to the CISA Known Exploited Vulnerabilities (KEV) catalog on 2022-05-24. Inclusion in KEV requires verified evidence of active exploitation in the wild. Known ransomware campaign use is recorded by CISA as: "Unknown".
Note: KEV inclusion confirms that threat actors have exploited this flaw in real-world incidents; it does not imply every deployment of Ghostscript has been compromised.
- CVSS vector indicates high impact to Confidentiality (C:H), Integrity (I:H), and Availability (A:H) of the affected component.
- Kernel / local privilege surface (Artifex Ghostscript): monitor endpoint syscall and process telemetry (`Linux auditd`, `Tetragon` eBPF LSM/kprobe policies, Windows Security Event IDs 4672/4688 & Sysmon, `Velociraptor` VQL) for unexpected UID/token elevation, namespace escapes, or unauthorized child processes.
- Inventory all hosts running Artifex Ghostscript and compare installed package/build versions against the NVD CPE configurations and vendor advisory below.
4. FIXED VERSION, MITIGATIONS & OFFICIAL ADVISORY CITATIONS
Apply updates per vendor instructions.
- http://openwall.com/lists/oss-security/2017/04/28/2Mailing ListPatchThird Party Advisory
- http://www.debian.org/security/2017/dsa-3838Mailing ListThird Party Advisory
- http://www.securityfocus.com/bid/98476Broken LinkThird Party AdvisoryVDB Entry
- https://access.redhat.com/errata/RHSA-2017:1230Third Party Advisory
- https://bugs.ghostscript.com/show_bug.cgi?id=697808Issue TrackingThird Party AdvisoryVDB Entry
- https://bugzilla.redhat.com/show_bug.cgi?id=1446063Issue TrackingPatchThird Party Advisory
- https://bugzilla.suse.com/show_bug.cgi?id=1036453ExploitIssue TrackingThird Party Advisory
- https://git.ghostscript.com/?p=ghostpdl.git%3Ba=commit%3Bh=04b37bbce174eed24edec7ad5b920eb93db4d47dBroken Link
- https://security.gentoo.org/glsa/201708-06Third Party Advisory
- https://www.exploit-db.com/exploits/41955/ExploitThird Party AdvisoryVDB Entry
- http://openwall.com/lists/oss-security/2017/04/28/2Mailing ListPatchThird Party Advisory
- http://www.debian.org/security/2017/dsa-3838Mailing ListThird Party Advisory
- http://www.securityfocus.com/bid/98476Broken LinkThird Party AdvisoryVDB Entry
- https://access.redhat.com/errata/RHSA-2017:1230Third Party Advisory
- https://bugs.ghostscript.com/show_bug.cgi?id=697808Issue TrackingThird Party AdvisoryVDB Entry
- https://bugzilla.redhat.com/show_bug.cgi?id=1446063Issue TrackingPatchThird Party Advisory
- https://bugzilla.suse.com/show_bug.cgi?id=1036453ExploitIssue TrackingThird Party Advisory
- https://git.ghostscript.com/?p=ghostpdl.git%3Ba=commit%3Bh=04b37bbce174eed24edec7ad5b920eb93db4d47dBroken Link
- https://security.gentoo.org/glsa/201708-06Third Party Advisory
- https://www.exploit-db.com/exploits/41955/ExploitThird Party AdvisoryVDB Entry
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2017-8291US Government Resource
SCORING & VECTOR TELEMETRY
Primary assessment authored by NIST NVD (nvd@nist.gov).
EPSS estimates the statistical probability of exploitation activity in the next 30 days—it is not proof of confirmed exploitation.
RELEVANT DEFENSIVE TOOLS
Curated open-source defensive and verification utilities from The Loot applicable to this asset class:
Endpoint visibility, digital forensics, and incident response (DFIR) platform
Network security monitoring (NSM) and protocol metadata extraction framework
Multi-threaded IDS, IPS, and network security monitoring engine
VirusTotal's memory-safe Rust rewrite of YARA for binary & implant hunting