CVE-2018-16802 Code injection in n/a
Attackers can execute arbitrary code via crafted PostScript files due to improper privilege restoration during stack overflow exceptions in 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-16802?
CVE-2018-16802 is a high-severity code injection vulnerability in Artifex Ghostscript, published on 10 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.25. Incorrect "restoration of privilege" checking when running out of stack during exception handling could be used by attackers able to supply crafted PostScript to execute code using the "pipe" instruction. This is due to an incomplete fix for CVE-2018-16509.
Which versions are affected by CVE-2018-16802?
It affects 9 products.
Products include Artifex Ghostscript, Canonical Ubuntu Linux, Debian Debian Linux, Redhat Enterprise Linux Desktop, Redhat Enterprise Linux Server, Redhat Enterprise Linux Server Aus and 3 more.
How do I fix CVE-2018-16802?
Upgrade to a fixed version.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2018-16802 being exploited?
There is no known exploitation of CVE-2018-16802 in the wild and no public exploit code.
Other vulnerabilities in Artifex Ghostscript
Sources
Also known as ALPINE-CVE-2018-16802, DEBIAN-CVE-2018-16802, GHSA-r3qx-w5mm-cr27, UBUNTU-CVE-2018-16802.