CVE-2016-7979: Incorrect Type Cast

Published Oct 6, 2016
·
Updated

.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

1 affected component
Artifex ghostscript<=9.20

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 9.21

Event History

Oct 6, 2016
Data Sourced
via Red Hat·09:52 AM
DescriptionSeverityAffected Software
May 23, 2017
CVE Published
via MITRE·03:56 AM
Data Sourced
via MITRE·03:56 AM
Description

Frequently Asked Questions

1

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.

2

How can I fix CVE-2016-7979?

To fix CVE-2016-7979, upgrade to Ghostscript version 9.21 or later.

3

What software is affected by CVE-2016-7979?

CVE-2016-7979 affects all versions of Ghostscript up to and including 9.20.

4

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.

5

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203