CVE-2016-7977: Infoleak
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.
Other sources
It was found that .libfile can be used to access arbitrary files on the file system.
PoC:
http://www.openwall.com/lists/oss-security/2016/09/29/3
Upstream bug:
http://bugs.ghostscript.com/showbug.cgi?id=697169
Upstream fix: http://git.ghostscript.com/?p=user/chrisl/ghostpdl.git;a=commitdiff;h=cf046d2
— Red Hat
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 9.21
Event History
Frequently Asked Questions
What is the severity of CVE-2016-7977?
CVE-2016-7977 has been classified as a high severity vulnerability due to its ability to bypass protection mechanisms.
How do I fix CVE-2016-7977?
To fix CVE-2016-7977, you should update Ghostscript to version 9.21 or later.
What types of attacks are possible due to CVE-2016-7977?
Due to CVE-2016-7977, attackers can potentially read arbitrary files on the server by exploiting crafted postscript documents.
Which versions of Ghostscript are affected by CVE-2016-7977?
CVE-2016-7977 affects all versions of Ghostscript prior to 9.21.
Is there a workaround for CVE-2016-7977 until a fix is applied?
There is no documented effective workaround for CVE-2016-7977; updating to a safe version is the recommended approach.