CVEdetails.com the ultimate security vulnerability data source
(e.g.: CVE-2009-1234 or 2010-1234 or 20101234)
Log In   Register
Vulnerability Feeds & WidgetsNew   www.itsecdb.com  

Vulnerability Details : CVE-2018-16509

An issue was discovered in Artifex Ghostscript before 9.24. Incorrect "restoration of privilege" checking during handling of /invalidaccess exceptions could be used by attackers able to supply crafted PostScript to execute code using the "pipe" instruction.
Publish Date : 2018-09-05 Last Update Date : 2018-12-04
Search Twitter   Search YouTube   Search Google

- CVSS Scores & Vulnerability Types

CVSS Score
9.3
Confidentiality Impact Complete (There is total information disclosure, resulting in all system files being revealed.)
Integrity Impact Complete (There is a total compromise of system integrity. There is a complete loss of system protection, resulting in the entire system being compromised.)
Availability Impact Complete (There is a total shutdown of the affected resource. The attacker can render the resource completely unavailable.)
Access Complexity Medium (The access conditions are somewhat specialized. Some preconditions must be satistified to exploit)
Authentication Not required (Authentication is not required to exploit the vulnerability.)
Gained Access None
Vulnerability Type(s) Execute Code
CWE ID 264

- Related OVAL Definitions

Title Definition Id Class Family
RHSA-2018:2918: ghostscript security update (Important) oval:com.redhat.rhsa:def:20182918 unix
RHSA-2018:3760: ghostscript security update (Important) oval:com.redhat.rhsa:def:20183760 unix
OVAL (Open Vulnerability and Assessment Language) definitions define exactly what should be done to verify a vulnerability or a missing patch. Check out the OVAL definitions if you want to learn what you should do to verify a vulnerability.

- Products Affected By CVE-2018-16509

# Product Type Vendor Product Version Update Edition Language
1 Application Artifex Ghostscript 8 64 Version Details Vulnerabilities
2 OS Canonical Ubuntu Linux 14.04 ~~lts~~~ Version Details Vulnerabilities
3 OS Canonical Ubuntu Linux 16.04 ~~lts~~~ Version Details Vulnerabilities
4 OS Canonical Ubuntu Linux 18.04 ~~lts~~~ Version Details Vulnerabilities
5 OS Debian Debian Linux 8.0 Version Details Vulnerabilities
6 OS Debian Debian Linux 9.0 Version Details Vulnerabilities
7 OS Redhat Enterprise Linux Desktop 7.0 Version Details Vulnerabilities
8 OS Redhat Enterprise Linux Server 7.0 Version Details Vulnerabilities
9 OS Redhat Enterprise Linux Server Eus 7.5 Version Details Vulnerabilities
10 OS Redhat Enterprise Linux Workstation 7.0 Version Details Vulnerabilities

- Number Of Affected Versions By Product

Vendor Product Vulnerable Versions
Artifex Ghostscript 1
Canonical Ubuntu Linux 3
Debian Debian Linux 2
Redhat Enterprise Linux Desktop 1
Redhat Enterprise Linux Server 1
Redhat Enterprise Linux Server Eus 1
Redhat Enterprise Linux Workstation 1

- References For CVE-2018-16509

http://seclists.org/oss-sec/2018/q3/142
https://security.gentoo.org/glsa/201811-12
GENTOO GLSA-201811-12
https://usn.ubuntu.com/3768-1/
UBUNTU USN-3768-1
https://www.artifex.com/news/ghostscript-security-resolved/
https://www.debian.org/security/2018/dsa-4294
DEBIAN DSA-4294
https://bugs.ghostscript.com/show_bug.cgi?id=699654
https://lists.debian.org/debian-lts-announce/2018/09/msg00015.html
MLIST [debian-lts-announce] 20180913 [SECURITY] [DLA 1504-1] ghostscript security update
https://access.redhat.com/errata/RHSA-2018:3760
REDHAT RHSA-2018:3760
http://git.ghostscript.com/?p=ghostpdl.git;a=commit;h=5516c614dc33662a2afdc377159f70218e67bde5
http://www.securityfocus.com/bid/105122
BID 105122 Ghostscript Multiple Security Bypass Vulnerabilities Release Date:2018-10-29
http://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=520bb0ea7519aa3e79db78aaf0589dae02103764 CONFIRM
https://access.redhat.com/errata/RHSA-2018:2918
REDHAT RHSA-2018:2918
http://git.ghostscript.com/?p=ghostpdl.git;a=commit;h=79cccf641486a6595c43f1de1cd7ade696020a31
https://www.exploit-db.com/exploits/45369/
EXPLOIT-DB 45369
http://git.ghostscript.com/?p=ghostpdl.git;a=commit;h=78911a01b67d590b4a91afac2e8417360b934156

- Metasploit Modules Related To CVE-2018-16509

Ghostscript Failed Restore Command Execution
This module exploits a -dSAFER bypass in Ghostscript to execute arbitrary commands by handling a failed restore (grestore) in PostScript to disable LockSafetyParams and avoid invalidaccess. This vulnerability is reachable via libraries such as ImageMagick, and this module provides the latest vector for Ghostscript. For previous Ghostscript vectors, please see the following modules: exploit/unix/fileformat/ghostscript_type_confusion exploit/unix/fileformat/imagemagick_delegate
Module type : exploit Rank : excellent Platforms : Unix,Linux,Windows


CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site. OVAL is a registered trademark of The MITRE Corporation and the authoritative source of OVAL content is MITRE's OVAL web site.
Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.