CVE-2019-14813
ghostscript: Safer mode bypass by .forceput exposure in setsystemparams (701443)
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD. Rated lower by Red Hat (high), Amazon (high), Oracle (high), Ubuntu (medium).
Description
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 packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| alpine 3.10 | ghostscript | 9.27-r3 |
| alpine 3.11 | ghostscript | 9.27-r3 |
| alpine 3.12 | ghostscript | 9.27-r3 |
| alpine 3.13 | ghostscript | 9.27-r3 |
| alpine 3.14 | ghostscript | 9.27-r3 |
| alpine 3.15 | ghostscript | 9.27-r3 |
| alpine 3.16 | ghostscript | 9.27-r3 |
| alpine 3.17 | ghostscript | 9.27-r3 |
| alpine 3.18 | ghostscript | 9.27-r3 |
| alpine 3.19 | ghostscript | 9.27-r3 |
| alpine 3.20 | ghostscript | 9.27-r3 |
| alpine 3.21 | ghostscript | 9.27-r3 |
Show all 59 entries from 38 sources
| Source | Package | Fixed in |
|---|---|---|
| alpine 3.10 | ghostscript | 9.27-r3 |
| alpine 3.11 | ghostscript | 9.27-r3 |
| alpine 3.12 | ghostscript | 9.27-r3 |
| alpine 3.13 | ghostscript | 9.27-r3 |
| alpine 3.14 | ghostscript | 9.27-r3 |
| alpine 3.15 | ghostscript | 9.27-r3 |
| alpine 3.16 | ghostscript | 9.27-r3 |
| alpine 3.17 | ghostscript | 9.27-r3 |
| alpine 3.18 | ghostscript | 9.27-r3 |
| alpine 3.19 | ghostscript | 9.27-r3 |
| alpine 3.20 | ghostscript | 9.27-r3 |
| alpine 3.21 | ghostscript | 9.27-r3 |
| alpine 3.22 | ghostscript | 9.27-r3 |
| alpine 3.23 | ghostscript | 9.27-r3 |
| alpine 3.24 | ghostscript | 9.27-r3 |
| alpine 3.7 | ghostscript | 9.26-r4 |
| alpine 3.8 | ghostscript | 9.26-r4 |
| alpine 3.9 | ghostscript | 9.26-r4 |
| alpine edge | ghostscript | 9.27-r3 |
| amazon linux 2 | ghostscript | 9.25-5.amzn2 |
| amazon linux 2 | ghostscript-cups | 9.25-5.amzn2 |
| amazon linux 2 | ghostscript-debuginfo | 9.25-5.amzn2 |
| amazon linux 2 | ghostscript-doc | 9.25-5.amzn2 |
| amazon linux 2 | ghostscript-gtk | 9.25-5.amzn2 |
| amazon linux 2 | libgs | 9.25-5.amzn2 |
| amazon linux 2 | libgs-devel | 9.25-5.amzn2 |
| debian 10 | ghostscript | 9.27~dfsg-2+deb10u2 |
| debian 11 | ghostscript | 9.28~~rc2~dfsg-1 |
| debian 12 | ghostscript | 9.28~~rc2~dfsg-1 |
| debian 13 | ghostscript | 9.28~~rc2~dfsg-1 |
| debian 14 | ghostscript | 9.28~~rc2~dfsg-1 |
| debian 8 | ghostscript | 9.26a~dfsg-0+deb8u5 |
| debian 9 | ghostscript | 9.26a~dfsg-0+deb9u5 |
| echo | ghostscript | 9.28~~rc2~dfsg-1 |
| Oracle Linux 7 | ghostscript | 9.25-2.el7_7.2 |
| Oracle Linux 7 | ghostscript-cups | 9.25-2.el7_7.2 |
| Oracle Linux 7 | ghostscript-doc | 9.25-2.el7_7.2 |
| Oracle Linux 7 | ghostscript-gtk | 9.25-2.el7_7.2 |
| Oracle Linux 7 | libgs | 9.25-2.el7_7.2 |
| Oracle Linux 7 | libgs-devel | 9.25-2.el7_7.2 |
| Oracle Linux 8 | ghostscript | 9.25-2.el8_0.3 |
| Oracle Linux 8 | ghostscript-doc | 9.25-2.el8_0.3 |
| Oracle Linux 8 | ghostscript-tools-dvipdf | 9.25-2.el8_0.3 |
| Oracle Linux 8 | ghostscript-tools-fonts | 9.25-2.el8_0.3 |
| Oracle Linux 8 | ghostscript-tools-printing | 9.25-2.el8_0.3 |
| Oracle Linux 8 | ghostscript-x11 | 9.25-2.el8_0.3 |
| Oracle Linux 8 | libgs | 9.25-2.el8_0.3 |
| Oracle Linux 8 | libgs-devel | 9.25-2.el8_0.3 |
| Red Hat | ghostscript | no fix listed |
| Red Hat | ghostscript-devel | no fix listed |
| Red Hat | ghostscript-doc | no fix listed |
| Red Hat | ghostscript-gtk | no fix listed |
| root.io alpine 3.17 | rootio-ghostscript | 9.27-r3 |
| root.io debian 12 | rootio-ghostscript | 9.28~~rc2~dfsg-1 |
| ubuntu 16.04 | ghostscript | 9.26~dfsg+0-0ubuntu0.16.04.11 |
| ubuntu 16.04-ESM | ghostscript | 9.26~dfsg+0-0ubuntu0.16.04.11 |
| ubuntu 18.04 | ghostscript | 9.26~dfsg+0-0ubuntu0.18.04.11 |
| ubuntu 18.04-ESM | ghostscript | 9.26~dfsg+0-0ubuntu0.18.04.11 |
| ubuntu 19.04 | ghostscript | 9.26~dfsg+0-0ubuntu7.3 |
References
- http://git.ghostscript.com/?p=ghostpdl.git%3Ba=commitdiff%3Bh=885444fcbe10dc42787ecb76686c8ee4dd33bf33
- http://lists.opensuse.org/opensuse-security-announce/2019-09/msg00088.html
- http://lists.opensuse.org/opensuse-security-announce/2019-09/msg00090.html
- https://access.redhat.com/errata/RHBA-2019:2824
- https://access.redhat.com/errata/RHSA-2019:2594
- https://access.redhat.com/security/cve/CVE-2019-14813
- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2019-14813
- https://linux.oracle.com/cve/CVE-2019-14813.html
All 19 references
- https://linux.oracle.com/errata/ELSA-2019-2591.html
- https://lists.debian.org/debian-lts-announce/2019/09/msg00007.html
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/6AATIHU32MYKUOXQDJQU4X4DDVL7NAY3/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/LBUC4DBBJTRFNCR3IODBV4IXB2C2HI3V/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZP34D27RKYV2POJ3NJLSVCHUA5V5C45A/
- https://nvd.nist.gov/vuln/detail/CVE-2019-14813
- https://seclists.org/bugtraq/2019/Sep/15
- https://security.gentoo.org/glsa/202004-03
- https://ubuntu.com/security/notices/USN-4111-1
- https://www.cve.org/CVERecord?id=CVE-2019-14813
- https://www.debian.org/security/2019/dsa-4518