# What is CVE-2017-8291?

> CVE-2017-8291 is a high-severity flaw (CVSS 7.8) in Ghostscript from Artifex, published on 27 April 2017. It is on the list of flaws known to be exploited, so criminals are already using it. The latest forecast puts its chance of use in the next 30 days at 97%. If you run an affected version, patch it first.

Canonical page: https://www.precursorintelligence.com/what-is/cve-2017-8291

## At a glance

- **Verdict:** Fix this now. Attackers are using this flaw today. If you run an affected version, it goes to the top of your list.
- **Precursor Intelligence risk score:** 78 out of 100 (High); action: Emergency patch. Kept up to date as the evidence changes.
- **Severity:** High (CVSS 7.8 out of 10)
- **Known to be exploited:** Yes, it is on the government list of flaws known to be exploited
- **Chance of use in the next 30 days:** 97% (latest exploit-likelihood forecast)
- **Published:** 27 April 2017
- **Record last updated:** 22 October 2025
- **Main product:** Ghostscript from Artifex
- **Affected products:** 8

## What is CVE-2017-8291? In plain terms

An attacker has to be already on the device without logging in, but a person has to take an action first. If it works, the attacker can read data, change data and take it offline.

### The 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.

### What kind of flaw is it?

- CWE-843: Access of Resource Using Incompatible Type ('Type Confusion')

### How an attack on it works

- Where an attacker can be: Already on the device
- How hard it is to pull off: Easy: no special conditions
- Login needed first: No login needed
- Does someone have to click: Yes, a person has to take an action
- What an attacker gets: Can read data, change data and take it offline

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

## Is CVE-2017-8291 being exploited? Yes

Attackers are already using it. It is on the government list of flaws known to be exploited, and the latest forecast puts the chance of it being used in the next 30 days at 97%.

Exploit likelihood over the last 7 days: 97%, 97%, 97%, 97%, 97%, 97%, 97%.

### Timeline

- 27 April 2017: Published
- 22 October 2025: Record last updated

### How Precursor Intelligence ranks it

CVE-2017-8291 scores **78 out of 100 (High)**, with the action "Emergency patch".

Every published flaw gets a risk score from 0 to 100, kept up to date as the evidence changes. Four things go into the score, from the one that counts most to the ones that count less:

- Evidence it is being exploited: biggest factor
- How severe it is: strong factor
- How widely exposed it is: smaller factor
- Threat activity around it: smaller factor

85 and above is Critical. Anything confirmed as exploited is always marked for an emergency patch, whatever its score. When this flaw matches software you track, it lands in your list with its score and the reasons behind it.

## Who is affected by CVE-2017-8291?

The published record lists 8 products. Versions are as published: "before 9.21" means every version up to, but not including, 9.21.

