Skip to content
On CISA KEVHigh

CVE-2018-16509Ghostscript Vulnerability

Incorrect "restoration of privilege" checking during handling of /invalidaccess exceptions could be used by attackers able to supply crafted PostScript to execute code using the "pipe" instruction.

Published Sep 5, 2018 · Updated Oct 23, 2026 · Also known as DEBIAN-CVE-2018-16509, DSA-4294-1, UBUNTU-CVE-2018-16509

Key Facts

Patch immediately
  • CVE-2018-16509 is a high-severity vulnerability (CVSS 7.3 v3.1) affecting Ghostscript (Artifex), Gpl Ghostscript (Artifex), Ubuntu Linux (Canonical) and 22 more products.
  • It is exploited in the wild, listed in Industry KEV feed since May 10, 2024. A public exploit is reported by tracking sources, but no code link is listed yet.
  • EPSS estimates a 92% probability of exploitation in the next 30 days.
  • Fixed versions are available, including Ghostscript 9.24, Ghostscript 0:8.70-24.el6_10.2, Ghostscript 0:9.07-29.el7_5.2.
  • Brandefense priority: patch immediately, because it is listed as exploited in the wild.

Scores

CVSS v3.1

7.3

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L

EPSS (30-day exploit likelihood)

92%

Higher than 99.8% of all scored CVEs

Exploit maturity

Exploited (KEV)

ATLAS score

81/100

Publication score, see How it works

Exploitation Verdict

KEV listed

May 10, 2024

2074 days after publication

Federal due date

None

No federal due date

Ransomware use

Not reported

Attributed actors

None named

Exploit & Defence Guidance

Exploit maturity

Exploited (KEV)

Public exploit code

3

Proof-of-concept links

In-the-wild evidence

2

Reports of active use

Description

An issue was discovered in Artifex Ghostscript before 9.24. Incorrect "restoration of privilege" checking during handling of /invalidaccess exceptions could be used by attackers able to supply crafted PostScript to execute code using the "pipe" instruction.

Known-Exploited Catalog Listings

CatalogAddedRemediation dueRansomware use
Industry KEV feedMay 10, 2024n/aNot reported

Affected Products

152 affected entries in total
ProductAffected versionsFixed in
GhostscriptArtifexSee advisory9.24
Gpl GhostscriptArtifexSee advisory9.26
Ubuntu LinuxCanonical14.04, 16.04, 18.04n/a
Debian LinuxDebian8.0, 9.0n/a
Enterprise Linux DesktopRedhat6.0, 7.0n/a
20 more affected products in the full CVE brief

Patched Releases

Ghostscript

9.24, 0:8.70-24.el6_10.2, 0:9.07-29.el7_5.2, 8.70-24.26.amzn1, 8.70-24.el6_10.2, 9.06-8.amzn2.0.5, 9.06~dfsg-2+deb8u8, 9.07-29.el7_5.2, 9.10~dfsg-0ubuntu10.13, 9.18~dfsg~0-0ubuntu2.9, 9.20~dfsg-3.2+deb9u5, 9.22~dfsg+1-0ubuntu1.2, 9.24-1.5.mga6, 9.25-14.9.1, 9.25-23.13.1, 9.25-3.6.1, 9.25-lp150.2.6.1, 9.25~dfsg-1, 9.54.0-2.2

Gpl Ghostscript

9.26

ghostscript-cups

9.06-8.amzn2.0.5, 9.07-29.el7_5.2

ghostscript-devel

8.62-32.47.13.1, 8.70-24.26.amzn1, 8.70-24.el6_10.2, 9.06-8.amzn2.0.5, 9.07-29.el7_5.2, 9.25-14.9.1, 9.25-23.13.1, 9.25-3.6.1, 9.25-lp150.2.6.1, 9.54.0-2.2

ghostscript-doc

8.70-24.26.amzn1, 8.70-24.el6_10.2, 9.06-8.amzn2.0.5, 9.07-29.el7_5.2

ghostscript-fonts-other

8.62-32.47.13.1

ghostscript-fonts-rus

8.62-32.47.13.1

ghostscript-fonts-std

8.62-32.47.13.1

ghostscript-gtk

8.70-24.el6_10.2, 9.06-8.amzn2.0.5, 9.07-29.el7_5.2

ghostscript-ijs-devel

8.62-32.47.13.1

ghostscript-library

8.62-32.47.13.1

ghostscript-mini

9.25-14.9.1, 9.25-lp150.2.6.1

ghostscript-mini-devel

9.25-14.9.1, 9.25-lp150.2.6.1

ghostscript-omni

8.62-32.47.13.1

ghostscript-x11

8.62-32.47.13.1, 9.25-14.9.1, 9.25-23.13.1, 9.25-3.6.1, 9.25-lp150.2.6.1, 9.54.0-2.2

libgimpprint

4.2.7-32.47.13.1

libgimpprint-devel

4.2.7-32.47.13.1

libspectre

0.2.8-3.2.1, 0.2.8-lp150.2.3.1

libspectre-devel

0.2.8-3.2.1, 0.2.8-lp150.2.3.1

libspectre1

0.2.8-3.2.1, 0.2.8-lp150.2.3.1

rootio-ghostscript

9.25~dfsg-1

Timeline

  1. Publicly disclosed

    Sep 5, 2018

  2. Added to Industry KEV feed

    May 10, 2024

  3. Last updated

    Oct 23, 2026

References

15 more references in the full CVE brief

FAQ

Common Questions.

Is CVE-2018-16509 On Your Attack Surface?

Brandefense matches it against the products discovered on your perimeter and opens a finding the day a CVE like this is listed.

Request A Demo

More vulnerabilities

Figures as of Dec 1, 2026. Compiled by Brandefense technologies from public vulnerability catalogs; scoring as described in How it works.

To report an error, contact Brandefense.