CVE-2018-18284
Description
Ghostscript 9.25 and earlier allows sandbox escape via the 1Policy operator, which exposes .forceput and enables arbitrary code execution.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Ghostscript 9.25 and earlier allows sandbox escape via the 1Policy operator, which exposes .forceput and enables arbitrary code execution.
Vulnerability
Artifex Ghostscript versions 9.25 and earlier contain a sandbox bypass vulnerability in the 1Policy operator. The operator was marked as executeonly and made a pseudo-operator, but it was essentially a wrapper around .forceput, allowing an attacker to access internal system procedures and bypass the sandbox restrictions [2].
Exploitation
An attacker can exploit this vulnerability by supplying a crafted PostScript file to a user or service that processes it with Ghostscript. The exploit involves defining a procedure that uses .policyprocs to retrieve the 1Policy operator and then invoke .forceput to modify protected dictionaries [2]. No authentication is required; only user interaction (e.g., opening a malicious file) is needed.
Impact
Successful exploitation allows an attacker to execute arbitrary code with the privileges of the Ghostscript process, leading to full system compromise, including potential data disclosure, modification, or denial of service [2][4].
Mitigation
The vulnerability is fixed in Ghostscript version 9.26. Red Hat has released updated packages (ghostscript-9.07-31.el7_6.6) for Red Hat Enterprise Linux 7 [1]. Gentoo recommends upgrading to >=app-text/ghostscript-gpl-9.26 [4]. No known workaround exists for unpatched versions.
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
36- Range: <=9.25
- osv-coords35 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%20Desktop%2012%20SP4pkg: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%20SP4pkg: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%20Server%20for%20SAP%20Applications%2012%20SP4pkg:rpm/suse/ghostscript&distro=SUSE%20Linux%20Enterprise%20Software%20Development%20Kit%2012%20SP3pkg:rpm/suse/ghostscript&distro=SUSE%20Linux%20Enterprise%20Software%20Development%20Kit%2012%20SP4pkg:rpm/suse/ghostscript&distro=SUSE%20OpenStack%20Cloud%207pkg:rpm/suse/libspectre&distro=SUSE%20Enterprise%20Storage%204pkg:rpm/suse/libspectre&distro=SUSE%20Linux%20Enterprise%20Desktop%2012%20SP3pkg:rpm/suse/libspectre&distro=SUSE%20Linux%20Enterprise%20Desktop%2012%20SP4pkg:rpm/suse/libspectre&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Desktop%20Applications%2015pkg:rpm/suse/libspectre&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP1-LTSSpkg:rpm/suse/libspectre&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP2-BCLpkg:rpm/suse/libspectre&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP2-LTSSpkg:rpm/suse/libspectre&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP3pkg:rpm/suse/libspectre&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP4pkg:rpm/suse/libspectre&distro=SUSE%20Linux%20Enterprise%20Server%2012-LTSSpkg:rpm/suse/libspectre&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP1pkg:rpm/suse/libspectre&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP2pkg:rpm/suse/libspectre&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP3pkg:rpm/suse/libspectre&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP4pkg:rpm/suse/libspectre&distro=SUSE%20Linux%20Enterprise%20Software%20Development%20Kit%2012%20SP3pkg:rpm/suse/libspectre&distro=SUSE%20Linux%20Enterprise%20Software%20Development%20Kit%2012%20SP4pkg:rpm/suse/libspectre&distro=SUSE%20OpenStack%20Cloud%207
< 9.54.0-2.2+ 34 more
- (no CPE)range: < 9.54.0-2.2
- (no CPE)range: < 9.26-23.16.1
- (no CPE)range: < 9.26-23.16.1
- (no CPE)range: < 9.26-23.16.1
- (no CPE)range: < 9.26-3.9.4
- (no CPE)range: < 9.26-23.16.1
- (no CPE)range: < 9.26-23.16.1
- (no CPE)range: < 9.26-23.16.1
- (no CPE)range: < 9.26-23.16.1
- (no CPE)range: < 9.26-23.16.1
- (no CPE)range: < 9.26-23.16.1
- (no CPE)range: < 9.26-23.16.1
- (no CPE)range: < 9.26-23.16.1
- (no CPE)range: < 9.26-23.16.1
- (no CPE)range: < 9.26-23.16.1
- (no CPE)range: < 9.26-23.16.1
- (no CPE)range: < 9.26-23.16.1
- (no CPE)range: < 9.26-23.16.1
- (no CPE)range: < 0.2.7-12.4.1
- (no CPE)range: < 0.2.7-12.4.1
- (no CPE)range: < 0.2.7-12.4.1
- (no CPE)range: < 0.2.8-3.4.3
- (no CPE)range: < 0.2.7-12.4.1
- (no CPE)range: < 0.2.7-12.4.1
- (no CPE)range: < 0.2.7-12.4.1
- (no CPE)range: < 0.2.7-12.4.1
- (no CPE)range: < 0.2.7-12.4.1
- (no CPE)range: < 0.2.7-12.4.1
- (no CPE)range: < 0.2.7-12.4.1
- (no CPE)range: < 0.2.7-12.4.1
- (no CPE)range: < 0.2.7-12.4.1
- (no CPE)range: < 0.2.7-12.4.1
- (no CPE)range: < 0.2.7-12.4.1
- (no CPE)range: < 0.2.7-12.4.1
- (no CPE)range: < 0.2.7-12.4.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
11- access.redhat.com/errata/RHSA-2018:3834mitrevendor-advisoryx_refsource_REDHAT
- security.gentoo.org/glsa/201811-12mitrevendor-advisoryx_refsource_GENTOO
- usn.ubuntu.com/3803-1/mitrevendor-advisoryx_refsource_UBUNTU
- www.debian.org/security/2018/dsa-4336mitrevendor-advisoryx_refsource_DEBIAN
- www.openwall.com/lists/oss-security/2018/10/16/2mitremailing-listx_refsource_MLIST
- www.securityfocus.com/bid/107451mitrevdb-entryx_refsource_BID
- bugs.chromium.org/p/project-zero/issues/detailmitrex_refsource_MISC
- bugs.ghostscript.com/show_bug.cgimitrex_refsource_MISC
- kb.pulsesecure.net/articles/Pulse_Security_Advisories/SA44101mitrex_refsource_CONFIRM
- lists.debian.org/debian-lts-announce/2018/10/msg00013.htmlmitremailing-listx_refsource_MLIST
- support.f5.com/csp/article/K22141757mitrex_refsource_CONFIRM
News mentions
0No linked articles in our index yet.