# CVE-2018-16802: ghostscript: An issue was discovered in Artifex Ghostscript before 9.25

CVE-2018-16802 is fixed in 4 products on 1 platform, first by ghostscript 9.22~dfsg+1-0ubuntu1.2, released September 9, 2018. It is not reported as exploited. Patch Radar priority: Routine.

- Web page: https://patchblox.com/security/cve/CVE-2018-16802
- Priority: Routine
- CVSS: n/a (Medium)
- EPSS: 0.0209
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Sep 9, 2018

## Description

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.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | ghostscript Ubuntu 18.04.6 LTS (bionic) | 9.22~dfsg+1-0ubuntu1.2 | [ghostscript 9.22~dfsg+1-0ubuntu1.2](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-ghostscript-9.22-dfsg-1-0ubuntu1.2.md) | Sep 9, 2018 |
| Linux | ghostscript-x Ubuntu 18.04.6 LTS (bionic) | 9.22~dfsg+1-0ubuntu1.2 | [ghostscript-x 9.22~dfsg+1-0ubuntu1.2](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-ghostscript-x-9.22-dfsg-1-0ubuntu1.2.md) | Sep 9, 2018 |
| Linux | libgs9 Ubuntu 18.04.6 LTS (bionic) | 9.22~dfsg+1-0ubuntu1.2 | [libgs9 9.22~dfsg+1-0ubuntu1.2](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-libgs9-9.22-dfsg-1-0ubuntu1.2.md) | Sep 9, 2018 |
| Linux | libgs9-common Ubuntu 18.04.6 LTS (bionic) | 9.22~dfsg+1-0ubuntu1.2 | [libgs9-common 9.22~dfsg+1-0ubuntu1.2](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-libgs9-common-9.22-dfsg-1-0ubuntu1.2.md) | Sep 9, 2018 |

---

Data as of 2026-11-07T12:40:37Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo
