Ghostscript before 9.21 might allow remote attackers to bypass the SAFER mode protection mechanism and consequently execute arbitrary code b
Ghostscript before 9.21 might allow remote attackers to bypass the SAFER mode protection mechanism and consequently execute arbitrary code by leveraging type confusion in .initialize_dsc_parser.
Noroxi analysis
No Noroxi analysis for this record yet
We don't hand-write analysis for the hundreds of thousands of vulnerabilities in the database; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.
We use this product, ask for help- Published
- May 23, 2017
- Updated
- Jun 16, 2026
- EPSS
- 6.4% · 93th percentile
- CWE
- CWE-704
Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.
Report tools
Action score
41
Plan
Add it to your regular patch cycle.
- CVSS
- 39 / 40 · 9.8 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 2 / 30 · 6.4%
Affected systems
| Vendor | Product | CPE |
|---|---|---|
| artifex | ghostscript | cpe:2.3:a:artifex:ghostscript |
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- artifex ghostscriptup to 9.20 inclusive
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Debian:12 | ghostscript | before 9.19~dfsg-3.1 | 9.19~dfsg-3.1 |
| Debian:7 | ghostscript | before 9.05~dfsg-6.3+deb7u3 | 9.05~dfsg-6.3+deb7u3 |
| Debian:8 | ghostscript | before 9.06~dfsg-2+deb8u3 | 9.06~dfsg-2+deb8u3 |
| openSUSE:Tumbleweed | ghostscript | before 9.20-2.1 | 9.20-2.1 |
| Red Hat:enterprise_linux:6::client | ghostscript | before 0:8.70-21.el6_8.1 | 0:8.70-21.el6_8.1 |
| Red Hat:enterprise_linux:6::client | ghostscript-debuginfo | before 0:8.70-21.el6_8.1 | 0:8.70-21.el6_8.1 |
| Red Hat:enterprise_linux:6::client | ghostscript-devel | before 0:8.70-21.el6_8.1 | 0:8.70-21.el6_8.1 |
| Red Hat:enterprise_linux:6::client | ghostscript-doc | before 0:8.70-21.el6_8.1 | 0:8.70-21.el6_8.1 |
| Red Hat:enterprise_linux:6::client | ghostscript-gtk | before 0:8.70-21.el6_8.1 | 0:8.70-21.el6_8.1 |
| Red Hat:enterprise_linux:7::client | ghostscript | before 0:9.07-20.el7_3.1 | 0:9.07-20.el7_3.1 |
| Red Hat:enterprise_linux:7::client | ghostscript-cups | before 0:9.07-20.el7_3.1 | 0:9.07-20.el7_3.1 |
| Red Hat:enterprise_linux:7::client | ghostscript-debuginfo | before 0:9.07-20.el7_3.1 | 0:9.07-20.el7_3.1 |
| Red Hat:enterprise_linux:7::client | ghostscript-devel | before 0:9.07-20.el7_3.1 | 0:9.07-20.el7_3.1 |
| Red Hat:enterprise_linux:7::client | ghostscript-doc | before 0:9.07-20.el7_3.1 | 0:9.07-20.el7_3.1 |
| Red Hat:enterprise_linux:7::client | ghostscript-gtk | before 0:9.07-20.el7_3.1 | 0:9.07-20.el7_3.1 |
| SUSE:Linux Enterprise Desktop 12 SP1 | ghostscript | before 9.15-11.1 | 9.15-11.1 |
| SUSE:Linux Enterprise Software Development Kit 11 SP4 | ghostscript-library | before 8.62-32.38.1 | 8.62-32.38.1 |
Same product
artifex: all recordsOther highest-scoring records for the same primary product.
- CVE-2017-8291Artifex Ghostscript through 2017-04-26 allows -dSAFER bypass and remote command execution via .rsdparams type confusion with a "/OutputFile KEV90Now
- CVE-2021-3781A trivial sandbox (enabled with the `-dSAFER` option) escape flaw was found in the ghostscript interpreter by injecting a specially crafted 64This week
- CVE-2018-16509An issue was discovered in Artifex Ghostscript before 9.24.59Plan
- CVE-2019-6116In Artifex Ghostscript through 9.26, ephemeral or transient procedures can allow access to system operators, leading to remote code executio43Plan
- CVE-2019-14813A flaw was found in ghostscript, versions 9.x before 9.50, in the setsystemparams procedure where it did not properly secure its privileged 42Plan
- CVE-2016-7976The PS Interpreter in Ghostscript 9.18 and 9.20 allows remote attackers to execute arbitrary code via crafted userparams.42Plan
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| debian:ghostscript | 9.19~dfsg-3.1 · Debian:12 | Package registry (OSV) |
| opensuse:ghostscript | 9.20-2.1 · openSUSE:Tumbleweed | Package registry (OSV) |
| red hat:ghostscript | 0:9.07-20.el7_3.1 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| red hat:ghostscript-cups | 0:9.07-20.el7_3.1 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| red hat:ghostscript-debuginfo | 0:9.07-20.el7_3.1 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| red hat:ghostscript-devel | 0:9.07-20.el7_3.1 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| red hat:ghostscript-doc | 0:9.07-20.el7_3.1 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| red hat:ghostscript-gtk | 0:9.07-20.el7_3.1 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| suse:ghostscript | 9.15-11.1 · SUSE:Linux Enterprise Desktop 12 SP1 | Package registry (OSV) |
| suse:ghostscript-library | 8.62-32.38.1 · SUSE:Linux Enterprise Software Development Kit 11 SP4 | Package registry (OSV) |
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).
Patch and commit links
Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.
No commit or PR link among the references.
Credits
All researchersFinders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.
No credits in the CNA record.
Variant candidates
Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.
No nightly-computed relations.
Chain candidates
An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.
—
Bug bounty scope
No known public program.
Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).
Technical details
Attack conditions
- Anyone who can reach it over the internet can trigger it.
- No account or password is required.
- No user action is required.
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- high · data can be read
- Integrity
- high · data or configuration can be modified
- Availability
- high · the service can be disrupted
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality impact
- High
- Integrity impact
- High
- Availability impact
- High
Weakness class (CWE)
CWE-704 · Incorrect Type Conversion or CastCVSS vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
nvd-primary
Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
MITRE has no CAPEC/ATT&CK mapping for this CWE.
Change log
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
- git.ghostscript.com/?p=ghostpdl.git%3Bh=875a0095f37626a721c7ff57d606a0f95af03913
- rhn.redhat.com/errata/RHSA-2017-0013.html
- rhn.redhat.com/errata/RHSA-2017-0014.html
- www.debian.org/security/2016/dsa-3691
- www.openwall.com/lists/oss-security/2016/10/05/15
- www.securityfocus.com/bid/95337
- bugs.ghostscript.com/show_bug.cgi?id=697190
- security.gentoo.org/glsa/201702-31
Vendor advisories and official records. Exploit/PoC links are deliberately left out.