Vulnerability Details : CVE-2018-16509
Public exploit exists!
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.
Vulnerability category: Execute code
Products affected by CVE-2018-16509
- cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*
- cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*
- cpe:2.3:o:redhat:enterprise_linux_desktop:6.0:*:*:*:*:*:*:*
- cpe:2.3:o:redhat:enterprise_linux_desktop:7.0:*:*:*:*:*:*:*
- cpe:2.3:o:redhat:enterprise_linux_server:6.0:*:*:*:*:*:*:*
- cpe:2.3:o:redhat:enterprise_linux_server:7.0:*:*:*:*:*:*:*
- cpe:2.3:o:redhat:enterprise_linux_workstation:6.0:*:*:*:*:*:*:*
- cpe:2.3:o:redhat:enterprise_linux_workstation:7.0:*:*:*:*:*:*:*
- cpe:2.3:o:redhat:enterprise_linux_server_eus:7.5:*:*:*:*:*:*:*
- cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:lts:*:*:*
- cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:*
- cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:*
- cpe:2.3:a:artifex:gpl_ghostscript:*:*:*:*:*:*:*:*
- cpe:2.3:a:artifex:ghostscript:*:*:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2018-16509
97.27%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 100 %
Percentile, the proportion of vulnerabilities that are scored at or less
Metasploit modules for CVE-2018-16509
-
Ghostscript Failed Restore Command Execution
Disclosure Date: 2018-08-21First seen: 2020-04-26exploit/multi/fileformat/ghostscript_failed_restoreThis 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. Au
CVSS scores for CVE-2018-16509
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
9.3
|
HIGH | AV:N/AC:M/Au:N/C:C/I:C/A:C |
8.6
|
10.0
|
NIST | |
7.8
|
HIGH | CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
1.8
|
5.9
|
NIST |
References for CVE-2018-16509
-
http://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=520bb0ea7519aa3e79db78aaf0589dae02103764
git.ghostscript.com Git - ghostpdl.git/commitdiffThird Party Advisory
-
http://www.securityfocus.com/bid/105122
Ghostscript Multiple Security Bypass VulnerabilitiesThird Party Advisory;VDB Entry
-
https://access.redhat.com/errata/RHSA-2018:3760
RHSA-2018:3760 - Security Advisory - Red Hat Customer PortalThird Party Advisory
-
https://usn.ubuntu.com/3768-1/
USN-3768-1: Ghostscript vulnerabilities | Ubuntu security noticesThird Party Advisory
-
http://seclists.org/oss-sec/2018/q3/142
oss-sec: More Ghostscript Issues: Should we disable PS coders in policy.xml by default?Exploit;Mailing List;Third Party Advisory
-
https://www.artifex.com/news/ghostscript-security-resolved/
Ghostscript security vulnerabilities resolved | ArtifexVendor Advisory
-
http://git.ghostscript.com/?p=ghostpdl.git;a=commit;h=79cccf641486a6595c43f1de1cd7ade696020a31
git.ghostscript.com Git - ghostpdl.git/commitThird Party Advisory
-
https://bugs.ghostscript.com/show_bug.cgi?id=699654
699654 – /invalidaccess checks stop working after a failed restoreIssue Tracking;Permissions Required;Third Party Advisory
-
https://access.redhat.com/errata/RHSA-2018:2918
RHSA-2018:2918 - Security Advisory - Red Hat Customer PortalThird Party Advisory
-
http://git.ghostscript.com/?p=ghostpdl.git;a=commit;h=5516c614dc33662a2afdc377159f70218e67bde5
git.ghostscript.com Git - ghostpdl.git/commitThird Party Advisory
-
https://lists.debian.org/debian-lts-announce/2018/09/msg00015.html
[SECURITY] [DLA 1504-1] ghostscript security updateMailing List;Third Party Advisory
-
https://security.gentoo.org/glsa/201811-12
GPL Ghostscript: Multiple vulnerabilities (GLSA 201811-12) — Gentoo securityThird Party Advisory
-
https://www.exploit-db.com/exploits/45369/
Ghostscript - Failed Restore Command Execution (Metasploit)Exploit;Third Party Advisory;VDB Entry
-
https://www.debian.org/security/2018/dsa-4294
Debian -- Security Information -- DSA-4294-1 ghostscriptThird Party Advisory
-
http://git.ghostscript.com/?p=ghostpdl.git;a=commit;h=78911a01b67d590b4a91afac2e8417360b934156
git.ghostscript.com Git - ghostpdl.git/commitThird Party Advisory
Jump to