
CVE catalog
CVE-2018-16802
ghostscript: CVE-2018-16802
- Severity
- High · CVSS 8.8
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 2.09% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | ghostscript | sid | 10.08.0~dfsg-2 | fixed |
| Debian | ghostscript | forky | 10.08.0~dfsg-2 | fixed |
| Debian | ghostscript | trixie | 10.05.1~dfsg-1+deb13u1 | fixed |
| Debian | ghostscript | trixie-security | 10.05.1~dfsg-1+deb13u3 | fixed |
| Debian | ghostscript | bookworm | 10.0.0~dfsg-11+deb12u8 | fixed |
| Debian | ghostscript | bookworm-security | 10.0.0~dfsg-11+deb12u8 | fixed |
| Ubuntu | ghostscript | 14.04 | 9.10~dfsg-0ubuntu2 | vulnerable |
| Ubuntu | ghostscript | 14.04 | 9.10~dfsg-0ubuntu3 | vulnerable |
| Ubuntu | ghostscript | 14.04 | 9.10~dfsg-0ubuntu4 | vulnerable |
| Ubuntu | ghostscript | 14.04 | 9.10~dfsg-0ubuntu5 | vulnerable |
| Ubuntu | ghostscript | 14.04 | 9.10~dfsg-0ubuntu6 | vulnerable |
| Ubuntu | ghostscript | 14.04 | 9.10~dfsg-0ubuntu7 | vulnerable |
| Ubuntu | ghostscript | 14.04 | 9.10~dfsg-0ubuntu8 | vulnerable |
| Ubuntu | ghostscript | 14.04 | 9.10~dfsg-0ubuntu9 | vulnerable |
| Ubuntu | ghostscript | 14.04 | 9.10~dfsg-0ubuntu10 | vulnerable |
| Ubuntu | ghostscript | 14.04 | 9.10~dfsg-0ubuntu10.1 | vulnerable |
| Ubuntu | ghostscript | 14.04 | 9.10~dfsg-0ubuntu10.2 | vulnerable |
| Ubuntu | ghostscript | 14.04 | 9.10~dfsg-0ubuntu10.3 | vulnerable |
| Ubuntu | ghostscript | 14.04 | 9.10~dfsg-0ubuntu10.4 | vulnerable |
| Ubuntu | ghostscript | 14.04 | 9.10~dfsg-0ubuntu10.5 | vulnerable |
| Ubuntu | ghostscript | 14.04 | 9.10~dfsg-0ubuntu10.6 | vulnerable |
| Ubuntu | ghostscript | 14.04 | 9.10~dfsg-0ubuntu10.7 | vulnerable |
| Ubuntu | ghostscript | 14.04 | 9.10~dfsg-0ubuntu10.9 | vulnerable |
| Ubuntu | ghostscript | 14.04 | 9.10~dfsg-0ubuntu10.10 | vulnerable |
| Ubuntu | ghostscript | 14.04 | 9.10~dfsg-0ubuntu10.12 | vulnerable |
| Ubuntu | ghostscript | 14.04 | 9.10~dfsg-0ubuntu10.13 | fixed |
| Ubuntu | ghostscript | 16.04 | 9.16~dfsg~0-0ubuntu3 | vulnerable |
| Ubuntu | ghostscript | 16.04 | 9.16~dfsg~0-0ubuntu4 | vulnerable |
| Ubuntu | ghostscript | 16.04 | 9.18~dfsg~0-0ubuntu1 | vulnerable |
| Ubuntu | ghostscript | 16.04 | 9.18~dfsg~0-0ubuntu2 | vulnerable |
| Ubuntu | ghostscript | 16.04 | 9.18~dfsg~0-0ubuntu2.2 | vulnerable |
| Ubuntu | ghostscript | 16.04 | 9.18~dfsg~0-0ubuntu2.3 | vulnerable |
| Ubuntu | ghostscript | 16.04 | 9.18~dfsg~0-0ubuntu2.4 | vulnerable |
| Ubuntu | ghostscript | 16.04 | 9.18~dfsg~0-0ubuntu2.6 | vulnerable |
| Ubuntu | ghostscript | 16.04 | 9.18~dfsg~0-0ubuntu2.7 | vulnerable |
| Ubuntu | ghostscript | 16.04 | 9.18~dfsg~0-0ubuntu2.8 | vulnerable |
| Ubuntu | ghostscript | 16.04 | 9.18~dfsg~0-0ubuntu2.9 | fixed |
| Ubuntu | ghostscript | 18.04 | 9.21~dfsg+1-0ubuntu3 | vulnerable |
| Ubuntu | ghostscript | 18.04 | 9.22~dfsg+1-0ubuntu1 | vulnerable |
| Ubuntu | ghostscript | 18.04 | 9.22~dfsg+1-0ubuntu1.1 | vulnerable |
| Ubuntu | ghostscript | 18.04 | 9.22~dfsg+1-0ubuntu1.2 | fixed |
| Alpine | ghostscript | 3.10 | 9.25-r0 | fixed |
| Alpine | ghostscript | 3.11 | 9.25-r0 | fixed |
| Alpine | ghostscript | 3.12 | 9.25-r0 | fixed |
| Alpine | ghostscript | 3.13 | 9.25-r0 | fixed |
| Alpine | ghostscript | 3.14 | 9.25-r0 | fixed |
| Alpine | ghostscript | 3.15 | 9.25-r0 | fixed |
| Alpine | ghostscript | 3.16 | 9.25-r0 | fixed |
| Alpine | ghostscript | 3.17 | 9.25-r0 | fixed |
| Alpine | ghostscript | 3.18 | 9.25-r0 | fixed |
| Alpine | ghostscript | 3.19 | 9.25-r0 | fixed |
| Alpine | ghostscript | 3.20 | 9.25-r0 | fixed |
| Alpine | ghostscript | 3.21 | 9.25-r0 | fixed |
| Alpine | ghostscript | 3.22 | 9.25-r0 | fixed |
| Alpine | ghostscript | 3.23 | 9.25-r0 | fixed |
| Alpine | ghostscript | 3.5 | 9.25-r0 | fixed |
| Alpine | ghostscript | 3.6 | 9.25-r0 | fixed |
| Alpine | ghostscript | 3.7 | 9.25-r0 | fixed |
| Alpine | ghostscript | 3.8 | 9.25-r0 | fixed |
| Alpine | ghostscript | 3.9 | 9.25-r0 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | ghostscript | source | sid | 9.25~dfsg-1 | not yet assigned | Not reported | Not reported |
| Debian | ghostscript | source | forky | 9.25~dfsg-1 | not yet assigned | Not reported | Not reported |
| Debian | ghostscript | source | trixie | 9.25~dfsg-1 | not yet assigned | Not reported | Not reported |
| Debian | ghostscript | source | bookworm | 9.25~dfsg-1 | not yet assigned | Not reported | Not reported |
| Ubuntu | ghostscript | deb | 14.04 | 9.10~dfsg-0ubuntu10.13 | Not reported | UBUNTU-CVE-2018-16802 | Not reported |
| Ubuntu | ghostscript | deb | 16.04 | 9.18~dfsg~0-0ubuntu2.9 | Not reported | UBUNTU-CVE-2018-16802 | Not reported |
| Ubuntu | ghostscript | deb | 18.04 | 9.22~dfsg+1-0ubuntu1.2 | Not reported | UBUNTU-CVE-2018-16802 | Not reported |
| Alpine | ghostscript | apk | 3.10 | 9.25-r0 | Not reported | ALPINE-CVE-2018-16802 | Not reported |
| Alpine | ghostscript | apk | 3.11 | 9.25-r0 | Not reported | ALPINE-CVE-2018-16802 | Not reported |
| Alpine | ghostscript | apk | 3.12 | 9.25-r0 | Not reported | ALPINE-CVE-2018-16802 | Not reported |
| Alpine | ghostscript | apk | 3.13 | 9.25-r0 | Not reported | ALPINE-CVE-2018-16802 | Not reported |
| Alpine | ghostscript | apk | 3.14 | 9.25-r0 | Not reported | ALPINE-CVE-2018-16802 | Not reported |
| Alpine | ghostscript | apk | 3.15 | 9.25-r0 | Not reported | ALPINE-CVE-2018-16802 | Not reported |
| Alpine | ghostscript | apk | 3.16 | 9.25-r0 | Not reported | ALPINE-CVE-2018-16802 | Not reported |
| Alpine | ghostscript | apk | 3.17 | 9.25-r0 | Not reported | ALPINE-CVE-2018-16802 | Not reported |
| Alpine | ghostscript | apk | 3.18 | 9.25-r0 | Not reported | ALPINE-CVE-2018-16802 | Not reported |
| Alpine | ghostscript | apk | 3.19 | 9.25-r0 | Not reported | ALPINE-CVE-2018-16802 | Not reported |
| Alpine | ghostscript | apk | 3.20 | 9.25-r0 | Not reported | ALPINE-CVE-2018-16802 | Not reported |
| Alpine | ghostscript | apk | 3.21 | 9.25-r0 | Not reported | ALPINE-CVE-2018-16802 | Not reported |
| Alpine | ghostscript | apk | 3.22 | 9.25-r0 | Not reported | ALPINE-CVE-2018-16802 | Not reported |
| Alpine | ghostscript | apk | 3.23 | 9.25-r0 | Not reported | ALPINE-CVE-2018-16802 | Not reported |
| Alpine | ghostscript | apk | 3.5 | 9.25-r0 | Not reported | ALPINE-CVE-2018-16802 | Not reported |
| Alpine | ghostscript | apk | 3.6 | 9.25-r0 | Not reported | ALPINE-CVE-2018-16802 | Not reported |
| Alpine | ghostscript | apk | 3.7 | 9.25-r0 | Not reported | ALPINE-CVE-2018-16802 | Not reported |
| Alpine | ghostscript | apk | 3.8 | 9.25-r0 | Not reported | ALPINE-CVE-2018-16802 | Not reported |
| Alpine | ghostscript | apk | 3.9 | 9.25-r0 | Not reported | ALPINE-CVE-2018-16802 | Not reported |
OpenFactory catalog packages
Matching against OpenFactory catalog package versions is in progress.
[Debian 12 (Bookworm)]
- [ghostscript]Unknown
Details (4)
10.0.0~dfsg-11+deb12u8· amd64 · bookwormFixed · Fixed:
9.25~dfsg-1dsa · ghostscript · debian · bookworm; dsa · ghostscript · debian · 12
10.0.0~dfsg-11+deb12u8· arm64 · bookwormFixed · Fixed:
9.25~dfsg-1dsa · ghostscript · debian · bookworm; dsa · ghostscript · debian · 12
10.0.0~dfsg-11+deb12u8· amd64 · bookworm-securityFixed · Fixed:
9.25~dfsg-1dsa · ghostscript · debian · bookworm; dsa · ghostscript · debian · 12
10.0.0~dfsg-11+deb12u8· arm64 · bookworm-securityFixed · Fixed:
9.25~dfsg-1dsa · ghostscript · debian · bookworm; dsa · ghostscript · debian · 12
- [ghostscript-doc]Unknown
Source package: [ghostscript]
Details (4)
10.0.0~dfsg-11+deb12u8· all · bookwormFixed · Fixed:
9.25~dfsg-1dsa · ghostscript · debian · bookworm; dsa · ghostscript · debian · 12
10.0.0~dfsg-11+deb12u8· all · bookwormFixed · Fixed:
9.25~dfsg-1dsa · ghostscript · debian · bookworm; dsa · ghostscript · debian · 12
10.0.0~dfsg-11+deb12u8· all · bookworm-securityFixed · Fixed:
9.25~dfsg-1dsa · ghostscript · debian · bookworm; dsa · ghostscript · debian · 12
10.0.0~dfsg-11+deb12u8· all · bookworm-securityFixed · Fixed:
9.25~dfsg-1dsa · ghostscript · debian · bookworm; dsa · ghostscript · debian · 12
- [ghostscript-x]Unknown
Source package: [ghostscript]
Details (4)
10.0.0~dfsg-11+deb12u8· amd64 · bookwormFixed · Fixed:
9.25~dfsg-1dsa · ghostscript · debian · bookworm; dsa · ghostscript · debian · 12
10.0.0~dfsg-11+deb12u8· arm64 · bookwormFixed · Fixed:
9.25~dfsg-1dsa · ghostscript · debian · bookworm; dsa · ghostscript · debian · 12
10.0.0~dfsg-11+deb12u8· amd64 · bookworm-securityFixed · Fixed:
9.25~dfsg-1dsa · ghostscript · debian · bookworm; dsa · ghostscript · debian · 12
10.0.0~dfsg-11+deb12u8· arm64 · bookworm-securityFixed · Fixed:
9.25~dfsg-1dsa · ghostscript · debian · bookworm; dsa · ghostscript · debian · 12
- [libgs10]Unknown
Source package: [ghostscript]
Details (4)
10.0.0~dfsg-11+deb12u8· amd64 · bookwormFixed · Fixed:
9.25~dfsg-1dsa · ghostscript · debian · bookworm; dsa · ghostscript · debian · 12
10.0.0~dfsg-11+deb12u8· arm64 · bookwormFixed · Fixed:
9.25~dfsg-1dsa · ghostscript · debian · bookworm; dsa · ghostscript · debian · 12
10.0.0~dfsg-11+deb12u8· amd64 · bookworm-securityFixed · Fixed:
9.25~dfsg-1dsa · ghostscript · debian · bookworm; dsa · ghostscript · debian · 12
10.0.0~dfsg-11+deb12u8· arm64 · bookworm-securityFixed · Fixed:
9.25~dfsg-1dsa · ghostscript · debian · bookworm; dsa · ghostscript · debian · 12
- [libgs10-common]Unknown
Source package: [ghostscript]
Details (4)
10.0.0~dfsg-11+deb12u8· all · bookwormFixed · Fixed:
9.25~dfsg-1dsa · ghostscript · debian · bookworm; dsa · ghostscript · debian · 12
10.0.0~dfsg-11+deb12u8· all · bookwormFixed · Fixed:
9.25~dfsg-1dsa · ghostscript · debian · bookworm; dsa · ghostscript · debian · 12
10.0.0~dfsg-11+deb12u8· all · bookworm-securityFixed · Fixed:
9.25~dfsg-1dsa · ghostscript · debian · bookworm; dsa · ghostscript · debian · 12
10.0.0~dfsg-11+deb12u8· all · bookworm-securityFixed · Fixed:
9.25~dfsg-1dsa · ghostscript · debian · bookworm; dsa · ghostscript · debian · 12
- [libgs9-common]Unknown
Source package: [ghostscript]
Details (4)
10.0.0~dfsg-11+deb12u8· all · bookwormFixed · Fixed:
9.25~dfsg-1dsa · ghostscript · debian · bookworm; dsa · ghostscript · debian · 12
10.0.0~dfsg-11+deb12u8· all · bookwormFixed · Fixed:
9.25~dfsg-1dsa · ghostscript · debian · bookworm; dsa · ghostscript · debian · 12
10.0.0~dfsg-11+deb12u8· all · bookworm-securityFixed · Fixed:
9.25~dfsg-1dsa · ghostscript · debian · bookworm; dsa · ghostscript · debian · 12
10.0.0~dfsg-11+deb12u8· all · bookworm-securityFixed · Fixed:
9.25~dfsg-1dsa · ghostscript · debian · bookworm; dsa · ghostscript · debian · 12
- [libgs-common]Unknown
Source package: [ghostscript]
Details (4)
10.0.0~dfsg-11+deb12u8· all · bookwormFixed · Fixed:
9.25~dfsg-1dsa · ghostscript · debian · bookworm; dsa · ghostscript · debian · 12
10.0.0~dfsg-11+deb12u8· all · bookwormFixed · Fixed:
9.25~dfsg-1dsa · ghostscript · debian · bookworm; dsa · ghostscript · debian · 12
10.0.0~dfsg-11+deb12u8· all · bookworm-securityFixed · Fixed:
9.25~dfsg-1dsa · ghostscript · debian · bookworm; dsa · ghostscript · debian · 12
10.0.0~dfsg-11+deb12u8· all · bookworm-securityFixed · Fixed:
9.25~dfsg-1dsa · ghostscript · debian · bookworm; dsa · ghostscript · debian · 12
- [libgs-dev]Unknown
Source package: [ghostscript]
Details (4)
10.0.0~dfsg-11+deb12u8· amd64 · bookwormFixed · Fixed:
9.25~dfsg-1dsa · ghostscript · debian · bookworm; dsa · ghostscript · debian · 12
10.0.0~dfsg-11+deb12u8· arm64 · bookwormFixed · Fixed:
9.25~dfsg-1dsa · ghostscript · debian · bookworm; dsa · ghostscript · debian · 12
10.0.0~dfsg-11+deb12u8· amd64 · bookworm-securityFixed · Fixed:
9.25~dfsg-1dsa · ghostscript · debian · bookworm; dsa · ghostscript · debian · 12
10.0.0~dfsg-11+deb12u8· arm64 · bookworm-securityFixed · Fixed:
9.25~dfsg-1dsa · ghostscript · debian · bookworm; dsa · ghostscript · debian · 12
[Debian 13 (Trixie)]
- [ghostscript]Unknown
Details (6)
10.05.1~dfsg-1+deb13u1· amd64 · trixieFixed · Fixed:
9.25~dfsg-1dsa · ghostscript · debian · 13
10.05.1~dfsg-1+deb13u1· arm64 · trixieFixed · Fixed:
9.25~dfsg-1dsa · ghostscript · debian · 13
10.05.1~dfsg-1+deb13u1· amd64 · trixie-security · Historical versionFixed · Fixed:
9.25~dfsg-1dsa · ghostscript · debian · 13
10.05.1~dfsg-1+deb13u1· arm64 · trixie-securityFixed · Fixed:
9.25~dfsg-1dsa · ghostscript · debian · 13
10.05.1~dfsg-1+deb13u2· amd64 · trixie-security · Historical versionFixed · Fixed:
9.25~dfsg-1dsa · ghostscript · debian · 13
10.05.1~dfsg-1+deb13u3· amd64 · trixie-securityFixed · Fixed:
9.25~dfsg-1dsa · ghostscript · debian · 13
- [ghostscript-doc]Unknown
Source package: [ghostscript]
Details (6)
10.05.1~dfsg-1+deb13u1· all · trixieFixed · Fixed:
9.25~dfsg-1dsa · ghostscript · debian · 13
10.05.1~dfsg-1+deb13u1· all · trixieFixed · Fixed:
9.25~dfsg-1dsa · ghostscript · debian · 13
10.05.1~dfsg-1+deb13u1· all · trixie-security · Historical versionFixed · Fixed:
9.25~dfsg-1dsa · ghostscript · debian · 13
10.05.1~dfsg-1+deb13u1· all · trixie-securityFixed · Fixed:
9.25~dfsg-1dsa · ghostscript · debian · 13
10.05.1~dfsg-1+deb13u2· all · trixie-security · Historical versionFixed · Fixed:
9.25~dfsg-1dsa · ghostscript · debian · 13
10.05.1~dfsg-1+deb13u3· all · trixie-securityFixed · Fixed:
9.25~dfsg-1dsa · ghostscript · debian · 13
- [libgs10]Unknown
Source package: [ghostscript]
Details (6)
10.05.1~dfsg-1+deb13u1· amd64 · trixieFixed · Fixed:
9.25~dfsg-1dsa · ghostscript · debian · 13
10.05.1~dfsg-1+deb13u1· arm64 · trixieFixed · Fixed:
9.25~dfsg-1dsa · ghostscript · debian · 13
10.05.1~dfsg-1+deb13u1· amd64 · trixie-security · Historical versionFixed · Fixed:
9.25~dfsg-1dsa · ghostscript · debian · 13
10.05.1~dfsg-1+deb13u1· arm64 · trixie-securityFixed · Fixed:
9.25~dfsg-1dsa · ghostscript · debian · 13
10.05.1~dfsg-1+deb13u2· amd64 · trixie-security · Historical versionFixed · Fixed:
9.25~dfsg-1dsa · ghostscript · debian · 13
10.05.1~dfsg-1+deb13u3· amd64 · trixie-securityFixed · Fixed:
9.25~dfsg-1dsa · ghostscript · debian · 13
- [libgs10-common]Unknown
Source package: [ghostscript]
Details (6)
10.05.1~dfsg-1+deb13u1· all · trixieFixed · Fixed:
9.25~dfsg-1dsa · ghostscript · debian · 13
10.05.1~dfsg-1+deb13u1· all · trixieFixed · Fixed:
9.25~dfsg-1dsa · ghostscript · debian · 13
10.05.1~dfsg-1+deb13u1· all · trixie-security · Historical versionFixed · Fixed:
9.25~dfsg-1dsa · ghostscript · debian · 13
10.05.1~dfsg-1+deb13u1· all · trixie-securityFixed · Fixed:
9.25~dfsg-1dsa · ghostscript · debian · 13
10.05.1~dfsg-1+deb13u2· all · trixie-security · Historical versionFixed · Fixed:
9.25~dfsg-1dsa · ghostscript · debian · 13
10.05.1~dfsg-1+deb13u3· all · trixie-securityFixed · Fixed:
9.25~dfsg-1dsa · ghostscript · debian · 13
- [libgs-common]Unknown
Source package: [ghostscript]
Details (6)
10.05.1~dfsg-1+deb13u1· all · trixieFixed · Fixed:
9.25~dfsg-1dsa · ghostscript · debian · 13
10.05.1~dfsg-1+deb13u1· all · trixieFixed · Fixed:
9.25~dfsg-1dsa · ghostscript · debian · 13
10.05.1~dfsg-1+deb13u1· all · trixie-securityFixed · Fixed:
9.25~dfsg-1dsa · ghostscript · debian · 13
10.05.1~dfsg-1+deb13u1· all · trixie-security · Historical versionFixed · Fixed:
9.25~dfsg-1dsa · ghostscript · debian · 13
10.05.1~dfsg-1+deb13u2· all · trixie-security · Historical versionFixed · Fixed:
9.25~dfsg-1dsa · ghostscript · debian · 13
10.05.1~dfsg-1+deb13u3· all · trixie-securityFixed · Fixed:
9.25~dfsg-1dsa · ghostscript · debian · 13
- [libgs-dev]Unknown
Source package: [ghostscript]
Details (6)
10.05.1~dfsg-1+deb13u1· amd64 · trixieFixed · Fixed:
9.25~dfsg-1dsa · ghostscript · debian · 13
10.05.1~dfsg-1+deb13u1· arm64 · trixieFixed · Fixed:
9.25~dfsg-1dsa · ghostscript · debian · 13
10.05.1~dfsg-1+deb13u1· amd64 · trixie-security · Historical versionFixed · Fixed:
9.25~dfsg-1dsa · ghostscript · debian · 13
10.05.1~dfsg-1+deb13u1· arm64 · trixie-securityFixed · Fixed:
9.25~dfsg-1dsa · ghostscript · debian · 13
10.05.1~dfsg-1+deb13u2· amd64 · trixie-security · Historical versionFixed · Fixed:
9.25~dfsg-1dsa · ghostscript · debian · 13
10.05.1~dfsg-1+deb13u3· amd64 · trixie-securityFixed · Fixed:
9.25~dfsg-1dsa · ghostscript · debian · 13
Observed:
References
- [https://access.redhat.com/errata/RHSA-2018:3834]
- [https://ftp.suse.com/pub/projects/security/csaf/rhsa-2018_3834.json]
- [https://osv.dev/vulnerability/ALPINE-CVE-2018-16802]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2018-16802]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2018-16802]
- [https://security-tracker.debian.org/tracker/CVE-2018-16802]
[Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]