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 : 2019-10-02
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 CWE id is not defined for this vulnerability

- 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 9.00 Version Details Vulnerabilities
2 Application Artifex Ghostscript 9.01 Version Details Vulnerabilities
3 Application Artifex Ghostscript 9.02 Version Details Vulnerabilities
4 Application Artifex Ghostscript 9.04 Version Details Vulnerabilities
5 Application Artifex Ghostscript 9.05 Version Details Vulnerabilities
6 Application Artifex Ghostscript 9.06 Version Details Vulnerabilities
7 Application Artifex Ghostscript 9.07 Version Details Vulnerabilities
8 Application Artifex Ghostscript 9.09 Version Details Vulnerabilities
9 Application Artifex Ghostscript 9.10 Version Details Vulnerabilities
10 Application Artifex Ghostscript 9.14 Version Details Vulnerabilities
11 Application Artifex Ghostscript 9.15 Version Details Vulnerabilities
12 Application Artifex Ghostscript 9.16 Version Details Vulnerabilities
13 Application Artifex Ghostscript 9.18 Version Details Vulnerabilities
14 Application Artifex Ghostscript 9.19 Version Details Vulnerabilities
15 Application Artifex Ghostscript 9.20 Version Details Vulnerabilities
16 Application Artifex Ghostscript 9.21 Version Details Vulnerabilities
17 Application Artifex Ghostscript 9.22 Version Details Vulnerabilities
18 Application Artifex Ghostscript 9.23 Version Details Vulnerabilities
19 Application Artifex Ghostscript 8 64 Version Details Vulnerabilities
20 Application Artifex Gpl Ghostscript - Version Details Vulnerabilities
21 Application Artifex Gpl Ghostscript 8.01 Version Details Vulnerabilities
22 Application Artifex Gpl Ghostscript 8.15 Version Details Vulnerabilities
23 Application Artifex Gpl Ghostscript 8.50 Version Details Vulnerabilities
24 Application Artifex Gpl Ghostscript 8.51 Version Details Vulnerabilities
25 Application Artifex Gpl Ghostscript 8.54 Version Details Vulnerabilities
26 Application Artifex Gpl Ghostscript 8.56 Version Details Vulnerabilities
27 Application Artifex Gpl Ghostscript 8.57 Version Details Vulnerabilities
28 Application Artifex Gpl Ghostscript 8.60 Version Details Vulnerabilities
29 Application Artifex Gpl Ghostscript 8.61 Version Details Vulnerabilities
30 Application Artifex Gpl Ghostscript 8.62 Version Details Vulnerabilities
31 Application Artifex Gpl Ghostscript 8.63 Version Details Vulnerabilities
32 Application Artifex Gpl Ghostscript 8.64 Version Details Vulnerabilities
33 Application Artifex Gpl Ghostscript 8.70 Version Details Vulnerabilities
34 Application Artifex Gpl Ghostscript 8.71 Version Details Vulnerabilities
35 Application Artifex Gpl Ghostscript 9.00 Version Details Vulnerabilities
36 Application Artifex Gpl Ghostscript 9.02 Version Details Vulnerabilities
37 Application Artifex Gpl Ghostscript 9.04 Version Details Vulnerabilities
38 OS Canonical Ubuntu Linux 14.04 ~~lts~~~ Version Details Vulnerabilities
39 OS Canonical Ubuntu Linux 16.04 ~~lts~~~ Version Details Vulnerabilities
40 OS Canonical Ubuntu Linux 18.04 ~~lts~~~ Version Details Vulnerabilities
41 OS Debian Debian Linux 8.0 Version Details Vulnerabilities
42 OS Debian Debian Linux 9.0 Version Details Vulnerabilities
43 OS Redhat Enterprise Linux Desktop 6.0 Version Details Vulnerabilities
44 OS Redhat Enterprise Linux Desktop 7.0 Version Details Vulnerabilities
45 OS Redhat Enterprise Linux Server 6.0 Version Details Vulnerabilities
46 OS Redhat Enterprise Linux Server 7.0 Version Details Vulnerabilities
47 OS Redhat Enterprise Linux Server Eus 7.5 Version Details Vulnerabilities
48 OS Redhat Enterprise Linux Workstation 6.0 Version Details Vulnerabilities
49 OS Redhat Enterprise Linux Workstation 7.0 Version Details Vulnerabilities

- Number Of Affected Versions By Product

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

- References For CVE-2018-16509

https://access.redhat.com/errata/RHSA-2018:3760
REDHAT RHSA-2018:3760
https://www.debian.org/security/2018/dsa-4294
DEBIAN DSA-4294
http://www.securityfocus.com/bid/105122
BID 105122 Ghostscript Multiple Security Bypass Vulnerabilities Release Date:2019-04-26
http://git.ghostscript.com/?p=ghostpdl.git;a=commit;h=78911a01b67d590b4a91afac2e8417360b934156
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://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:2918
REDHAT RHSA-2018:2918
http://git.ghostscript.com/?p=ghostpdl.git;a=commit;h=5516c614dc33662a2afdc377159f70218e67bde5
https://www.exploit-db.com/exploits/45369/
EXPLOIT-DB 45369
http://seclists.org/oss-sec/2018/q3/142
http://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=520bb0ea7519aa3e79db78aaf0589dae02103764 CONFIRM
https://bugs.ghostscript.com/show_bug.cgi?id=699654
http://git.ghostscript.com/?p=ghostpdl.git;a=commit;h=79cccf641486a6595c43f1de1cd7ade696020a31

- 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.
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.