CVE-2018-16585 Memory corruption in n/a

High 7.8 Published Updated

Remote attackers can cause memory corruption and potential code execution by supplying crafted PostScript files to Ghostscript.

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-16585?

CVE-2018-16585 is a high-severity memory corruption vulnerability in Artifex Ghostscript, published on 6 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

An issue was discovered in Artifex Ghostscript before 9.24. The .setdistillerkeys PostScript command is accepted even though it is not intended for use during document processing (e.g., after the startup phase). This leads to memory corruption, allowing remote attackers able to supply crafted PostScript to crash the interpreter or possibly have unspecified other impact. Note: A reputable source believes that the CVE is potentially a duplicate of CVE-2018-15910 as explained in Red Hat bugzilla (https://bugzilla.redhat.com/show_bug.cgi?id=1626193)

Weakness: CWE-119

Which versions are affected by CVE-2018-16585?

It affects 3 products.

Products include Artifex Ghostscript, Canonical Ubuntu Linux, Debian Debian Linux.

How do I fix CVE-2018-16585?

Upgrade to a fixed version.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2018-16585 being exploited?

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

All Artifex Ghostscript vulnerabilities

Sources

Also known as DEBIAN-CVE-2018-16585, GHSA-4j37-xf23-h2px, UBUNTU-CVE-2018-16585.

Is CVE-2018-16585 in your software?

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

Check your SBOMs for free