CVE-2019-14817
Description
Ghostscript before 9.50 allows SAFER mode bypass via .pdfexectoken and other procedures, enabling arbitrary file access and command execution from a crafted PostScript file.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Ghostscript before 9.50 allows SAFER mode bypass via .pdfexectoken and other procedures, enabling arbitrary file access and command execution from a crafted PostScript file.
Vulnerability
A flaw in Ghostscript versions prior to 9.50 allows specially crafted PostScript files to bypass the -dSAFER security restrictions [3]. The vulnerability resides in the .pdfexectoken procedure and other internal procedures that improperly handle privileged calls, exposing .forceput operators on the stack [3]. An attacker can exploit this to disable SAFER and gain unrestricted access to the file system or execute arbitrary commands [3]. All Ghostscript versions up to and including 9.27 are affected [3].
Exploitation
An attacker can exploit this vulnerability by crafting a malicious PostScript file that invokes the .pdfexectoken procedure or similar routines, leveraging exposed .forceput operators to disable SAFER protections [3]. No authentication or special privileges are required; the attacker only needs to convince a user or automated process to process the malicious file with a vulnerable version of Ghostscript [3]. Once SAFER is disabled, the attacker can then execute arbitrary file operations or system commands [3].
Impact
Successful exploitation results in a complete compromise of confidentiality, integrity, and availability. An attacker can read, write, or delete arbitrary files on the system, and execute arbitrary commands with the privileges of the Ghostscript process [3]. This effectively bypasses the sandbox protections intended to restrict untrusted PostScript code [3].
Mitigation
A fix was released in Ghostscript version 9.50 [1][2][3]. Users should update to Ghostscript 9.50 or later. Red Hat has released updates for OpenShift Container Platform (RHBA-2019:2824 and RHSA-2019:2594) that include the patched Ghostscript [1][2]. Fedora package announcements have also been issued [4]. If updating is not immediately possible, avoid processing untrusted PostScript or PDF files with vulnerable Ghostscript 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
30- Range: <9.50
- osv-coords28 versionspkg:rpm/opensuse/ghostscript&distro=openSUSE%20Leap%2015.0pkg:rpm/opensuse/ghostscript&distro=openSUSE%20Leap%2015.1pkg:rpm/opensuse/ghostscript&distro=openSUSE%20Tumbleweedpkg:rpm/opensuse/ghostscript-mini&distro=openSUSE%20Leap%2015.0pkg:rpm/opensuse/ghostscript-mini&distro=openSUSE%20Leap%2015.1pkg:rpm/suse/ghostscript&distro=HPE%20Helion%20OpenStack%208pkg:rpm/suse/ghostscript&distro=SUSE%20Enterprise%20Storage%204pkg:rpm/suse/ghostscript&distro=SUSE%20Enterprise%20Storage%205pkg: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%20Module%20for%20Basesystem%2015%20SP1pkg: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%20SP3-BCLpkg:rpm/suse/ghostscript&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP3-LTSSpkg:rpm/suse/ghostscript&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP4pkg:rpm/suse/ghostscript&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP5pkg: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%20Server%20for%20SAP%20Applications%2012%20SP5pkg:rpm/suse/ghostscript&distro=SUSE%20Linux%20Enterprise%20Software%20Development%20Kit%2012%20SP4pkg:rpm/suse/ghostscript&distro=SUSE%20Linux%20Enterprise%20Software%20Development%20Kit%2012%20SP5pkg:rpm/suse/ghostscript&distro=SUSE%20OpenStack%20Cloud%207pkg:rpm/suse/ghostscript&distro=SUSE%20OpenStack%20Cloud%208pkg:rpm/suse/ghostscript&distro=SUSE%20OpenStack%20Cloud%20Crowbar%208
< 9.27-lp150.2.23.1+ 27 more
- (no CPE)range: < 9.27-lp150.2.23.1
- (no CPE)range: < 9.27-lp151.3.6.1
- (no CPE)range: < 9.54.0-2.2
- (no CPE)range: < 9.27-lp150.2.23.1
- (no CPE)range: < 9.27-lp151.3.6.1
- (no CPE)range: < 9.27-23.28.1
- (no CPE)range: < 9.27-23.28.1
- (no CPE)range: < 9.27-23.28.1
- (no CPE)range: < 9.27-23.28.1
- (no CPE)range: < 9.27-3.21.1
- (no CPE)range: < 9.27-3.21.1
- (no CPE)range: < 9.27-23.28.1
- (no CPE)range: < 9.27-23.28.1
- (no CPE)range: < 9.27-23.28.1
- (no CPE)range: < 9.27-23.28.1
- (no CPE)range: < 9.27-23.28.1
- (no CPE)range: < 9.27-23.28.1
- (no CPE)range: < 9.27-23.28.1
- (no CPE)range: < 9.27-23.28.1
- (no CPE)range: < 9.27-23.28.1
- (no CPE)range: < 9.27-23.28.1
- (no CPE)range: < 9.27-23.28.1
- (no CPE)range: < 9.27-23.28.1
- (no CPE)range: < 9.27-23.28.1
- (no CPE)range: < 9.27-23.28.1
- (no CPE)range: < 9.27-23.28.1
- (no CPE)range: < 9.27-23.28.1
- (no CPE)range: < 9.27-23.28.1
- Range: ghostscript versions prior to 9.28
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
13- lists.opensuse.org/opensuse-security-announce/2019-09/msg00088.htmlmitrevendor-advisoryx_refsource_SUSE
- lists.opensuse.org/opensuse-security-announce/2019-09/msg00090.htmlmitrevendor-advisoryx_refsource_SUSE
- access.redhat.com/errata/RHBA-2019:2824mitrevendor-advisoryx_refsource_REDHAT
- access.redhat.com/errata/RHSA-2019:2594mitrevendor-advisoryx_refsource_REDHAT
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6AATIHU32MYKUOXQDJQU4X4DDVL7NAY3/mitrevendor-advisoryx_refsource_FEDORA
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LBUC4DBBJTRFNCR3IODBV4IXB2C2HI3V/mitrevendor-advisoryx_refsource_FEDORA
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZP34D27RKYV2POJ3NJLSVCHUA5V5C45A/mitrevendor-advisoryx_refsource_FEDORA
- security.gentoo.org/glsa/202004-03mitrevendor-advisoryx_refsource_GENTOO
- www.debian.org/security/2019/dsa-4518mitrevendor-advisoryx_refsource_DEBIAN
- git.ghostscript.commitrex_refsource_CONFIRM
- bugzilla.redhat.com/show_bug.cgimitrex_refsource_CONFIRM
- lists.debian.org/debian-lts-announce/2019/09/msg00007.htmlmitremailing-listx_refsource_MLIST
- seclists.org/bugtraq/2019/Sep/15mitremailing-listx_refsource_BUGTRAQ
News mentions
0No linked articles in our index yet.