CVE-2018-16585
Reported by mitre · Published September 6, 2018
An issue was discovered in Artifex Ghostscript before 9.24. The .setdistillerkeys PostScript command is accepted even though it is not intended for use during document processing (e.g., after the startup phase). This leads to memory corruption, allowing remote attackers able to supply crafted PostScript to crash the interpreter or possibly have unspecified other impact. Note: A reputable source believes that the CVE is potentially a duplicate of CVE-2018-15910 as explained in Red Hat bugzilla (https://bugzilla.redhat.com/show_bug.cgi?id=1626193)
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| ghostscript-doc | Amazon Linux | 9.06-8.amzn2.0.5 |
| ghostscript-cups | Amazon Linux | 9.06-8.amzn2.0.5 |
| ghostscript-devel | Amazon Linux | 9.06-8.amzn2.0.5 |
| ghostscript-gtk | Amazon Linux | 9.06-8.amzn2.0.5 |
| ghostscript | Ubuntu:16.04:LTS | 9.18~dfsg~0-0ubuntu2.9 |
| ghostscript | artifex | 9.24 |
| ghostscript | Ubuntu:14.04:LTS | 9.10~dfsg-0ubuntu10.13 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| amazon:2 | ghostscript-doc | 0 |
| amazon:2 | ghostscript-cups | 0 |
| amazon:2 | ghostscript-devel | 0 |
| amazon:2 | ghostscript-gtk | 0 |
| n/a | n/a | * |
| amazon:2 | ghostscript | 0 |
Timeline
- Sep 6, 2018 CVE Published
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Sep 8, 2025 CVE Updated
- Mar 6, 2026 Distribution Patch (2 in total, the first dated here)
- Mar 6, 2026 Security Advisory (4 in total, the first dated here)
- Sep 23, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2018-16585
vulnetix vdb fixes CVE-2018-16585
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2018-16585/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- GLSA-201811-12 vendor-advisoryx_refsource_GENTOO
- USN-3768-1 vendor-advisoryx_refsource_UBUNTU
- x_refsource_MISC
- DSA-4288 vendor-advisoryx_refsource_DEBIAN
- [debian-lts-announce] 20180913 [SECURITY] [DLA 1504-1] ghostscript security update mailing-listx_refsource_MLIST
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_MISC