cve.bz

CVE-2018-16802

7.8 highEPSS 2.1%

High (7.8). EPSS 2.1% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.0

7.8 high
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS
2.1% (unchanged from 2.1% a week ago; 2.1% 30 days ago) estimated probability of exploitation activity in the next 30 days; 82nd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2018-16802 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2018-16802?via=ask-ai-copy and https://cve.bz/cve/CVE-2018-16802?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2018-16802 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
artifex:ghostscriptbefore 9.25
debian:debian_linux8.0
debian:debian_linux9.0
canonical:ubuntu_linux14.04
canonical:ubuntu_linux16.04
canonical:ubuntu_linux18.04
redhat:enterprise_linux_desktop7.0
redhat:enterprise_linux_server7.0
redhat:enterprise_linux_server_aus7.6
redhat:enterprise_linux_server_eus7.6
redhat:enterprise_linux_server_tus7.6
redhat:enterprise_linux_workstation7.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian8ghostscript9.06~dfsg-2+deb8u8DLA-1504-1
Debian9ghostscript9.20~dfsg-3.2+deb9u5DSA-4294-1
Debian12, 13, 14ghostscript9.25~dfsg-1DEBIAN-CVE-2018-16802
Ubuntu14.04:LTSghostscript9.10~dfsg-0ubuntu10.13UBUNTU-CVE-2018-16802 USN-3768-1
Ubuntu16.04:LTSghostscript9.18~dfsg~0-0ubuntu2.9UBUNTU-CVE-2018-16802 USN-3768-1
Ubuntu18.04:LTSghostscript9.22~dfsg+1-0ubuntu1.2UBUNTU-CVE-2018-16802 USN-3768-1
Red Hatenterprise_linux:7::client, enterprise_linux:7::computenode, enterprise_linux:7::server and 1 moreghostscript, ghostscript-doc, ghostscript-gtk and 3 more0:9.07-31.el7_6.6RHSA-2018:3834
SUSEEnterprise Storage 4, Linux Enterprise Desktop 12 SP3, Linux Enterprise Server 12 SP1-LTSS and 7 moreghostscript9.25-23.13.1SUSE-SU-2018:2975-1
SUSELinux Enterprise Module for Basesystem 15ghostscript9.25-3.6.1SUSE-SU-2018:2976-1
SUSELinux Enterprise Module for Desktop Applications 15libspectre0.2.8-3.2.1SUSE-SU-2018:2976-1
SUSELinux Enterprise Server 12 SP2-BCLghostscript9.25-23.13.1SUSE-SU-2018:2975-2
SUSELinux Enterprise Server for SAP Applications 12 SP1ghostscript9.25-23.13.1SUSE-SU-2018:2975-3
openSUSETumbleweedghostscript9.54.0-2.2openSUSE-SU-2024:10783-1
Alpinev3.5, v3.6, v3.7 and 17 moreghostscript9.25-r0ALPINE-CVE-2018-16802

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This issue affects the versions of ghostscript as shipped with Red Hat Enterprise Linux 7. This issue did not affect the versions of ghostscript as shipped with Red Hat Enterprise Linux 5 and 6.

Red Hat's mitigation

Please refer to the "Mitigation" section of CVE-2018-16509 : https://access.redhat.com/security/cve/cve-2018-16509

ProductPackageStateAdvisory
Red Hat Enterprise Linux 7ghostscript-0:9.07-31.el7_6.6Fixed 2018-12-17RHSA-2018:3834
Red Hat Enterprise Linux 5ghostscriptNot affected
Red Hat Enterprise Linux 6ghostscriptNot affected
Red Hat Enterprise Linux 8ghostscriptNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2018-16802.

References

Check your stackJSON