Skip to content
Noroxi
CVE-2016-7979· NVD / CVE Program· CNA mitre

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.

CriticalCVSS 9.8 · v3.0—No exploit Fix available

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
Follow this CVE

Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.

Report tools

JSON

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

VendorProduct
artifexghostscript

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.

EcosystemPackageAffected rangeFix
Debian:12ghostscriptbefore 9.19~dfsg-3.19.19~dfsg-3.1
Debian:7ghostscriptbefore 9.05~dfsg-6.3+deb7u39.05~dfsg-6.3+deb7u3
Debian:8ghostscriptbefore 9.06~dfsg-2+deb8u39.06~dfsg-2+deb8u3
openSUSE:Tumbleweedghostscriptbefore 9.20-2.19.20-2.1
Red Hat:enterprise_linux:6::clientghostscriptbefore 0:8.70-21.el6_8.10:8.70-21.el6_8.1
Red Hat:enterprise_linux:6::clientghostscript-debuginfobefore 0:8.70-21.el6_8.10:8.70-21.el6_8.1
Red Hat:enterprise_linux:6::clientghostscript-develbefore 0:8.70-21.el6_8.10:8.70-21.el6_8.1
Red Hat:enterprise_linux:6::clientghostscript-docbefore 0:8.70-21.el6_8.10:8.70-21.el6_8.1
Red Hat:enterprise_linux:6::clientghostscript-gtkbefore 0:8.70-21.el6_8.10:8.70-21.el6_8.1
Red Hat:enterprise_linux:7::clientghostscriptbefore 0:9.07-20.el7_3.10:9.07-20.el7_3.1
Red Hat:enterprise_linux:7::clientghostscript-cupsbefore 0:9.07-20.el7_3.10:9.07-20.el7_3.1
Red Hat:enterprise_linux:7::clientghostscript-debuginfobefore 0:9.07-20.el7_3.10:9.07-20.el7_3.1
Red Hat:enterprise_linux:7::clientghostscript-develbefore 0:9.07-20.el7_3.10:9.07-20.el7_3.1
Red Hat:enterprise_linux:7::clientghostscript-docbefore 0:9.07-20.el7_3.10:9.07-20.el7_3.1
Red Hat:enterprise_linux:7::clientghostscript-gtkbefore 0:9.07-20.el7_3.10:9.07-20.el7_3.1
SUSE:Linux Enterprise Desktop 12 SP1ghostscriptbefore 9.15-11.19.15-11.1
SUSE:Linux Enterprise Software Development Kit 11 SP4ghostscript-librarybefore 8.62-32.38.18.62-32.38.1

Other 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 KEV
    90Now
  • 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 executio
    43Plan
  • 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 / packageFixed versionSource
debian:ghostscript9.19~dfsg-3.1 · Debian:12Package registry (OSV)
opensuse:ghostscript9.20-2.1 · openSUSE:TumbleweedPackage registry (OSV)
red hat:ghostscript0:9.07-20.el7_3.1 · Red Hat:enterprise_linux:7::clientPackage registry (OSV)
red hat:ghostscript-cups0:9.07-20.el7_3.1 · Red Hat:enterprise_linux:7::clientPackage registry (OSV)
red hat:ghostscript-debuginfo0:9.07-20.el7_3.1 · Red Hat:enterprise_linux:7::clientPackage registry (OSV)
red hat:ghostscript-devel0:9.07-20.el7_3.1 · Red Hat:enterprise_linux:7::clientPackage registry (OSV)
red hat:ghostscript-doc0:9.07-20.el7_3.1 · Red Hat:enterprise_linux:7::clientPackage registry (OSV)
red hat:ghostscript-gtk0:9.07-20.el7_3.1 · Red Hat:enterprise_linux:7::clientPackage registry (OSV)
suse:ghostscript9.15-11.1 · SUSE:Linux Enterprise Desktop 12 SP1Package registry (OSV)
suse:ghostscript-library8.62-32.38.1 · SUSE:Linux Enterprise Software Development Kit 11 SP4Package 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.

EPSS, last 120 days

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.

Finders, 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

CVSS 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

  1. Fix✗ → ✓

For records you follow, these changes also arrive as notifications. →

References

All records