CVE-2018-19475
published 2018-11-23CVE-2018-19475: psi/zdevice2.c in Artifex Ghostscript before 9.26 allows remote attackers to bypass intended access restrictions because available stack space is not checked…
PriorityP350high7.8CVSS 3.0
AVLACLPRNUIRSUCHIHAH
EPSS
9.55%
94.9th percentile
psi/zdevice2.c in Artifex Ghostscript before 9.26 allows remote attackers to bypass intended access restrictions because available stack space is not checked when the device remains the same.
Affected
20 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| artifex | ghostscript | < 9.26 | 9.26 |
| 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 |
| canonical | ubuntu_linux | — | — |
| canonical | ubuntu_linux | — | — |
| canonical | ubuntu_linux | — | — |
| canonical | ubuntu_linux | — | — |
| debian | debian_linux | — | — |
| 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 | — | — |
| redhat | enterprise_linux_server_aus | — | — |
| redhat | enterprise_linux_server_eus | — | — |
| redhat | enterprise_linux_server_tus | — | — |
| redhat | enterprise_linux_workstation | — | — |
| redhat | openshift_container_platform | — | — |
Detection & IOCsextracted from sources · hover to see the quote
- →The vulnerable function is `restore_page_device` in `psi/zdevice2.c`; monitor for Ghostscript processing PS or PDF files that trigger this code path without stack-space validation. ↗
- →Attack vector includes specially-crafted PS or PDF files; also triggers via file-manager thumbnail generation — monitor thumbnail/preview processes spawning Ghostscript. ↗
- ·Red Hat Enterprise Linux 6 will NOT receive a fix; systems running RHEL 6 with Ghostscript remain permanently vulnerable unless mitigated via the CVE-2018-16509 mitigation guidance. ↗
- ·Starting from RHEL 7.6, the thumbnailer is executed in a sandbox, reducing the thumbnail-generation attack surface on that platform. ↗
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.
Ubuntu
Ghostscript vulnerabilities
vendor_ubuntu·2018-11-29
CVE-2018-19409 Ghostscript vulnerabilities
Title: Ghostscript vulnerabilities
Summary: Several security issues were fixed in Ghostscript.
It was discovered that Ghostscript contained multiple security issues. If a
user or automated system were tricked into processing a specially crafted
file, a remote attacker could possibly use these issues to access arbitrary
files, execute arbitrary code, or cause a denial of service.
Instructions: This update uses a new upstream release, which includes additional bug
fixes. In general, a standard system update will make all the necessary
changes.
Red Hat
ghostscript: access bypass in psi/zdevice2.c (700153)
vendor_redhat·2018-11-20·CVSS 7.8
CVE-2018-19475 [HIGH] CWE-119 ghostscript: access bypass in psi/zdevice2.c (700153)
ghostscript: access bypass in psi/zdevice2.c (700153)
psi/zdevice2.c in Artifex Ghostscript before 9.26 allows remote attackers to bypass intended access restrictions because available stack space is not checked when the device remains the same.
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/support/policy/updates/errata/.
Mitigation: Please refer to the "Mitigation" section of CVE-2018-16509 : https://access.redhat.com/security/cve/cve-2018-16509
Package: ghostscript (Red Hat Enterprise L
Debian
CVE-2018-19475: ghostscript - psi/zdevice2.c in Artifex Ghostscript before 9.26 allows remote attackers to byp...
vendor_debian·2018·CVSS 7.8
CVE-2018-19475 [HIGH] CVE-2018-19475: ghostscript - psi/zdevice2.c in Artifex Ghostscript before 9.26 allows remote attackers to byp...
psi/zdevice2.c in Artifex Ghostscript before 9.26 allows remote attackers to bypass intended access restrictions because available stack space is not checked when the device remains the same.
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)
GHSA
GHSA-j38m-c653-jf35: psi/zdevice2
ghsa_unreviewed·2022-05-13
CVE-2018-19475 [HIGH] GHSA-j38m-c653-jf35: psi/zdevice2
psi/zdevice2.c in Artifex Ghostscript before 9.26 allows remote attackers to bypass intended access restrictions because available stack space is not checked when the device remains the same.
OSV
CVE-2018-19475: psi/zdevice2
osv·2018-11-23·CVSS 7.8
CVE-2018-19475 [HIGH] CVE-2018-19475: psi/zdevice2
psi/zdevice2.c in Artifex Ghostscript before 9.26 allows remote attackers to bypass intended access restrictions because available stack space is not checked when the device remains the same.
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2018-19475 ghostscript: access bypass in psi/zdevice2.c (700153)
bugzilla·2018-11-28·CVSS 7.8
CVE-2018-19475 [HIGH] CVE-2018-19475 ghostscript: access bypass in psi/zdevice2.c (700153)
CVE-2018-19475 ghostscript: access bypass in psi/zdevice2.c (700153)
A vulnerability was found in Artifex Ghostscript before 9.26. The restore_page_device function in psi/zdevice2.c allows remote attackers to bypass intended access restrictions because available stack space is not checked when the device remains the same.
References:
https://bugs.ghostscript.com/show_bug.cgi?id=700153
https://www.ghostscript.com/doc/9.26/History9.htm#Version9.26
Upstream Patch:
http://git.ghostscript.com/?p=ghostpdl.git;a=commit;h=3005fcb9bb160af199e761e03bc70a9f249a987e
Discussion:
Created ghostscript tracking bugs for this issue:
Affects: fedora-all [bug 1654460]
---
Mitigation:
Please refer to the "Mitigation" section of CVE-2018-16509 : https://access.redhat.com/security/cve/cve-2018-16509
-
Bugzilla
CVE-2018-19475 ghostscript: access bypass in psi/zdevice2.c (700153) [fedora-all]
bugzilla·2018-11-28·CVSS 7.8
CVE-2018-19475 [HIGH] CVE-2018-19475 ghostscript: access bypass in psi/zdevice2.c (700153) [fedora-all]
CVE-2018-19475 ghostscript: access bypass in psi/zdevice2.c (700153) [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 vers
http://git.ghostscript.com/?p=ghostpdl.git%3Ba=commit%3Bh=3005fcb9bb160af199e761e03bc70a9f249a987ehttp://git.ghostscript.com/?p=ghostpdl.git%3Ba=commit%3Bh=aeea342904978c9fe17d85f4906a0f6fcce2d315http://www.securityfocus.com/bid/106154https://access.redhat.com/errata/RHBA-2019:0327https://access.redhat.com/errata/RHSA-2019:0229https://bugs.ghostscript.com/show_bug.cgi?id=700153https://lists.debian.org/debian-lts-announce/2018/11/msg00036.htmlhttps://semmle.com/news/semmle-discovers-severe-vulnerability-ghostscript-postscript-pdfhttps://usn.ubuntu.com/3831-1/https://www.debian.org/security/2018/dsa-4346https://www.ghostscript.com/doc/9.26/History9.htm#Version9.26http://git.ghostscript.com/?p=ghostpdl.git%3Ba=commit%3Bh=3005fcb9bb160af199e761e03bc70a9f249a987ehttp://git.ghostscript.com/?p=ghostpdl.git%3Ba=commit%3Bh=aeea342904978c9fe17d85f4906a0f6fcce2d315http://www.securityfocus.com/bid/106154https://access.redhat.com/errata/RHBA-2019:0327https://access.redhat.com/errata/RHSA-2019:0229https://bugs.ghostscript.com/show_bug.cgi?id=700153https://lists.debian.org/debian-lts-announce/2018/11/msg00036.htmlhttps://semmle.com/news/semmle-discovers-severe-vulnerability-ghostscript-postscript-pdfhttps://usn.ubuntu.com/3831-1/https://www.debian.org/security/2018/dsa-4346https://www.ghostscript.com/doc/9.26/History9.htm#Version9.26
2018-11-23
Published