CVE-2019-14813
published 2019-09-06CVE-2019-14813: A flaw was found in ghostscript, versions 9.x before 9.50, in the setsystemparams procedure where it did not properly secure its privileged calls, enabling…
PriorityP266critical9.8CVSS 3.1
AVNACLPRNUINSUCHIHAH
EPSS
11.40%
95.5th percentile
A flaw was found in ghostscript, versions 9.x before 9.50, in the setsystemparams 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
27 ranges· showing 25
| 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 | — |
| artifex_software | ghostscript | — | — |
| debian | debian_linux | — | — |
| debian | debian_linux | — | — |
| debian | debian_linux | — | — |
| debian | ghostscript | < ghostscript 9.28~~rc2~dfsg-1 (bookworm) | ghostscript 9.28~~rc2~dfsg-1 (bookworm) |
| fedoraproject | fedora | — | — |
| fedoraproject | fedora | — | — |
| fedoraproject | fedora | — | — |
| opensuse | leap | — | — |
| opensuse | leap | — | — |
| redhat | enterprise_linux | — | — |
| redhat | enterprise_linux | — | — |
| redhat | enterprise_linux_desktop | — | — |
| redhat | enterprise_linux_server | — | — |
| redhat | enterprise_linux_server_aus | — | — |
| redhat | enterprise_linux_server_eus | — | — |
| redhat | enterprise_linux_server_tus | — | — |
| redhat | enterprise_linux_workstation | — | — |
Detection & IOCsextracted from sources · hover to see the quote
- →The vulnerability resides in the `setsystemparams` procedure in Ghostscript, which improperly exposes the `.forceput` operator, allowing bypass of `-dSAFER` restrictions. Monitor for PostScript files invoking `.forceput` via `setsystemparams` error-hooking paths. ↗
- →The specific vulnerable code path is in `gs_lev2.ps` around line 227, where `//pssystemparams 3 1 roll .forceput` is reachable via ephemeral routines in `setsystemparams`. Inspect PostScript content for attempts to reach this code path. ↗
- →A specially crafted PostScript file is the attack vector. Scan incoming PostScript or PDF files processed by Ghostscript 9.x before 9.50 for use of `setsystemparams` combined with `.forceput` operator exposure. ↗
- →The upstream fix commit is at http://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=885444fcbe10dc42787ecb76686c8ee4dd33bf33 — use this to identify patched vs. unpatched Ghostscript binaries. ↗
- ·The `-dSAFER` flag in Ghostscript versions 9.x before 9.50 does NOT reliably sandbox PostScript execution due to this flaw. Do not rely on `-dSAFER` as a security boundary on unpatched versions. ↗
- ·This vulnerability affects Ghostscript versions 9.x before 9.50. Installations running any 9.x release prior to 9.50 are vulnerable regardless of `-dSAFER` usage. ↗
CVSS provenance
nvdv3.19.8CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/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.07.5HIGHAV:N/AC:L/Au:N/C:P/I:P/A:P
osv9.8CRITICAL
vendor_debian9.8CRITICAL
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.
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 setsystemparams (701443)
vendor_redhat·2019-08-28·CVSS 7.8
CVE-2019-14813 [HIGH] CWE-648 ghostscript: Safer mode bypass by .forceput exposure in setsystemparams (701443)
ghostscript: Safer mode bypass by .forceput exposure in setsystemparams (701443)
A flaw was found in ghostscript, versions 9.x before 9.50, in the setsystemparams 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 setsystemparams 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 : https
Debian
CVE-2019-14813: ghostscript - A flaw was found in ghostscript, versions 9.x before 9.50, in the setsystemparam...
vendor_debian·2019·CVSS 9.8
CVE-2019-14813 [CRITICAL] CVE-2019-14813: ghostscript - A flaw was found in ghostscript, versions 9.x before 9.50, in the setsystemparam...
A flaw was found in ghostscript, versions 9.x before 9.50, in the setsystemparams 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)
GHSA
GHSA-r3w6-mj6m-w4m6: A flaw was found in ghostscript, versions 9
ghsa_unreviewed·2022-05-24
CVE-2019-14813 [CRITICAL] GHSA-r3w6-mj6m-w4m6: A flaw was found in ghostscript, versions 9
A flaw was found in ghostscript, versions 9.x before 9.28, in the setsystemparams 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-14813: A flaw was found in ghostscript, versions 9
osv·2019-09-06·CVSS 9.8
CVE-2019-14813 [CRITICAL] CVE-2019-14813: A flaw was found in ghostscript, versions 9
A flaw was found in ghostscript, versions 9.x before 9.50, in the setsystemparams 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)
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2019-14813 ghostscript: Safer mode bypass by .forceput exposure in setsystemparams (701443) [fedora-all]
bugzilla·2019-09-02·CVSS 9.8
CVE-2019-14813 [CRITICAL] CVE-2019-14813 ghostscript: Safer mode bypass by .forceput exposure in setsystemparams (701443) [fedora-all]
CVE-2019-14813 ghostscript: Safer mode bypass by .forceput exposure in setsystemparams (701443) [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 affe
Bugzilla
CVE-2019-14813 ghostscript: Safer mode bypass by .forceput exposure in setsystemparams (701443)
bugzilla·2019-08-20·CVSS 7.8
CVE-2019-14813 [HIGH] CVE-2019-14813 ghostscript: Safer mode bypass by .forceput exposure in setsystemparams (701443)
CVE-2019-14813 ghostscript: Safer mode bypass by .forceput exposure in setsystemparams (701443)
In Ghostscript 9.27, some ephemeral routines in setsystemparams can expose .forceput operator when hooking errors. This issue is similar to upstream bug https://bugs.ghostscript.com/show_bug.cgi?id=700317.
http://git.ghostscript.com/?p=ghostpdl.git;a=blob;f=Resource/Init/gs_lev2.ps;h=98d55fe74251e2b8f384a0a97d0a92a9f88949b6;hb=ebfaa2db4cb518a2bc99c1532d4429201a13dfab#l227
227 //pssystemparams 3 1 roll .forceput % pssystemparams is read-only
228 } executeonly
229 { pop pop
230 }
231 ifelse
232 }
233 forall pop
Reference:
https://bugs.ghostscript.com/show_bug.cgi?id=701443
Discussion:
Upstream fix :
http://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=885444fcbe10dc42787ecb76686c8ee4dd3
http://git.ghostscript.com/?p=ghostpdl.git%3Ba=commitdiff%3Bh=885444fcbe10dc42787ecb76686c8ee4dd33bf33http://lists.opensuse.org/opensuse-security-announce/2019-09/msg00088.htmlhttp://lists.opensuse.org/opensuse-security-announce/2019-09/msg00090.htmlhttps://access.redhat.com/errata/RHBA-2019:2824https://access.redhat.com/errata/RHSA-2019:2594https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2019-14813https://lists.debian.org/debian-lts-announce/2019/09/msg00007.htmlhttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6AATIHU32MYKUOXQDJQU4X4DDVL7NAY3/https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LBUC4DBBJTRFNCR3IODBV4IXB2C2HI3V/https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZP34D27RKYV2POJ3NJLSVCHUA5V5C45A/https://seclists.org/bugtraq/2019/Sep/15https://security.gentoo.org/glsa/202004-03https://www.debian.org/security/2019/dsa-4518http://git.ghostscript.com/?p=ghostpdl.git%3Ba=commitdiff%3Bh=885444fcbe10dc42787ecb76686c8ee4dd33bf33http://lists.opensuse.org/opensuse-security-announce/2019-09/msg00088.htmlhttp://lists.opensuse.org/opensuse-security-announce/2019-09/msg00090.htmlhttps://access.redhat.com/errata/RHBA-2019:2824https://access.redhat.com/errata/RHSA-2019:2594https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2019-14813https://lists.debian.org/debian-lts-announce/2019/09/msg00007.htmlhttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6AATIHU32MYKUOXQDJQU4X4DDVL7NAY3/https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LBUC4DBBJTRFNCR3IODBV4IXB2C2HI3V/https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZP34D27RKYV2POJ3NJLSVCHUA5V5C45A/https://seclists.org/bugtraq/2019/Sep/15https://security.gentoo.org/glsa/202004-03https://www.debian.org/security/2019/dsa-4518
2019-09-06
Published