CVE-2019-14812
published 2019-11-27CVE-2019-14812: A flaw was found in all ghostscript versions 9.x before 9.50, in the .setuserparams2 procedure where it did not properly secure its privileged calls, enabling…
PriorityP344high7.8CVSS 3.1
AVLACLPRNUIRSUCHIHAH
EPSS
2.47%
82.7th percentile
A flaw was found in all ghostscript versions 9.x before 9.50, in the .setuserparams2 procedure where it did not properly secure its privileged calls, enabling scripts to bypass `-dSAFER` restrictions. A specially crafted PostScript file could disable security protection and then have access to the file system, or execute arbitrary commands.
Affected
10 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| artifex | ghostscript | >= 0 < 9.28~~rc2~dfsg-1 | 9.28~~rc2~dfsg-1 |
| artifex | ghostscript | >= 0 < 9.28~~rc2~dfsg-1 | 9.28~~rc2~dfsg-1 |
| artifex | ghostscript | >= 0 < 9.28~~rc2~dfsg-1 | 9.28~~rc2~dfsg-1 |
| artifex | ghostscript | >= 0 < 9.28~~rc2~dfsg-1 | 9.28~~rc2~dfsg-1 |
| artifex | ghostscript | >= 0 < 9.26~dfsg+0-0ubuntu0.16.04.11 | 9.26~dfsg+0-0ubuntu0.16.04.11 |
| artifex | ghostscript | >= 0 < 9.26~dfsg+0-0ubuntu0.18.04.11 | 9.26~dfsg+0-0ubuntu0.18.04.11 |
| artifex | ghostscript | >= 9.00 < 9.50 | 9.50 |
| debian | ghostscript | < ghostscript 9.28~~rc2~dfsg-1 (bookworm) | ghostscript 9.28~~rc2~dfsg-1 (bookworm) |
| fedoraproject | fedora | — | — |
| red_hat | ghostscript | — | — |
CVSS provenance
nvdv3.17.8HIGHCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
nvdv3.07.3HIGHCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
nvdv2.06.8MEDIUMAV:N/AC:M/Au:N/C:P/I:P/A:P
osv7.8HIGH
vendor_debian7.8HIGH
vendor_redhat7.8HIGH
vendor_ubuntu7.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.
GHSA
GHSA-rmmv-j9x6-f2v4: A flaw was found in all ghostscript versions 9
ghsa_unreviewed·2022-05-24
CVE-2019-14812 [MEDIUM] GHSA-rmmv-j9x6-f2v4: A flaw was found in all ghostscript versions 9
A flaw was found in all ghostscript versions 9.x before 9.50, in the .setuserparams2 procedure where it did not properly secure its privileged calls, enabling scripts to bypass `-dSAFER` restrictions. A specially crafted PostScript file could disable security protection and then have access to the file system, or execute arbitrary commands.
OSV
CVE-2019-14812: A flaw was found in all ghostscript versions 9
osv·2019-11-27·CVSS 7.8
CVE-2019-14812 [HIGH] CVE-2019-14812: A flaw was found in all ghostscript versions 9
A flaw was found in all ghostscript versions 9.x before 9.50, in the .setuserparams2 procedure where it did not properly secure its privileged calls, enabling scripts to bypass `-dSAFER` restrictions. A specially crafted PostScript file could disable security protection and then have access to the file system, or execute arbitrary commands.
OSV
ghostscript vulnerabilities
osv·2019-08-29·CVSS 7.8
CVE-2019-14811 [HIGH] ghostscript vulnerabilities
ghostscript vulnerabilities
Hiroki Matsukuma discovered that the PDF interpreter in Ghostscript
did not properly restrict privileged calls when ‘-dSAFER’
restrictions were in effect. If a user or automated system were
tricked into processing a specially crafted file, a remote attacker
could possibly use this issue to access arbitrary files.
(CVE-2019-14811, CVE-2019-14812, CVE-2019-14813, CVE-2019-14817)
Ubuntu
Ghostscript vulnerabilities
vendor_ubuntu·2019-08-29·CVSS 7.8
CVE-2019-14811 [HIGH] Ghostscript vulnerabilities
Title: Ghostscript vulnerabilities
Summary: Ghostscript could be made to access arbitrary files if it opened a
specially crafted file.
Hiroki Matsukuma discovered that the PDF interpreter in Ghostscript
did not properly restrict privileged calls when ‘-dSAFER’
restrictions were in effect. If a user or automated system were
tricked into processing a specially crafted file, a remote attacker
could possibly use this issue to access arbitrary files.
(CVE-2019-14811, CVE-2019-14812, CVE-2019-14813, CVE-2019-14817)
Instructions: In general, a standard system update will make all the necessary changes.
Red Hat
ghostscript: Safer mode bypass by .forceput exposure in setuserparams (701444)
vendor_redhat·2019-08-28·CVSS 7.8
CVE-2019-14812 [HIGH] CWE-648 ghostscript: Safer mode bypass by .forceput exposure in setuserparams (701444)
ghostscript: Safer mode bypass by .forceput exposure in setuserparams (701444)
A flaw was found in all ghostscript versions 9.x before 9.50, in the .setuserparams2 procedure where it did not properly secure its privileged calls, enabling scripts to bypass `-dSAFER` restrictions. A specially crafted PostScript file could disable security protection and then have access to the file system, or execute arbitrary commands.
A flaw was found in the .setuserparams2 procedure where it did not properly secure its privileged calls, enabling scripts to bypass `-dSAFER` restrictions. A specially crafted PostScript file could disable security protection and then have access to the file system, or execute arbitrary commands.
Mitigation: Please refer to the "Mitigation" section of CVE-2018-16509 : http
Debian
CVE-2019-14812: ghostscript - A flaw was found in all ghostscript versions 9.x before 9.50, in the .setuserpar...
vendor_debian·2019·CVSS 7.8
CVE-2019-14812 [HIGH] CVE-2019-14812: ghostscript - A flaw was found in all ghostscript versions 9.x before 9.50, in the .setuserpar...
A flaw was found in all ghostscript versions 9.x before 9.50, in the .setuserparams2 procedure where it did not properly secure its privileged calls, enabling scripts to bypass `-dSAFER` restrictions. A specially crafted PostScript file could disable security protection and then have access to the file system, or execute arbitrary commands.
Scope: local
bookworm: resolved (fixed in 9.28~~rc2~dfsg-1)
bullseye: resolved (fixed in 9.28~~rc2~dfsg-1)
forky: resolved (fixed in 9.28~~rc2~dfsg-1)
sid: resolved (fixed in 9.28~~rc2~dfsg-1)
trixie: resolved (fixed in 9.28~~rc2~dfsg-1)
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2019-14812 ghostscript: Safer mode bypass by .forceput exposure in setuserparams (701444) [fedora-all]
bugzilla·2019-09-02·CVSS 7.8
CVE-2019-14812 [HIGH] CVE-2019-14812 ghostscript: Safer mode bypass by .forceput exposure in setuserparams (701444) [fedora-all]
CVE-2019-14812 ghostscript: Safer mode bypass by .forceput exposure in setuserparams (701444) [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 affect
Bugzilla
CVE-2019-14812 ghostscript: Safer mode bypass by .forceput exposure in setuserparams (701444)
bugzilla·2019-08-20·CVSS 7.8
CVE-2019-14812 [HIGH] CVE-2019-14812 ghostscript: Safer mode bypass by .forceput exposure in setuserparams (701444)
CVE-2019-14812 ghostscript: Safer mode bypass by .forceput exposure in setuserparams (701444)
In Ghostscript 9.27, some ephemeral routines in .setuserparams2 can expose .forceput operator when hooking errors. This issue is similar to upstream bug https://bugs.ghostscript.com/show_bug.cgi?id=700317.
The actual root-cause is in .setuserparams2 however there is no direct path to invoke the operator.
http://git.ghostscript.com/?p=ghostpdl.git;a=blob;f=Resource/Init/gs_lev2.ps;h=98d55fe74251e2b8f384a0a97d0a92a9f88949b6;hb=ebfaa2db4cb518a2bc99c1532d4429201a13dfab#l156
156 /userparams .systemvar 3 1 roll .forceput % userparams is read-only
157 } executeonly
158 {
159 pop pop
160 } ifelse
161 } forall
We can reach .setuserparams2 via setuserparams.
http://git.ghostscript.com/?p=ghostpdl.git;
http://git.ghostscript.com/?p=ghostpdl.git%3Ba=commitdiff%3Bh=885444fcbe10dc42787ecb76686c8ee4dd33bf33https://access.redhat.com/security/cve/cve-2019-14812https://bugs.ghostscript.com/show_bug.cgi?id=701444https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2019-14812https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LBUC4DBBJTRFNCR3IODBV4IXB2C2HI3V/https://security.gentoo.org/glsa/202004-03http://git.ghostscript.com/?p=ghostpdl.git%3Ba=commitdiff%3Bh=885444fcbe10dc42787ecb76686c8ee4dd33bf33https://access.redhat.com/security/cve/cve-2019-14812https://bugs.ghostscript.com/show_bug.cgi?id=701444https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2019-14812https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LBUC4DBBJTRFNCR3IODBV4IXB2C2HI3V/https://security.gentoo.org/glsa/202004-03
2019-11-27
Published