cve.bz

CVE-2017-8291 Artifex Ghostscript Type Confusion Vulnerability

7.8 highKEVExploitEPSS 97%Fix available

High (7.8) in Artifex Ghostscript. In CISA KEV since 2022-05-24. EPSS 97% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

7.8 high
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS
97% (unchanged from 97% a week ago; 97% 30 days ago) estimated probability of exploitation activity in the next 30 days; 100th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA KEV
listed 2022-05-24, due 2022-06-14
CISA's assessment (SSVC)
Exploitation: active · Automatable: no · Technical impact: total, assessed 2025-02-04. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-843 Access of Resource Using Incompatible Type (Type Confusion)
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2017-8291 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2017-8291?via=ask-ai-copy and https://cve.bz/cve/CVE-2017-8291?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2017-8291 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
artifex:ghostscriptbefore 9.21
debian:debian_linux8.0
redhat:enterprise_linux_desktop6.0
redhat:enterprise_linux_desktop7.0
redhat:enterprise_linux_eus7.3
redhat:enterprise_linux_eus7.4
redhat:enterprise_linux_eus7.5
redhat:enterprise_linux_eus7.6
redhat:enterprise_linux_eus7.7
redhat:enterprise_linux_server6.0
redhat:enterprise_linux_server7.0
redhat:enterprise_linux_server_aus7.3
redhat:enterprise_linux_server_aus7.4
redhat:enterprise_linux_server_aus7.6
redhat:enterprise_linux_server_aus7.7
redhat:enterprise_linux_server_tus7.3
redhat:enterprise_linux_server_tus7.6
redhat:enterprise_linux_server_tus7.7
redhat:enterprise_linux_workstation6.0
redhat:enterprise_linux_workstation7.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian7ghostscript9.05~dfsg-6.3+deb7u6DLA-932-1
Debian8ghostscript9.06~dfsg-2+deb8u5DSA-3838-1
Debian12, 13, 14ghostscript9.20~dfsg-3.1DEBIAN-CVE-2017-8291
Ubuntu14.04:LTSghostscript9.10~dfsg-0ubuntu10.7UBUNTU-CVE-2017-8291 USN-3272-1
Ubuntu16.04:LTSghostscript9.18~dfsg~0-0ubuntu2.4UBUNTU-CVE-2017-8291 USN-3272-1
Red Hatenterprise_linux:6::client, enterprise_linux:6::computenode, enterprise_linux:6::server and 1 moreghostscript, ghostscript-doc, ghostscript-gtk and 2 more0:8.70-23.el6_9.2RHSA-2017:1230
Red Hatenterprise_linux:7::client, enterprise_linux:7::computenode, enterprise_linux:7::server and 1 moreghostscript, ghostscript-doc, ghostscript-gtk and 3 more0:9.07-20.el7_3.5RHSA-2017:1230
SUSELinux Enterprise Desktop 12 SP1, Linux Enterprise Desktop 12 SP2, Linux Enterprise Server 12 SP1 and 8 moreghostscript9.15-22.1SUSE-SU-2017:1404-1
SUSELinux Enterprise Desktop 12 SP1, Linux Enterprise Desktop 12 SP2, Linux Enterprise Server 12 SP1 and 6 moreghostscript9.15-20.1SUSE-SU-2017:1138-1
SUSELinux Enterprise Point of Sale 11 SP3, Linux Enterprise Server 11 SP3-LTSS, Linux Enterprise Server 11 SP3-TERADATA and 4 moreghostscript-library8.62-32.46.1SUSE-SU-2017:1322-1
SUSELinux Enterprise Server 11 SP4, Linux Enterprise Server for SAP Applications 11 SP4, Linux Enterprise Software Development Kit 11 SP4ghostscript-library8.62-32.44.1SUSE-SU-2017:1153-1
openSUSETumbleweedghostscript9.54.0-2.2openSUSE-SU-2024:10783-1
Alpinev3.2, v3.3, v3.4 and 1 moreghostscript9.21-r0ALPINE-CVE-2017-8291
Alpinev3.6, v3.7, v3.8 and 16 moreghostscript9.21-r2ALPINE-CVE-2017-8291

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Important.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 6ghostscript-0:8.70-23.el6_9.2Fixed 2017-05-12RHSA-2017:1230
Red Hat Enterprise Linux 7ghostscript-0:9.07-20.el7_3.5Fixed 2017-05-12RHSA-2017:1230
Red Hat Enterprise Linux 5ghostscriptWill not fix
Red Hat OpenShift Enterprise 2ghostscriptOut of support scope

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2017-8291.

Public exploits

GitHub PoC (unverified)

Repositories on GitHub named after this CVE. Nobody has checked them and they are not scanned: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it.

References

Check your stackJSON