CVE-2018-16540 Use after free in n/a

High 7.8 Published Updated

Attackers can cause a crash or potentially execute code by supplying crafted PostScript files to the Ghostscript interpreter.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2018-16540?

CVE-2018-16540 is a high-severity use after free vulnerability in Artifex Ghostscript, published on 5 Sep 2018. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

In Artifex Ghostscript before 9.24, attackers able to supply crafted PostScript files to the builtin PDF14 converter could use a use-after-free in copydevice handling to crash the interpreter or possibly have unspecified other impact.

Weakness: CWE-416

Which versions are affected by CVE-2018-16540?

It affects 11 products.

Products include Artifex Ghostscript, Canonical Ubuntu Linux, Debian Debian Linux, Redhat Enterprise Linux, Redhat Enterprise Linux Desktop, Redhat Enterprise Linux Server and 5 more.

How do I fix CVE-2018-16540?

Upgrade to a fixed version.

Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.

Is CVE-2018-16540 being exploited?

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

All Artifex Ghostscript vulnerabilities

Sources

Also known as DEBIAN-CVE-2018-16540, GHSA-685m-wc38-2pv8, UBUNTU-CVE-2018-16540.

Is CVE-2018-16540 in your software?

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

Check your SBOMs for free