All reports
High

ghostscript: /invalidaccess bypass after failed restore (699654)

Affected versions

Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2018-16509

Probability of exploitation in the next 30 days: 92.35%

FIRST EPSS · 2026-11-21

Description

An issue was discovered in Artifex Ghostscript before 9.24. Incorrect "restoration of privilege" checking during handling of /invalidaccess exceptions could be used by attackers able to supply crafted PostScript to execute code using the "pipe" instruction.

It was discovered that the ghostscript /invalidaccess checks fail under certain conditions. An attacker could possibly exploit this to bypass the -dSAFER protection and, for example, execute arbitrary shell commands via a specially crafted PostScript document.