Critical severity · published May 23, 2017
CVE-2016-7978
Use-after-free vulnerability in Ghostscript 9.20 might allow remote attackers to execute arbitrary code via vectors related to a reference leak in .setdevice
9.8
CVSS
5.5%
EPSS
No
On KEV
Description
Use-after-free vulnerability in Ghostscript 9.20 might allow remote attackers to execute arbitrary code via vectors related to a reference leak in .setdevice.
CVSS vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)5.5% · higher than 93% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
GH
Ghostscript · Artifex
9.20 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2016-7978
CVE.org
https://www.cve.org/CVERecord?id=CVE-2016-7978
rhn.redhat.com
http://rhn.redhat.com/errata/RHSA-2017-0013.html
www.debian.org
http://www.debian.org/security/2016/dsa-3691
Mailing List
http://www.openwall.com/lists/oss-security/2016/10/05/15
Third Party Advisory
http://www.securityfocus.com/bid/95336
Issue Tracking
https://bugs.ghostscript.com/show_bug.cgi?id=697179
security.gentoo.org
https://security.gentoo.org/glsa/201702-31
More from Ghostscript
7.8
CVE-2017-8291
Artifex Ghostscript Type Confusion Vulnerability
9.9
CVE-2021-3781
A trivial sandbox (enabled with the `-dSAFER` option) escape flaw was found in the ghostscript interpreter by injecting a specially crafted pipe command
9.8
CVE-2025-27837
An issue was discovered in Artifex Ghostscript before 10.05.0
9.8
CVE-2025-27836
An issue was discovered in Artifex Ghostscript before 10.05.0
9.8
CVE-2025-27832
An issue was discovered in Artifex Ghostscript before 10.05.0
