CVE-2018-19134 json
In Artifex Ghostscript through 9.25, the setpattern operator did not properly validate certain types.
published 7y ago modified 4mo ago also EUVD-2018-10846
- cvss
- 7.8
- version 3.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.9%
- EPSS 2.9% chance of exploitation in 30 days, percentile 86%
- public exploits
- 0
- none known
Summary
In Artifex Ghostscript through 9.25, the setpattern operator did not properly validate certain types. A specially crafted PostScript document could exploit this to crash Ghostscript or, possibly, execute arbitrary code in the context of the Ghostscript process. This is a type confusion issue because of failure to check whether the Implementation of a pattern dictionary was a structure type.
Patch / fix
- ghostscript Debian 14, Debian 13, Debian 12 9.26~dfsg-1
debian advisories DEBIAN-CVE-2018-19134
- ghostscript Ubuntu 14.04 LTS 9.26~dfsg+0-0ubuntu0.14.04.1
- ghostscript Ubuntu 16.04 LTS 9.26~dfsg+0-0ubuntu0.16.04.1
- ghostscript Ubuntu 18.04 LTS 9.26~dfsg+0-0ubuntu0.18.04.1
ubuntu advisories UBUNTU-CVE-2018-19134
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- ghostscript RHEL 7 9.07-31.el7_6.6
- ghostscript-gtk RHEL 7 9.07-31.el7_6.6
- ghostscript-cups RHEL 7 9.07-31.el7_6.6
red hat advisories RHSA-2018:3834
Is CVE-2018-19134 in your stack? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2018-19134 updated cvss 7.3
ghostscript: Type confusion in setpattern (700141)
-
Red Hat Enterprise Linux 5 ghostscript Red Hat Enterprise Linux 6 ghostscript, ghostscript-gtkaffected: workaround, no fix planned “Please refer to the "Mitigation" section of CVE-2018-16509 : https://access.redhat.com/security/cve/cve-2018-16509”
-
Red Hat Enterprise Linux Client (v. 7) ghostscript 9.07-31.el7_6.6, ghostscript-cups 9.07-31.el7_6.6 Red Hat Enterprise Linux Client Optional (v. 7) ghostscript-gtk 9.07-31.el7_6.6 Red Hat Enterprise Linux ComputeNode (v. 7) ghostscript 9.07-31.el7_6.6, ghostscript-cups 9.07-31.el7_6.6 Red Hat Enterprise Linux ComputeNode Optional (v. 7) ghostscript-gtk 9.07-31.el7_6.6 Red Hat Enterprise Linux for ARM and IBM Power LE (POWER9) Server (v. 7) ghostscript 9.07-31.el7_6.6, ghostscript-cups 9.07-31.el7_6.6 Red Hat Enterprise Linux for ARM and IBM Power LE (POWER9) Server Optional (v. 7) ghostscript-gtk 9.07-31.el7_6.6fixed: vendor fix “Please refer to the "Mitigation" section of CVE-2018-16509 : https://access.redhat.com/security/cve/cve-2018-16509” RHSA-2018:3834
+4 more productsfewer
Red Hat Enterprise Linux Server (v. 7) ghostscript 9.07-31.el7_6.6, ghostscript-cups 9.07-31.el7_6.6 Red Hat Enterprise Linux Server Optional (v. 7) ghostscript-gtk 9.07-31.el7_6.6 Red Hat Enterprise Linux Workstation (v. 7) ghostscript 9.07-31.el7_6.6, ghostscript-cups 9.07-31.el7_6.6 Red Hat Enterprise Linux Workstation Optional (v. 7) ghostscript-gtk 9.07-31.el7_6.6 -
Red Hat Enterprise Linux 8 libgs, ghostscript, ghostscript-x11, ghostscript-tools-fonts, ghostscript-tools-dvipdf, ghostscript-tools-printingnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
2.87% chance of exploitation in the next 30 days, higher than 86% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- semmle.com https://semmle.com/news/semmle-discovers-severe-vulnerability-ghostscript-postscript-pdf referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.0 | 7.8 | CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 6.8 | AV:N/AC:M/Au:N/C:P/I:P/A:P |
Classification
- Weakness
-
- CWE-704 Incorrect Type Conversion or Cast
References
-
semmle.com
/news/semmle-discovers-severe-vulnerability-ghostscript-postscript-pdf
exploit, third-party-advisory
-
access.redhat.com
/errata/RHSA-2018:3834
vendor-advisory, third-party-advisory
-
bugs.ghostscript.com
/show_bug.cgi?id=700141
issue-tracking, permissions-required, third-party-advisory
- git.ghostscript.com /?p=ghostpdl.git%3Ba=commitdiff%3Bh=693baf02152119af6e6afd30bb8ec76d14f84bbf
-
securityfocus.com
/bid/106278
vdb-entry, third-party-advisory
-
lists.debian.org
/debian-lts-announce/2018/12/msg00019.html
mailing-list, third-party-advisory
-
ghostscript.com
/doc/9.26/News.htm
release-notes
Sources
- CVE List CVE-2018-19134
- NVD CVE-2018-19134
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.