CVE-2018-16509Ghostscript Vulnerability
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.
Published Sep 5, 2018 · Updated Oct 23, 2026 · Also known as DEBIAN-CVE-2018-16509, DSA-4294-1, UBUNTU-CVE-2018-16509
Key Facts
Patch immediately- CVE-2018-16509 is a high-severity vulnerability (CVSS 7.3 v3.1) affecting Ghostscript (Artifex), Gpl Ghostscript (Artifex), Ubuntu Linux (Canonical) and 22 more products.
- It is exploited in the wild, listed in Industry KEV feed since May 10, 2024. A public exploit is reported by tracking sources, but no code link is listed yet.
- EPSS estimates a 92% probability of exploitation in the next 30 days.
- Fixed versions are available, including Ghostscript 9.24, Ghostscript 0:8.70-24.el6_10.2, Ghostscript 0:9.07-29.el7_5.2.
- Brandefense priority: patch immediately, because it is listed as exploited in the wild.
Scores
CVSS v3.1
7.3
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
EPSS (30-day exploit likelihood)
92%
Higher than 99.8% of all scored CVEs
Exploit maturity
Exploited (KEV)
ATLAS score
81/100
Publication score, see How it works
Exploitation Verdict
KEV listed
May 10, 2024
2074 days after publication
Federal due date
None
No federal due date
Ransomware use
Not reported
Attributed actors
None named
Exploit & Defence Guidance
Exploit maturity
Exploited (KEV)
Public exploit code
3
Proof-of-concept links
In-the-wild evidence
2
Reports of active use
Advisories And Exploit References
Description
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.
Known-Exploited Catalog Listings
| Catalog | Added | Remediation due | Ransomware use |
|---|---|---|---|
| Industry KEV feed | May 10, 2024 | n/a | Not reported |
Affected Products
152 affected entries in total| Product | Affected versions | Fixed in |
|---|---|---|
| GhostscriptArtifex | See advisory | 9.24 |
| Gpl GhostscriptArtifex | See advisory | 9.26 |
| Ubuntu LinuxCanonical | 14.04, 16.04, 18.04 | n/a |
| Debian LinuxDebian | 8.0, 9.0 | n/a |
| Enterprise Linux DesktopRedhat | 6.0, 7.0 | n/a |
Patched Releases
Ghostscript
9.24, 0:8.70-24.el6_10.2, 0:9.07-29.el7_5.2, 8.70-24.26.amzn1, 8.70-24.el6_10.2, 9.06-8.amzn2.0.5, 9.06~dfsg-2+deb8u8, 9.07-29.el7_5.2, 9.10~dfsg-0ubuntu10.13, 9.18~dfsg~0-0ubuntu2.9, 9.20~dfsg-3.2+deb9u5, 9.22~dfsg+1-0ubuntu1.2, 9.24-1.5.mga6, 9.25-14.9.1, 9.25-23.13.1, 9.25-3.6.1, 9.25-lp150.2.6.1, 9.25~dfsg-1, 9.54.0-2.2
Gpl Ghostscript
9.26
ghostscript-cups
9.06-8.amzn2.0.5, 9.07-29.el7_5.2
ghostscript-devel
8.62-32.47.13.1, 8.70-24.26.amzn1, 8.70-24.el6_10.2, 9.06-8.amzn2.0.5, 9.07-29.el7_5.2, 9.25-14.9.1, 9.25-23.13.1, 9.25-3.6.1, 9.25-lp150.2.6.1, 9.54.0-2.2
ghostscript-doc
8.70-24.26.amzn1, 8.70-24.el6_10.2, 9.06-8.amzn2.0.5, 9.07-29.el7_5.2
ghostscript-fonts-other
8.62-32.47.13.1
ghostscript-fonts-rus
8.62-32.47.13.1
ghostscript-fonts-std
8.62-32.47.13.1
ghostscript-gtk
8.70-24.el6_10.2, 9.06-8.amzn2.0.5, 9.07-29.el7_5.2
ghostscript-ijs-devel
8.62-32.47.13.1
ghostscript-library
8.62-32.47.13.1
ghostscript-mini
9.25-14.9.1, 9.25-lp150.2.6.1
ghostscript-mini-devel
9.25-14.9.1, 9.25-lp150.2.6.1
ghostscript-omni
8.62-32.47.13.1
ghostscript-x11
8.62-32.47.13.1, 9.25-14.9.1, 9.25-23.13.1, 9.25-3.6.1, 9.25-lp150.2.6.1, 9.54.0-2.2
libgimpprint
4.2.7-32.47.13.1
libgimpprint-devel
4.2.7-32.47.13.1
libspectre
0.2.8-3.2.1, 0.2.8-lp150.2.3.1
libspectre-devel
0.2.8-3.2.1, 0.2.8-lp150.2.3.1
libspectre1
0.2.8-3.2.1, 0.2.8-lp150.2.3.1
rootio-ghostscript
9.25~dfsg-1
Timeline
Publicly disclosed
Sep 5, 2018
Added to Industry KEV feed
May 10, 2024
Last updated
Oct 23, 2026
References
- advisorysecurity-tracker.debian.org · CVE-2018-16509
- advisoryubuntu.com · CVE-2018-16509
- advisorycve.org · CVERecord
- advisoryRHSA-2018:2918
- advisoryRHSA-2018:3760
FAQ
Common Questions.
An issue was discovered in Artifex Ghostscript before 9.24.
Affected: Ghostscript (Artifex); Gpl Ghostscript (Artifex); Ubuntu Linux (Canonical) versions 14.04, 16.04, 18.04, among others. The full list is in the CVE brief.
It is exploited in the wild, listed in Industry KEV feed since May 10, 2024.
No, it is not currently listed in the CISA Known Exploited Vulnerabilities catalog.
A public exploit is reported by tracking sources, but no code link is listed yet.
Fixed versions are available, including Ghostscript 9.24, Ghostscript 0:8.70-24.el6_10.2, Ghostscript 0:9.07-29.el7_5.2.
Brandefense priority: patch immediately, because it is listed as exploited in the wild.
Is CVE-2018-16509 On Your Attack Surface?
Brandefense matches it against the products discovered on your perimeter and opens a finding the day a CVE like this is listed.
Request A Demo