CVE-2018-19134
published 2018-12-20CVE-2018-19134: In Artifex Ghostscript through 9.25, the setpattern operator did not properly validate certain types. A specially crafted PostScript document could exploit…
PriorityP340high7.8CVSS 3.0
AVLACLPRNUIRSUCHIHAH
EPSS
2.87%
85.4th percentile
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.
Affected
12 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| artifex | ghostscript | <= 9.25 | — |
| artifex | ghostscript | >= 0 < 9.26~dfsg-1 | 9.26~dfsg-1 |
| artifex | ghostscript | >= 0 < 9.26~dfsg-1 | 9.26~dfsg-1 |
| artifex | ghostscript | >= 0 < 9.26~dfsg-1 | 9.26~dfsg-1 |
| artifex | ghostscript | >= 0 < 9.26~dfsg-1 | 9.26~dfsg-1 |
| debian | debian_linux | — | — |
| debian | ghostscript | < ghostscript 9.26~dfsg-1 (bookworm) | ghostscript 9.26~dfsg-1 (bookworm) |
| redhat | enterprise_linux_desktop | — | — |
| redhat | enterprise_linux_server | — | — |
| redhat | enterprise_linux_server_aus | — | — |
| redhat | enterprise_linux_server_eus | — | — |
| redhat | enterprise_linux_workstation | — | — |
CVSS provenance
nvdv3.07.8HIGHCVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
nvdv2.06.8MEDIUMAV:N/AC:M/Au:N/C:P/I:P/A:P
osv7.8HIGH
vendor_debian7.8HIGH
vendor_redhat7.8HIGH
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
GHSA
GHSA-r77j-73rg-4f8h: In Artifex Ghostscript through 9
ghsa_unreviewed·2022-05-14
CVE-2018-19134 [HIGH] CWE-704 GHSA-r77j-73rg-4f8h: In Artifex Ghostscript through 9
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.
OSV
CVE-2018-19134: In Artifex Ghostscript through 9
osv·2018-12-20·CVSS 7.8
CVE-2018-19134 [HIGH] CVE-2018-19134: In Artifex Ghostscript through 9
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.
Red Hat
ghostscript: Type confusion in setpattern (700141)
vendor_redhat·2018-11-20·CVSS 7.8
CVE-2018-19134 [HIGH] ghostscript: Type confusion in setpattern (700141)
ghostscript: Type confusion in setpattern (700141)
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.
Statement: Red Hat Enterprise Linux 6 is now in Maintenance Support 2 Phase of the support and maintenance life cycle. This has been rated as having a security impact of Important, and is not currently planned to be addressed in future updates. For additional information, refer to the Red Hat Enterprise Linux Life Cycle: https://access.redhat.com/supp
Debian
CVE-2018-19134: ghostscript - In Artifex Ghostscript through 9.25, the setpattern operator did not properly va...
vendor_debian·2018·CVSS 7.8
CVE-2018-19134 [HIGH] CVE-2018-19134: ghostscript - In Artifex Ghostscript through 9.25, the setpattern operator did not properly va...
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.
Scope: local
bookworm: resolved (fixed in 9.26~dfsg-1)
bullseye: resolved (fixed in 9.26~dfsg-1)
forky: resolved (fixed in 9.26~dfsg-1)
sid: resolved (fixed in 9.26~dfsg-1)
trixie: resolved (fixed in 9.26~dfsg-1)
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2018-19134 ghostscript: Type confusion in setpattern (700141) [fedora-all]
bugzilla·2018-12-05·CVSS 7.8
CVE-2018-19134 [HIGH] CVE-2018-19134 ghostscript: Type confusion in setpattern (700141) [fedora-all]
CVE-2018-19134 ghostscript: Type confusion in setpattern (700141) [fedora-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of fedora-all.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
NOTE: this issue affects multiple supported version
Bugzilla
CVE-2018-19134 ghostscript: Type confusion in setpattern (700141)
bugzilla·2018-12-03·CVSS 7.8
CVE-2018-19134 [HIGH] CVE-2018-19134 ghostscript: Type confusion in setpattern (700141)
CVE-2018-19134 ghostscript: Type confusion in setpattern (700141)
There is a missing type check in line 292 of zcolor.c:
http://git.ghostscript.com/?p=ghostpdl.git;a=blob;f=psi/zcolor.c;h=74b428801eda5c75d70cf55e88c407484b554527;hb=5a4fec2a34af925993192e197ab666fe542b79d3#l292
Here `pPatInst` comes from the first array element of `pImpl`
http://git.ghostscript.com/?p=ghostpdl.git;a=blob;f=psi/zcolor.c;h=74b428801eda5c75d70cf55e88c407484b554527;hb=5a4fec2a34af925993192e197ab666fe542b79d3#l289
which comes from `op`:
http://git.ghostscript.com/?p=ghostpdl.git;a=blob;f=psi/zcolor.c;h=74b428801eda5c75d70cf55e88c407484b554527;hb=5a4fec2a34af925993192e197ab666fe542b79d3#l286
The type of `pPatInst` is not checked and is used in `r_ptr`, which accesses its `pstruct` value and then cast it in
http://git.ghostscript.com/?p=ghostpdl.git%3Ba=commitdiff%3Bh=693baf02152119af6e6afd30bb8ec76d14f84bbfhttp://www.securityfocus.com/bid/106278https://access.redhat.com/errata/RHSA-2018:3834https://bugs.ghostscript.com/show_bug.cgi?id=700141https://lists.debian.org/debian-lts-announce/2018/12/msg00019.htmlhttps://semmle.com/news/semmle-discovers-severe-vulnerability-ghostscript-postscript-pdfhttps://www.ghostscript.com/doc/9.26/News.htmhttp://git.ghostscript.com/?p=ghostpdl.git%3Ba=commitdiff%3Bh=693baf02152119af6e6afd30bb8ec76d14f84bbfhttp://www.securityfocus.com/bid/106278https://access.redhat.com/errata/RHSA-2018:3834https://bugs.ghostscript.com/show_bug.cgi?id=700141https://lists.debian.org/debian-lts-announce/2018/12/msg00019.htmlhttps://semmle.com/news/semmle-discovers-severe-vulnerability-ghostscript-postscript-pdfhttps://www.ghostscript.com/doc/9.26/News.htm
2018-12-20
Published