CVE-2016-7979: Incorrect Type Cast
.initializedscparser doesn't validate the parameter is a dict type before using it.
This is a security issue, because it can be abused to escape the -dSAFER sandbox.
This allows a Denial of Service, arbitrary code execution.
Upstream bug : - Bug 697190 - .initializedscparser doesn't validate the parameter is a dict type before using it. http://bugs.ghostscript.com/showbug.cgi?id=697190
Upstream patch : - DSC parser - validate parameters http://git.ghostscript.com/?p=ghostpdl.git;h=875a0095f37626a721c7ff57d606a0f95af03913
Reference : http://seclists.org/oss-sec/2016/q4/37
Other sources
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 .initializedscparser.
— MITRE
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-7979?
CVE-2016-7979 is rated as a critical vulnerability due to the potential for remote code execution.
How can I fix CVE-2016-7979?
To fix CVE-2016-7979, upgrade to Ghostscript version 9.21 or later.
What software is affected by CVE-2016-7979?
CVE-2016-7979 affects all versions of Ghostscript up to and including 9.20.
What types of attacks are possible with CVE-2016-7979?
CVE-2016-7979 allows remote attackers to execute arbitrary code by bypassing the SAFER mode protection.
What is the nature of the vulnerability in CVE-2016-7979?
CVE-2016-7979 involves type confusion in the .initialize_dsc_parser component of Ghostscript.