Sandbox Bypass Vulnerability in Artifex Ghostscript

ghostscript Updated 02 Oct 2025

Summary

19/10/2018
N/A
Yes i
High
8.6

CVE-2018-18284: Artifex Ghostscript 9.25 and earlier allows attackers to bypass a sandbox protection mechanism via vectors involving the 1Policy operator. Affects ghostscript versions < 9.25-r1. Fixed in 9.25-r1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

Artifex Ghostscript is an open-source interpreter for the PostScript language and the PDF file format. It is widely used for rendering and manipulating PDF documents. However, versions 9.25 and earlier of Ghostscript are vulnerable to a sandbox bypass attack.

Vulnerability Detail

The vulnerability, identified as CVE-2018-18284, allows attackers to bypass the sandbox protection mechanism in Ghostscript. By exploiting the 1Policy operator, attackers can execute arbitrary code within the sandboxed environment, potentially leading to unauthorized access, data leakage, or remote code execution.

How To Fix

Minimum fixed version

9.25-r1

This is the first release that contains the fix.

sudo apk add --upgrade ghostscript

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no known workaround for this vulnerability. It is essential to apply the official patch or update to the latest version of Ghostscript to mitigate the risk.

Conclusion

The sandbox bypass vulnerability in Artifex Ghostscript can have severe consequences, including unauthorized access, data leakage, or remote code execution. It is essential to update Ghostscript to the latest version or apply the official patch to mitigate the risk. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for ghostscript →

Share this vulnerability

FAQ

Artifex Ghostscript is an open-source interpreter for the PostScript language and the PDF file format. It is commonly used for rendering and manipulating PDF documents.

The vulnerability allows attackers to bypass the sandbox protection mechanism in Ghostscript, potentially leading to unauthorized access, data leakage, or remote code execution.

Versions 9.25 and earlier of Ghostscript are affected by this vulnerability.

To fix this vulnerability, update Ghostscript to version 9.25-r1 or later.

There is no known workaround for this vulnerability. It is crucial to apply the official patch or update to the latest version of Ghostscript.

Related vulnerabilities

Recent vulnerabilities recorded for ghostscript.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Minimum fixed version

9.25-r1

This is the first release that contains the fix.

sudo apk add --upgrade ghostscript

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback