CVE-2018-16802
An issue was discovered in Artifex Ghostscript before 9.25. Incorrect "restoration of privilege" checking when running out of stack during exception handling could be used by attackers able to supply crafted PostScript to execute code using the "pipe" instruction. This is due to an incomplete fix for CVE-2018-16509.
What to do
Fixed builds are available from Alpine, Debian, Red Hat, 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 18.04 | ghostscript | Fixed | 9.22~dfsg+1-0ubuntu1.2 | UBUNTU-CVE-2018-16802 |
| Ubuntu 16.04 | ghostscript | Fixed | 9.18~dfsg~0-0ubuntu2.9 | UBUNTU-CVE-2018-16802 |
| Ubuntu 14.04 | ghostscript | Fixed | 9.10~dfsg-0ubuntu10.13 | UBUNTU-CVE-2018-16802 |
| Debian 14 | ghostscript | Fixed | 9.25~dfsg-1 | DEBIAN-CVE-2018-16802 |
| Debian 13 | ghostscript | Fixed | 9.25~dfsg-1 | DEBIAN-CVE-2018-16802 |
| Debian 12 | ghostscript | Fixed | 9.25~dfsg-1 | DEBIAN-CVE-2018-16802 |
| 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 | Fixed | 0:9.07-31.el7_6.6 | RHSA-2018:3834 |
| Red Hat Enterprise Linux 7 | ghostscript-cups | Fixed | 0:9.07-31.el7_6.6 | RHSA-2018:3834 |
| Red Hat Enterprise Linux 7 | ghostscript-devel | Fixed | 0:9.07-31.el7_6.6 | RHSA-2018:3834 |
| Red Hat Enterprise Linux 7 | ghostscript-doc | Fixed | 0:9.07-31.el7_6.6 | RHSA-2018:3834 |
| Red Hat Enterprise Linux 7 | ghostscript-gtk | Fixed | 0:9.07-31.el7_6.6 | RHSA-2018:3834 |
| 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 | ||
| Alpine Linux 3.24 | ghostscript | Fixed | 9.25-r0 | ALPINE-CVE-2018-16802 |
| Alpine Linux 3.23 | ghostscript | Fixed | 9.25-r0 | ALPINE-CVE-2018-16802 |
| Alpine Linux 3.22 | ghostscript | Fixed | 9.25-r0 | ALPINE-CVE-2018-16802 |
| Alpine Linux 3.21 | ghostscript | Fixed | 9.25-r0 | ALPINE-CVE-2018-16802 |
| Alpine Linux 3.20 | ghostscript | Fixed | 9.25-r0 | ALPINE-CVE-2018-16802 |
| Alpine Linux 3.19 | ghostscript | Fixed | 9.25-r0 | ALPINE-CVE-2018-16802 |
| Alpine Linux 3.18 | ghostscript | Fixed | 9.25-r0 | ALPINE-CVE-2018-16802 |
| Alpine Linux 3.17 | ghostscript | Fixed | 9.25-r0 | ALPINE-CVE-2018-16802 |
| Alpine Linux 3.16 | ghostscript | Fixed | 9.25-r0 | ALPINE-CVE-2018-16802 |
| Alpine Linux 3.15 | ghostscript | Fixed | 9.25-r0 | ALPINE-CVE-2018-16802 |
| Alpine Linux 3.14 | ghostscript | Fixed | 9.25-r0 | ALPINE-CVE-2018-16802 |
| Alpine Linux 3.13 | ghostscript | Fixed | 9.25-r0 | ALPINE-CVE-2018-16802 |
| Alpine Linux 3.12 | ghostscript | Fixed | 9.25-r0 | ALPINE-CVE-2018-16802 |
| Alpine Linux 3.11 | ghostscript | Fixed | 9.25-r0 | ALPINE-CVE-2018-16802 |
| Alpine Linux 3.10 | ghostscript | Fixed | 9.25-r0 | ALPINE-CVE-2018-16802 |
| Alpine Linux 3.9 | ghostscript | Fixed | 9.25-r0 | ALPINE-CVE-2018-16802 |
| Alpine Linux 3.8 | ghostscript | Fixed | 9.25-r0 | ALPINE-CVE-2018-16802 |
| Alpine Linux 3.7 | ghostscript | Fixed | 9.25-r0 | ALPINE-CVE-2018-16802 |
| Alpine Linux 3.6 | ghostscript | Fixed | 9.25-r0 | ALPINE-CVE-2018-16802 |
| Alpine Linux 3.5 | ghostscript | Fixed | 9.25-r0 | ALPINE-CVE-2018-16802 |
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://access.redhat.com/errata/RHSA-2018:3834 (vendor-advisory)
- https://www.debian.org/security/2018/dsa-4294 (vendor-advisory)
References
- https://seclists.org/oss-sec/2018/q3/228
- https://git.ghostscript.com/?p=ghostpdl.git%3Ba=commitdiff%3Bh=5812b1b78fc4d36fdc293b7859de69241140d590
- https://seclists.org/oss-sec/2018/q3/229
- https://security.gentoo.org/glsa/201811-12
- https://usn.ubuntu.com/3768-1/
- https://access.redhat.com/errata/RHSA-2018:3834
- https://www.debian.org/security/2018/dsa-4294
- https://lists.debian.org/debian-lts-announce/2018/09/msg00015.html
- http://git.ghostscript.com/?p=ghostpdl.git%3Ba=commit%3Bh=643b24dbd002fb9c131313253c307cf3951b3d47
- http://git.ghostscript.com/?p=ghostpdl.git%3Ba=commit%3Bh=3e5d316b72e3965b7968bb1d96baa137cd063ac6
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.