Critical Vulnerability in Ghostscript: Bypass of Sandbox Protection Mechanism

ghostscript Updated 02 Oct 2025

Summary

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

ALPINE-CVE-2018-17961: Artifex Ghostscript 9.25 and earlier allows attackers to bypass a sandbox protection mechanism via vectors involving errorhandler setup. 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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

Ghostscript is an interpreter for the PostScript language and for PDF. It is widely used for rendering documents and converting them into various formats. The package is known for its powerful capabilities in handling graphics and text, making it a crucial tool in many software applications. However, Ghostscript versions 9.25 and earlier are vulnerable to a critical security issue that allows attackers to bypass its sandbox protection, potentially leading to unauthorized access and exploitation.

Vulnerability Detail

Artifex Ghostscript 9.25 and earlier versions contain a vulnerability that allows attackers to bypass a sandbox protection mechanism through improper error handler setup. This issue arises from an incomplete fix for a previous vulnerability (CVE-2018-17183). If exploited, this vulnerability could allow an attacker to execute arbitrary code within the Ghostscript environment, leading to severe consequences such as data breaches or system compromise.

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

As a temporary measure, users can limit the execution of Ghostscript in environments where sandboxing is critical. This may involve configuring the application to restrict Ghostscript's access to sensitive resources or running it in a controlled environment.

Conclusion

The vulnerability in Ghostscript poses a serious risk due to its ability to bypass sandbox protections, potentially allowing attackers to execute arbitrary code. It is crucial for users to update to the patched version 9.25-r1 to mitigate this risk. Additionally, utilizing tools like Vulert can help in monitoring and managing vulnerabilities in software applications.

See every vulnerability recorded for ghostscript →

Share this vulnerability

FAQ

The CVSS score of this vulnerability is 8.6, indicating a high level of severity.

Ghostscript versions 9.25 and earlier are affected by this vulnerability.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

Exploitation of this vulnerability could lead to unauthorized access, data breaches, or system compromise, posing significant risks to affected systems.

Yes, Vulert can monitor and alert you in real-time for open-source vulnerabilities in your software using just a manifest file like package-lock.json.

Related vulnerabilities

Recent vulnerabilities recorded for ghostscript.

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