Skip to content
OpenAdvisories
High · 7.3 Public exploit CVE-2019-14811 EUVD-2019-5940GHSA-q58c-x76h-3jhc

A flaw was found in, ghostscript versions prior to 9.50, in the .pdf_hook_DSC_Creator procedure where it did not properly secure its privil…

Published Sep 3, 2019 · Updated Aug 5, 2024 · Assigned by redhat

Description

A flaw was found in, ghostscript versions prior to 9.50, in the .pdf_hook_DSC_Creator 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 products

VendorProductAffectedFixed
Artifex Software ghostscript ghostscript versions prior to 9.28 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 ghostscript 9.28~~rc2~dfsg-1 —
Debian 13 ghostscript 9.28~~rc2~dfsg-1 —
Debian 12 ghostscript 9.28~~rc2~dfsg-1 —
Debian 10 ghostscript 9.27~dfsg-2+deb10u2 DSA-4518-1
Debian 9 ghostscript 9.26a~dfsg-0+deb9u5 DSA-4518-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Debian 8 ghostscript 9.26a~dfsg-0+deb8u5 DLA-1915-1
ReleasePackageFixed inAdvisory
Ubuntu 18.04 LTS ghostscript 9.26~dfsg+0-0ubuntu0.18.04.11 USN-4111-1
Ubuntu 16.04 LTS ghostscript 9.26~dfsg+0-0ubuntu0.16.04.11 USN-4111-1
ReleasePackageFixed inAdvisory
RHEL 8 libgs +7 9.25-2.el8_0.3 RHSA-2019:2591
RHEL 7 libgs +5 9.25-2.el7_7.2 RHSA-2019:2586
ReleasePackageFixed inAdvisory
SLES 15 SP1 ghostscript 9.27-3.21.1 SUSE-SU-2019:2460-1
SLES 15 ghostscript 9.27-3.21.1 SUSE-SU-2019:2460-1
SLES 12 SP5 ghostscript 9.27-23.28.1 SUSE-SU-2019:2478-1
SLES 12 SP4 ghostscript 9.27-23.28.1 SUSE-SU-2019:2478-1
SLES 12 SP3 ghostscript 9.27-23.28.1 SUSE-SU-2019:2478-1
Show 13 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES 12 SP2 ghostscript 9.27-23.28.1 SUSE-SU-2019:2478-1
SLES 12 SP1 ghostscript 9.27-23.28.1 SUSE-SU-2019:2478-1
SLES for SAP 12 SP5 ghostscript 9.27-23.28.1 SUSE-SU-2019:2478-1
SLES for SAP 12 SP4 ghostscript 9.27-23.28.1 SUSE-SU-2019:2478-1
SLES for SAP 12 SP3 ghostscript 9.27-23.28.1 SUSE-SU-2019:2478-1
SLES for SAP 12 SP2 ghostscript 9.27-23.28.1 SUSE-SU-2019:2478-1
SLES for SAP 12 SP1 ghostscript 9.27-23.28.1 SUSE-SU-2019:2478-1
SUSE OpenStack Cloud Crowbar 8 ghostscript 9.27-23.28.1 SUSE-SU-2019:2478-1
SUSE OpenStack Cloud 8 ghostscript 9.27-23.28.1 SUSE-SU-2019:2478-1
SUSE OpenStack Cloud 7 ghostscript 9.27-23.28.1 SUSE-SU-2019:2478-1
SUSE HPE Helion OpenStack 8 ghostscript 9.27-23.28.1 SUSE-SU-2019:2478-1
SUSE Enterprise Storage 5 ghostscript 9.27-23.28.1 SUSE-SU-2019:2478-1
SUSE Enterprise Storage 4 ghostscript 9.27-23.28.1 SUSE-SU-2019:2478-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed ghostscript 9.54.0-2.2 openSUSE-SU-2024:10783-1
openSUSE Leap 15.1 ghostscript +1 9.27-lp151.3.6.1 openSUSE-SU-2019:2223-1
openSUSE Leap 15.0 ghostscript +1 9.27-lp150.2.23.1 openSUSE-SU-2019:2222-1
ReleasePackageFixed inAdvisory
Alpine v3.24 ghostscript 9.27-r3 —
Alpine v3.23 ghostscript 9.27-r3 —
Alpine v3.22 ghostscript 9.27-r3 —
Alpine v3.21 ghostscript 9.27-r3 —
Alpine v3.20 ghostscript 9.27-r3 —
Show 13 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 ghostscript 9.27-r3 —
Alpine v3.18 ghostscript 9.27-r3 —
Alpine v3.17 ghostscript 9.27-r3 —
Alpine v3.16 ghostscript 9.27-r3 —
Alpine v3.15 ghostscript 9.27-r3 —
Alpine v3.14 ghostscript 9.27-r3 —
Alpine v3.13 ghostscript 9.27-r3 —
Alpine v3.12 ghostscript 9.27-r3 —
Alpine v3.11 ghostscript 9.27-r3 —
Alpine v3.10 ghostscript 9.27-r3 —
Alpine v3.9 ghostscript 9.26-r4 —
Alpine v3.8 ghostscript 9.26-r4 —
Alpine v3.7 ghostscript 9.26-r4 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2 libgs +5 9.25-5.amzn2 ALAS2-2021-1598

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 8 libgs +7 9.25-2.el8_0.3 ELSA-2019-2591
Oracle Linux 7 libgs +5 9.25-2.el7_7.2 ELSA-2019-2586

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

  • This exploit targets CVE-2019-14811 in GS environments where PostScript output is not reflected, but is executed such as PDF previews via png images.

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Advisories 13

References