CVE-2019-14869 Security feature bypass in ghostscript

High 7.3 Published Updated

Attackers can bypass Ghostscript's -dSAFER restrictions via crafted PostScript files to execute commands or access restricted files.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2019-14869?

CVE-2019-14869 is a high-severity vulnerability in Artifex Ghostscript, published on 15 Nov 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

A flaw was found in all versions of ghostscript 9.x before 9.50, where the `.charkeys` procedure, where it did not properly secure its privileged calls, enabling scripts to bypass `-dSAFER` restrictions. An attacker could abuse this flaw by creating a specially crafted PostScript file that could escalate privileges within the Ghostscript and access files outside of restricted areas or execute commands.

Weakness: CWE-732, CWE-648

Which versions are affected by CVE-2019-14869?

It affects 3 products.

Linux distribution packages (40)
ghostscript Red Hat:enterprise_linux:7::clientAll versions0:9.25-2.el7_7.3
ghostscript-cups Red Hat:enterprise_linux:7::clientAll versions0:9.25-2.el7_7.3
ghostscript-debuginfo Red Hat:enterprise_linux:7::clientAll versions0:9.25-2.el7_7.3
ghostscript-doc Red Hat:enterprise_linux:7::clientAll versions0:9.25-2.el7_7.3
ghostscript-gtk Red Hat:enterprise_linux:7::clientAll versions0:9.25-2.el7_7.3
libgs Red Hat:enterprise_linux:7::clientAll versions0:9.25-2.el7_7.3
libgs-devel Red Hat:enterprise_linux:7::clientAll versions0:9.25-2.el7_7.3
ghostscript Red Hat:enterprise_linux:7::computenodeAll versions0:9.25-2.el7_7.3
ghostscript-cups Red Hat:enterprise_linux:7::computenodeAll versions0:9.25-2.el7_7.3
ghostscript-debuginfo Red Hat:enterprise_linux:7::computenodeAll versions0:9.25-2.el7_7.3
ghostscript-doc Red Hat:enterprise_linux:7::computenodeAll versions0:9.25-2.el7_7.3
ghostscript-gtk Red Hat:enterprise_linux:7::computenodeAll versions0:9.25-2.el7_7.3
libgs Red Hat:enterprise_linux:7::computenodeAll versions0:9.25-2.el7_7.3
libgs-devel Red Hat:enterprise_linux:7::computenodeAll versions0:9.25-2.el7_7.3
ghostscript Red Hat:enterprise_linux:7::serverAll versions0:9.25-2.el7_7.3
ghostscript-cups Red Hat:enterprise_linux:7::serverAll versions0:9.25-2.el7_7.3
ghostscript-debuginfo Red Hat:enterprise_linux:7::serverAll versions0:9.25-2.el7_7.3
ghostscript-doc Red Hat:enterprise_linux:7::serverAll versions0:9.25-2.el7_7.3
ghostscript-gtk Red Hat:enterprise_linux:7::serverAll versions0:9.25-2.el7_7.3
libgs Red Hat:enterprise_linux:7::serverAll versions0:9.25-2.el7_7.3
libgs-devel Red Hat:enterprise_linux:7::serverAll versions0:9.25-2.el7_7.3
ghostscript Red Hat:enterprise_linux:7::workstationAll versions0:9.25-2.el7_7.3
ghostscript-cups Red Hat:enterprise_linux:7::workstationAll versions0:9.25-2.el7_7.3
ghostscript-debuginfo Red Hat:enterprise_linux:7::workstationAll versions0:9.25-2.el7_7.3
ghostscript-doc Red Hat:enterprise_linux:7::workstationAll versions0:9.25-2.el7_7.3
ghostscript-gtk Red Hat:enterprise_linux:7::workstationAll versions0:9.25-2.el7_7.3
libgs Red Hat:enterprise_linux:7::workstationAll versions0:9.25-2.el7_7.3
libgs-devel Red Hat:enterprise_linux:7::workstationAll versions0:9.25-2.el7_7.3
ghostscript Red Hat:enterprise_linux:8::appstreamAll versions0:9.25-5.el8_1.1
ghostscript-debuginfo Red Hat:enterprise_linux:8::appstreamAll versions0:9.25-5.el8_1.1
ghostscript-debugsource Red Hat:enterprise_linux:8::appstreamAll versions0:9.25-5.el8_1.1
ghostscript-gtk-debuginfo Red Hat:enterprise_linux:8::appstreamAll versions0:9.25-5.el8_1.1
ghostscript-x11-debuginfo Red Hat:enterprise_linux:8::appstreamAll versions0:9.25-5.el8_1.1
libgs Red Hat:enterprise_linux:8::appstreamAll versions0:9.25-5.el8_1.1
libgs-debuginfo Red Hat:enterprise_linux:8::appstreamAll versions0:9.25-5.el8_1.1
ghostscript-debuginfo Red Hat:enterprise_linux:8::crbAll versions0:9.25-5.el8_1.1
ghostscript-debugsource Red Hat:enterprise_linux:8::crbAll versions0:9.25-5.el8_1.1
ghostscript-doc Red Hat:enterprise_linux:8::crbAll versions0:9.25-5.el8_1.1
ghostscript-gtk-debuginfo Red Hat:enterprise_linux:8::crbAll versions0:9.25-5.el8_1.1
ghostscript-tools-dvipdf Red Hat:enterprise_linux:8::crbAll versions0:9.25-5.el8_1.1

Products include Artifex Ghostscript, Fedoraproject Fedora, Opensuse Leap.

How do I fix CVE-2019-14869?

Upgrade to a fixed version.

Is CVE-2019-14869 being exploited?

There is no known exploitation of CVE-2019-14869 in the wild and no public exploit code.

All Artifex Ghostscript vulnerabilities

Sources

Also known as ALPINE-CVE-2019-14869, DEBIAN-CVE-2019-14869, DLA-1992-1, DSA-4569-1, GHSA-c87p-jj8p-c38g, MGASA-2019-0336 and 9 more.

Is CVE-2019-14869 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free