Medium severity · published May 23, 2017
CVE-2016-7977
Ghostscript before 9.21 might allow remote attackers to bypass the SAFER mode protection mechanism and consequently read arbitrary files via the use of the .libfile operator in a…
5.5
CVSS
4.6%
EPSS
No
On KEV
Description
Ghostscript before 9.21 might allow remote attackers to bypass the SAFER mode protection mechanism and consequently read arbitrary files via the use of the .libfile operator in a crafted postscript document.
CVSS vector
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
Attack vector
Local
Complexity
Low
Privileges
None
User interaction
Required
Confidentiality
High
Integrity
None
Availability
None
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)4.6% · higher than 92% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
GH
Ghostscript · Artifex
through 9.20 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2016-7977
CVE.org
https://www.cve.org/CVERecord?id=CVE-2016-7977
git.ghostscript.com
http://git.ghostscript.com/?p=ghostpdl.git%3Ba=commitdiff%3Bh=8abd22010eb4db0fb1b10e430d5f5d83e015ef70
rhn.redhat.com
http://rhn.redhat.com/errata/RHSA-2017-0013.html
rhn.redhat.com
http://rhn.redhat.com/errata/RHSA-2017-0014.html
www.debian.org
http://www.debian.org/security/2016/dsa-3691
Mailing List
http://www.openwall.com/lists/oss-security/2016/09/29/28
Mailing List
http://www.openwall.com/lists/oss-security/2016/10/05/15
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
