CVE-2018-15909
Description
A type confusion in Artifex Ghostscript's .shfill operator allows attackers to crash the interpreter or execute arbitrary code via crafted PostScript files.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
A type confusion in Artifex Ghostscript's .shfill operator allows attackers to crash the interpreter or execute arbitrary code via crafted PostScript files.
Vulnerability
A type confusion vulnerability exists in the .shfill operator in Artifex Ghostscript versions up to 9.23 before the 2018-08-24 patch [1]. The issue allows an attacker to craft a PostScript file that triggers a type confusion when the .shfill operator is executed, potentially leading to memory corruption. The vulnerability is present when Ghostscript processes untrusted PostScript data, including when used by applications such as ImageMagick, GraphicsMagick, evince, or Okular [2].
Exploitation
An attacker can exploit this vulnerability by providing a specially crafted PostScript file that uses the .shfill operator. No authentication is required, and the attack can be triggered remotely via actions as simple as downloading a file from a website or opening a malicious document [2]. Public exploit code exists for this vulnerability [2]. The attack can be carried out without requiring any special user interaction beyond opening the file.
Impact
Successful exploitation could lead to a crash (denial of service) or arbitrary code execution with the privileges of the Ghostscript process [1]. This allows an attacker to execute arbitrary commands with those privileges, potentially compromising the confidentiality, integrity, and availability of the system [2].
Mitigation
Artifex released a fix for this vulnerability on 2018-08-24 [1]. Red Hat Enterprise Linux 7 users should update to ghostscript-9.07-31.el7_6.1 [1]. Gentoo users should upgrade to ghostscript-gpl-9.26 [3]. There is no known workaround other than applying the patch or upgrading to a fixed version [3]. This vulnerability is not listed on the CISA Known Exploited Vulnerabilities (KEV) catalog.
AI Insight generated on May 26, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected products
16- Range: <= 9.23
- osv-coords15 versionspkg:rpm/opensuse/ghostscript&distro=openSUSE%20Tumbleweedpkg:rpm/suse/ghostscript&distro=SUSE%20Enterprise%20Storage%204pkg:rpm/suse/ghostscript&distro=SUSE%20Linux%20Enterprise%20Desktop%2012%20SP3pkg:rpm/suse/ghostscript&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015pkg:rpm/suse/ghostscript&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP1-LTSSpkg:rpm/suse/ghostscript&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP2-BCLpkg:rpm/suse/ghostscript&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP2-LTSSpkg:rpm/suse/ghostscript&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP3pkg:rpm/suse/ghostscript&distro=SUSE%20Linux%20Enterprise%20Server%2012-LTSSpkg:rpm/suse/ghostscript&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP1pkg:rpm/suse/ghostscript&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP2pkg:rpm/suse/ghostscript&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP3pkg:rpm/suse/ghostscript&distro=SUSE%20Linux%20Enterprise%20Software%20Development%20Kit%2012%20SP3pkg:rpm/suse/ghostscript&distro=SUSE%20OpenStack%20Cloud%207pkg:rpm/suse/libspectre&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Desktop%20Applications%2015
< 9.54.0-2.2+ 14 more
- (no CPE)range: < 9.54.0-2.2
- (no CPE)range: < 9.25-23.13.1
- (no CPE)range: < 9.25-23.13.1
- (no CPE)range: < 9.25-3.6.1
- (no CPE)range: < 9.25-23.13.1
- (no CPE)range: < 9.25-23.13.1
- (no CPE)range: < 9.25-23.13.1
- (no CPE)range: < 9.25-23.13.1
- (no CPE)range: < 9.25-23.13.1
- (no CPE)range: < 9.25-23.13.1
- (no CPE)range: < 9.25-23.13.1
- (no CPE)range: < 9.25-23.13.1
- (no CPE)range: < 9.25-23.13.1
- (no CPE)range: < 9.25-23.13.1
- (no CPE)range: < 0.2.8-3.2.1
Patches
0No patches discovered yet.
Vulnerability mechanics
No source-code context for this CVE — mechanics is only generated when we can read the actual fix diff. Without that, the four sections (root cause, attack vector, affected code, fix) would be speculation rather than analysis.
References
10- access.redhat.com/errata/RHSA-2018:3650mitrevendor-advisoryx_refsource_REDHAT
- security.gentoo.org/glsa/201811-12mitrevendor-advisoryx_refsource_GENTOO
- usn.ubuntu.com/3768-1/mitrevendor-advisoryx_refsource_UBUNTU
- git.ghostscript.commitrex_refsource_MISC
- git.ghostscript.commitrex_refsource_MISC
- www.securityfocus.com/bid/105178mitrevdb-entryx_refsource_BID
- kb.pulsesecure.net/articles/Pulse_Security_Advisories/SA44101mitrex_refsource_CONFIRM
- lists.debian.org/debian-lts-announce/2018/09/msg00015.htmlmitremailing-listx_refsource_MLIST
- support.f5.com/csp/article/K24803507mitrex_refsource_CONFIRM
- www.kb.cert.org/vuls/id/332928mitrex_refsource_MISC
News mentions
0No linked articles in our index yet.