- [Ghostscript](https://www.precursorintelligence.com/product/artifex/ghostscript) by [Artifex](https://www.precursorintelligence.com/vendors/artifex) (Application): before 9.21
- [Enterprise Linux Eus](https://www.precursorintelligence.com/product/redhat/enterprise_linux_eus) by [Red Hat](https://www.precursorintelligence.com/vendors/redhat) (Operating system): 7.3, 7.4, 7.5, 7.6, 7.7
- [Enterprise Linux Server Aus](https://www.precursorintelligence.com/product/redhat/enterprise_linux_server_aus) by [Red Hat](https://www.precursorintelligence.com/vendors/redhat) (Operating system): 7.3, 7.4, 7.6, 7.7
- [Enterprise Linux Server Tus](https://www.precursorintelligence.com/product/redhat/enterprise_linux_server_tus) by [Red Hat](https://www.precursorintelligence.com/vendors/redhat) (Operating system): 7.3, 7.6, 7.7
- [Enterprise Linux Desktop](https://www.precursorintelligence.com/product/redhat/enterprise_linux_desktop) by [Red Hat](https://www.precursorintelligence.com/vendors/redhat) (Operating system): 6.0, 7.0
- [Enterprise Linux Server](https://www.precursorintelligence.com/product/redhat/enterprise_linux_server) by [Red Hat](https://www.precursorintelligence.com/vendors/redhat) (Operating system): 6.0, 7.0
- [Enterprise Linux Workstation](https://www.precursorintelligence.com/product/redhat/enterprise_linux_workstation) by [Red Hat](https://www.precursorintelligence.com/vendors/redhat) (Operating system): 6.0, 7.0
- [Debian Linux](https://www.precursorintelligence.com/product/debian/debian_linux) by [Debian](https://www.precursorintelligence.com/vendors/debian) (Operating system): 8.0

## How do I fix CVE-2017-8291?

1. **Check whether you run it.** Compare your versions with the affected products above. Not sure what you run? Precursor Intelligence can work it out from your public website, or you can pick it from a list.
2. **Apply the vendor’s fix.** Install the update named in the vendor’s advisory. We’ve put the advisories and patch notes first in the list.
3. **If you can’t patch today.** Follow any mitigation the vendor publishes, and limit who can reach the affected system from the internet until the update is in.
4. **Check it wasn’t used before you patched.** Because criminals are already using this flaw, look for signs of a break-in on affected systems using the vendor’s guidance.

### References

- [openwall.com](http://openwall.com/lists/oss-security/2017/04/28/2) (Mailing list, Patch, Third-party advisory)
- [bugzilla.redhat.com](https://bugzilla.redhat.com/show_bug.cgi?id=1446063) (Issue tracking, Patch, Third-party advisory, Vulnerability database)
- [debian.org](http://www.debian.org/security/2017/dsa-3838) (Mailing list, Third-party advisory)
- [securityfocus.com](http://www.securityfocus.com/bid/98476) (Broken link, Third-party advisory, Vulnerability database)
- [access.redhat.com](https://access.redhat.com/errata/RHSA-2017:1230) (Third-party advisory)
- [bugs.ghostscript.com](https://bugs.ghostscript.com/show_bug.cgi?id=697808) (Issue tracking, Third-party advisory, Vulnerability database)
- [bugzilla.suse.com](https://bugzilla.suse.com/show_bug.cgi?id=1036453) (Exploit, Issue tracking, Third-party advisory, Vulnerability database)
- [git.ghostscript.com](https://git.ghostscript.com/?p=ghostpdl.git%3Ba=commit%3Bh=04b37bbce174eed24edec7ad5b920eb93db4d47d) (Broken link)
- [security.gentoo.org](https://security.gentoo.org/glsa/201708-06) (Third-party advisory)
- [exploit-db.com](https://www.exploit-db.com/exploits/41955/) (Exploit, Third-party advisory, Vulnerability database)
- [cisa.gov](https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2017-8291)

## Questions

### What is CVE-2017-8291?

CVE-2017-8291 is a high-severity flaw in Ghostscript from Artifex, published on 27 April 2017. An attacker has to be already on the device without logging in, but a person has to take an action first. If it works, the attacker can read data, change data and take it offline.

### How serious is CVE-2017-8291?

It scores 7.8 out of 10 on the CVSS severity scale, which is high. Our risk score for CVE-2017-8291 is 78 out of 100, which is High. Its action is "Emergency patch". Attackers are using this flaw today. If you run an affected version, it goes to the top of your list.

### Is CVE-2017-8291 being exploited?

Attackers are already using it. It is on the government list of flaws known to be exploited, and the latest forecast puts the chance of it being used in the next 30 days at 97%.

### Which versions does CVE-2017-8291 affect?

For Ghostscript from Artifex: before 9.21. The record lists 8 products in all, each with its versions, under "Who is affected" on this page.

### How do I fix CVE-2017-8291?

Install the update the vendor names in its advisory, linked first under "How do I fix" on this page. If you can't patch today, follow the vendor's mitigation and limit who can reach the affected system from the internet. Because criminals are already using it, also check affected systems for signs of a break-in.

## Does CVE-2017-8291 affect you?

Precursor Intelligence keeps checking for you:

- **Tell us what you run.** Pick your software from a list, or let us work it out from your website.
- **We match it to every flaw.** Over 400,000 published flaws, checked against your list.
- **Ranked by real-world risk.** Every flaw gets a 0 to 100 risk score, kept up to date, led by evidence criminals are using it.
- **Told as soon as we know.** An alert by email, in the app or by webhook to your own tools.

Start free (no card, nothing to install): https://www.precursorintelligence.com/register
Book a demo: https://www.precursorintelligence.com/contact

