CVE-2019-14812
Description
Ghostscript 9.x before 9.50 does not properly secure privileged calls in .setuserparams2, allowing a crafted PostScript file to bypass -dSAFER restrictions and access the file system or execute arbitrary commands.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Ghostscript 9.x before 9.50 does not properly secure privileged calls in .setuserparams2, allowing a crafted PostScript file to bypass -dSAFER restrictions and access the file system or execute arbitrary commands.
Vulnerability
A flaw exists in all Ghostscript versions 9.x before 9.50 [1]. The .setuserparams2 procedure does not properly secure its privileged calls, enabling scripts to bypass -dSAFER restrictions [1]. When hooking errors, certain ephemeral routines in .setuserparams2 can expose the .forceput operator, which can be used to modify system parameters and disable security protections [2]. The vulnerable code path is reachable via setuserparams [2].
Exploitation
An attacker needs to provide a specially crafted PostScript file to a target using a vulnerable Ghostscript version [1]. The attacker must have a way to invoke Ghostscript with the malicious file, such as through a service that processes uploaded files or email attachments. No authentication or special network position is required beyond the ability to upload or deliver the PostScript file. The exploit sequence involves triggering .setuserparams2 via setuserparams, which then exposes .forceput to disable -dSAFER and then access the file system or execute arbitrary commands [2].
Impact
Successful exploitation allows an attacker to bypass -dSAFER restrictions, leading to access to the file system or arbitrary command execution [1]. The attacker gains the ability to read, write, or execute files outside the restricted area, potentially leading to full system compromise depending on the privileges of the Ghostscript process [1][2].
Mitigation
Upgrade to Ghostscript version 9.50 or later, which contains the fix [1][2]. The upstream fix can be found in commit 885444fcbe10dc42787ecb76686c8ee4dd33bf33 [2]. No workaround is available for unpatched versions. Red Hat also provides mitigation guidance in their advisory for CVE-2018-16509 [2].
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
29- Range: >=9.0, <9.50
- osv-coords27 versionspkg:rpm/opensuse/ghostscript&distro=openSUSE%20Leap%2015.0pkg:rpm/opensuse/ghostscript&distro=openSUSE%20Leap%2015.1pkg: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+ 26 more
- (no CPE)range: < 9.27-lp150.2.23.1
- (no CPE)range: < 9.27-lp151.3.6.1
- (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
- Red Hat/ghostscriptv5Range: all ghostscript versions 9.x before 9.50
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
6- security.gentoo.org/glsa/202004-03mitrevendor-advisoryx_refsource_GENTOO
- git.ghostscript.commitrex_refsource_CONFIRM
- access.redhat.com/security/cve/cve-2019-14812mitrex_refsource_CONFIRM
- bugs.ghostscript.com/show_bug.cgimitrex_refsource_CONFIRM
- bugzilla.redhat.com/show_bug.cgimitrex_refsource_CONFIRM
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LBUC4DBBJTRFNCR3IODBV4IXB2C2HI3V/mitrex_refsource_CONFIRM
News mentions
0No linked articles in our index yet.