CVE-2018-16585
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)
What to do
Fixed builds are available from Debian, Ubuntu: see the table below for the fixed version per release.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 16.04 | ghostscript | Fixed | 9.18~dfsg~0-0ubuntu2.9 | UBUNTU-CVE-2018-16585 |
| Ubuntu 14.04 | ghostscript | Fixed | 9.10~dfsg-0ubuntu10.13 | UBUNTU-CVE-2018-16585 |
| Debian 14 | ghostscript | Fixed | 9.25~dfsg-1 | DEBIAN-CVE-2018-16585 |
| Debian 13 | ghostscript | Fixed | 9.25~dfsg-1 | DEBIAN-CVE-2018-16585 |
| Debian 12 | ghostscript | Fixed | 9.25~dfsg-1 | DEBIAN-CVE-2018-16585 |
| Red Hat Enterprise Linux 8 | ghostscript | Not affected | ||
| Red Hat Enterprise Linux 8 | ghostscript-doc | Not affected | ||
| Red Hat Enterprise Linux 8 | ghostscript-tools-dvipdf | Not affected | ||
| Red Hat Enterprise Linux 8 | ghostscript-tools-fonts | Not affected | ||
| Red Hat Enterprise Linux 8 | ghostscript-tools-printing | Not affected | ||
| Red Hat Enterprise Linux 8 | ghostscript-x11 | Not affected | ||
| Red Hat Enterprise Linux 8 | libgs | Not affected | ||
| Red Hat Enterprise Linux 8 | libgs-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | ghostscript | Not affected | ||
| Red Hat Enterprise Linux 7 | ghostscript-cups | Not affected | ||
| Red Hat Enterprise Linux 7 | ghostscript-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | ghostscript-doc | Not affected | ||
| Red Hat Enterprise Linux 7 | ghostscript-gtk | Not affected | ||
| Red Hat Enterprise Linux 7 | libgs | Not affected | ||
| Red Hat Enterprise Linux 7 | libgs-devel | Not affected | ||
| Red Hat Enterprise Linux 6 | ghostscript | Not affected | ||
| Red Hat Enterprise Linux 6 | ghostscript-devel | Not affected | ||
| Red Hat Enterprise Linux 6 | ghostscript-doc | Not affected | ||
| Red Hat Enterprise Linux 6 | ghostscript-gtk | Not affected | ||
| Red Hat Enterprise Linux 5 | ghostscript | Not affected |
What the vendor says
As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
Vendor advisories:
- https://security.gentoo.org/glsa/201811-12 (vendor-advisory)
- https://usn.ubuntu.com/3768-1/ (vendor-advisory)
- https://www.debian.org/security/2018/dsa-4288 (vendor-advisory)
References
- https://security.gentoo.org/glsa/201811-12
- https://usn.ubuntu.com/3768-1/
- http://git.ghostscript.com/?p=ghostpdl.git%3Ba=commitdiff%3Bh=1497d65039885a52b598b137dd8622bd4672f9be
- https://www.debian.org/security/2018/dsa-4288
- https://lists.debian.org/debian-lts-announce/2018/09/msg00015.html
- http://git.ghostscript.com/?p=ghostpdl.git%3Ba=commitdiff%3Bh=971472c83a345a16dac9f90f91258bb22dd77f22
- https://seclists.org/oss-sec/2018/q3/182
- https://bugzilla.redhat.com/show_bug.cgi?id=1626193
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.