Overly broad permissions can turn one compromised account into a much larger security problem. Learn how to reduce unnecessary access, review privileges, and apply least privilege across modern Linux systems. Review Linux Privileges×

Alerts This Week
Warning Icon 1 464
Alerts This Week
Warning Icon 1 464

Red Hat 7: RHSA-2017:0013-01 Moderate: Ghostscript Code Execution Risk

red hat
Calendar Grey January 4, 2017
Scroller Redhat
A critical Ghostscript patch for CentOS has been released, rectifying various vulnerabilities. Ensure you implement the updates for enhanced security.
An update for ghostscript is now available for Red Hat Enterprise Linux 7

Solution

For details on how to apply this update, which includes the changes described in this advisory, refer to:

https://access.redhat.com/articles/11258

Summary

The Ghostscript suite contains utilities for rendering PostScript and PDF documents. Ghostscript translates PostScript code to common bitmap formats so that the code can be displayed or printed.
Security Fix(es):
* It was found that the ghostscript functions getenv, filenameforall and .libfile did not honor the -dSAFER option, usually used when processing untrusted documents, leading to information disclosure. A specially crafted postscript document could read environment variable, list directory and retrieve file content respectively, from the target. (CVE-2013-5653, CVE-2016-7977)
* It was found that the ghostscript function .setdevice suffered a use-after-free vulnerability due to an incorrect reference count. A specially crafted postscript document could trigger code execution in the context of the gs process. (CVE-2016-7978)
* It was found that the ghostscript function .initialize_dsc_parser did not validate its parameter before using it, allowing a type confusion flaw. A specially crafted postscript document could cause a crash code execution in the context of the gs process. (CVE-2016-7979)
* It was found that ghostscript did not sufficiently check the validity of parameters given to the .sethalftone5 function. A specially crafted postscript document could cause a crash, or execute arbitrary code in the context of the gs process. (CVE-2016-8602)

References

https://access.redhat.com/security/cve/CVE-2013-5653 https://access.redhat.com/security/cve/CVE-2016-7977 https://access.redhat.com/security/cve/CVE-2016-7978 https://access.redhat.com/security/cve/CVE-2016-7979 https://access.redhat.com/security/cve/CVE-2016-8602 https://access.redhat.com/security/updates/classification/#moderate

Package List

Red Hat Enterprise Linux Client (v. 7):
Source: ghostscript-9.07-20.el7_3.1.src.rpm
x86_64: ghostscript-9.07-20.el7_3.1.i686.rpm ghostscript-9.07-20.el7_3.1.x86_64.rpm ghostscript-cups-9.07-20.el7_3.1.x86_64.rpm ghostscript-debuginfo-9.07-20.el7_3.1.i686.rpm ghostscript-debuginfo-9.07-20.el7_3.1.x86_64.rpm
Red Hat Enterprise Linux Client Optional (v. 7):
noarch: ghostscript-doc-9.07-20.el7_3.1.noarch.rpm
x86_64: ghostscript-debuginfo-9.07-20.el7_3.1.i686.rpm ghostscript-debuginfo-9.07-20.el7_3.1.x86_64.rpm ghostscript-devel-9.07-20.el7_3.1.i686.rpm ghostscript-devel-9.07-20.el7_3.1.x86_64.rpm ghostscript-gtk-9.07-20.el7_3.1.x86_64.rpm
Red Hat Enterprise Linux ComputeNode (v. 7):
Source: ghostscript-9.07-20.el7_3.1.src.rpm
x86_64: ghostscript-9.07-20.el7_3.1.i686.rpm ghostscript-9.07-20.el7_3.1.x86_64.rpm ghostscript-cups-9.07-20.el7_3.1.x86_64.rpm ghostscript-debuginfo-9.07-20.el7_3.1.i686.rpm ghostscript-debuginfo-9.07-20.el7_3.1.x86_64.rpm
Red Hat Enterprise Linux ComputeNode Optional (v. 7):
noarch: ghostscript-doc-9.07-20.el7_3.1.noarch.rpm
x86_64: ghostscript-debuginfo-9.07-20.el7_3.1.i686.rpm ghostscript-debuginfo-9.07-20.el7_3.1.x86_64.rpm ghostscript-devel-9.07-20.el7_3.1.i686.rpm ghostscript-devel-9.07-20.el7_3.1.x86_64.rpm ghostscript-gtk-9.07-20.el7_3.1.x86_64.rpm


Read the Full Advisory


Severity
important
Lowest
Low
Medium
High
Critical

Advisory ID: RHSA-2017:0013-01
Product: Red Hat Enterprise Linux
Issue date: 2017-01-04

Topic

An update for ghostscript is now available for Red Hat Enterprise Linux 7.Red Hat Product Security has rated this update as having a security impactof Moderate. A Common Vulnerability Scoring System (CVSS) base score, whichgives a detailed severity rating, is available for each vulnerability fromthe CVE link(s) in the References section.

Relevant Releases Architectures

Red Hat Enterprise Linux Client (v. 7) - x86_64

Red Hat Enterprise Linux Client Optional (v. 7) - noarch, x86_64

Red Hat Enterprise Linux ComputeNode (v. 7) - x86_64

Red Hat Enterprise Linux ComputeNode Optional (v. 7) - noarch, x86_64

Red Hat Enterprise Linux Server (v. 7) - aarch64, ppc64, ppc64le, s390x, x86_64

Red Hat Enterprise Linux Server Optional (v. 7) - aarch64, noarch, ppc64, ppc64le, s390x, x86_64

Red Hat Enterprise Linux Workstation (v. 7) - x86_64

Red Hat Enterprise Linux Workstation Optional (v. 7) - noarch, x86_64

Bugs Fixed

1380327 - CVE-2013-5653 ghostscript: getenv and filenameforall ignore -dSAFER

1380415 - CVE-2016-7977 ghostscript: .libfile does not honor -dSAFER

1382300 - CVE-2016-7978 ghostscript: reference leak in .setdevice allows use-after-free and remote code execution

1382305 - CVE-2016-7979 ghostscript: Type confusion in .initialize_dsc_parser allows remote code execution

1383940 - CVE-2016-8602 ghostscript: check for sufficient params in .sethalftone5

Get the latest News and Insights

Get the latest Linux and open source security news straight to your inbox.