Artifex Ghostscript Type Confusion
CVE-2017-8291 is a high-severity access of resource using incompatible type vulnerability in Ghostscript from Artifex, with a CVSS 3.1 base score of 7.8 out of 10. It can be exploited with local access to the system by an unauthenticated attacker, but only if a user takes part, for example by opening a link or file. The record lists version 9.21 as the first without the flaw, so updating Ghostscript to that release or later removes the exposure. CISA added it to the Known Exploited Vulnerabilities catalogue on May 24, 2022, which means attacks have been observed in the wild.
Attackers are already exploiting this vulnerability, according to CISA.
What to do
- Update Ghostscript to 9.21 or a later version.
- CISA's required action: Apply updates per vendor instructions.
- Because the attack needs a user to take part, warn users about unexpected links and files related to this product until it is patched.
Affected products and versions
| Vendor | Product | Affected versions | Fixed in |
|---|---|---|---|
| Artifex | Ghostscript | before 9.21 | 9.21 |
| Debian | Debian Linux | 8.0 | Not stated |
| Red Hat | Enterprise Linux Desktop | 6.0; 7.0 | Not stated |
| Red Hat | Enterprise Linux EUS | 7.3; 7.4; 7.5; 7.6; 7.7 | Not stated |
| Red Hat | Enterprise Linux Server | 6.0; 7.0 | Not stated |
| Red Hat | Enterprise Linux Server AUS | 7.3; 7.4; 7.6; 7.7 | Not stated |
| Red Hat | Enterprise Linux Server TUS | 7.3; 7.6; 7.7 | Not stated |
| Red Hat | Enterprise Linux Workstation | 6.0; 7.0 | Not stated |
Version data comes from NVD's product matching. Confirm against the vendor advisory before deciding you are unaffected.
How the severity score breaks down
- Attack vector
- LocalThe attacker needs local access or must trick a user into running something.
- Attack complexity
- LowNo special conditions are needed; the attack works reliably.
- Privileges required
- NoneNo account or login is needed.
- User interaction
- RequiredA user must take an action such as opening a file or link.
- Scope
- UnchangedImpact stays within the vulnerable component.
- Confidentiality
- HighAll data handled by the component can be read.
- Integrity
- HighData or code can be modified at will.
- Availability
- HighThe component can be taken down completely.
Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H. Scored by NVD.
| Scoring system | Score | Severity | Scored by |
|---|---|---|---|
| CVSS 3.1 | 7.8 | High | NVD |
| CVSS 3.1 | 7.8 | High | CISA (ADP) |
| CVSS 2.0 | 6.8 | Medium | NVD |
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: the CVE record as published by its numbering authority, via NVD and CVE.org.
The underlying weakness: Access of Resource Using Incompatible Type
The product allocates or initializes a resource such as a pointer, object, or variable using one type, but it later accesses that resource using a type that is incompatible with the original type.
More Access of Resource Using Incompatible Type vulnerabilities (CWE-843)
Timeline
- CVE record published.
- Added to CISA's Known Exploited Vulnerabilities catalogue.
- Deadline for US federal agencies to remediate, set by CISA.
- CISA published its SSVC assessment (exploitation: active, automatable: no, technical impact: total).
- Record last changed materially (score, affected products, status or references).
References
Patches and release notes
- openwall.com/lists/oss-security/2017/04/28/2Mailing List, Third Party Advisory
- bugzilla.redhat.com/show_bug.cgi?id=1446063Issue Tracking, Third Party Advisory, VDB Entry
Third-party and government advisories
- debian.org/security/2017/dsa-3838Mailing List, Third Party Advisory
- access.redhat.com/errata/RHSA-2017:1230Third Party Advisory
- bugs.ghostscript.com/show_bug.cgi?id=697808Issue Tracking, Third Party Advisory, VDB Entry
- security.gentoo.org/glsa/201708-06Third Party Advisory
- cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2017-8291US Government Resource
Technical write-ups (may include proof of concept)
- bugzilla.suse.com/show_bug.cgi?id=1036453Exploit, Issue Tracking, Third Party Advisory, VDB Entry
- exploit-db.com/exploits/41955/Exploit, Third Party Advisory, VDB Entry
Other vulnerabilities in Ghostscript
- 9.8 Critical severity
- 7.8 High severity
- 9.8 Critical severity
- 7.8 High severity
- 7.8 High severity
- 7.8 High severity
Recent Access of Resource Using Incompatible Type vulnerabilities
- 8.1 High severity
- 8.8 High severity
Microsoft Edge Memory Corruption Exploited
- 10.0 High severity
- 8.8 High severity
Adobe Flash Player Remote Code Execution Exploited
Spotted an error? Tell us.