Ghostscript Remote Access Bypass Vulnerability - CVE-2018-19475

ghostscript Updated 02 Oct 2025

Summary

23/11/2018
N/A
Yes i
High
7.8

ALPINE-CVE-2018-19475: psi/zdevice2.c in Artifex Ghostscript before 9.26 allows remote attackers to bypass intended access restrictions because available stack space is not checked when the device remains the same. Affects ghostscript versions < 9.26-r0. Fixed in 9.26-r0. 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 Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

Ghostscript is an interpreter for the PostScript language and for PDF. It is widely used for processing and rendering documents in various formats. The software is integral to many applications that require document manipulation, making it a critical component in numerous systems. However, Ghostscript has been found to have a vulnerability that could allow unauthorized access to restricted resources.

Vulnerability Detail

The vulnerability identified as CVE-2018-19475 exists in the psi/zdevice2.c file of Ghostscript versions prior to 9.26. It allows remote attackers to bypass intended access restrictions due to insufficient checks on available stack space when the device remains unchanged. This could lead to unauthorized access to sensitive information or system resources, posing a significant risk to affected systems.

How To Fix

Minimum fixed version

9.26-r0

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 workaround, consider restricting access to the Ghostscript service or implementing network-level security measures to limit exposure to potential attackers until the package can be updated.

Conclusion

The Ghostscript vulnerability CVE-2018-19475 poses a significant risk due to its potential to allow unauthorized access to restricted resources. It is crucial for users to update to the patched version 9.26-r0 to mitigate this risk. Additionally, utilizing tools like Vulert can help monitor for such vulnerabilities in real-time.

See every vulnerability recorded for ghostscript →

Share this vulnerability

FAQ

CVE-2018-19475 is a vulnerability in Ghostscript that allows remote attackers to bypass access restrictions due to insufficient stack space checks.

You can check if your application is affected by using the Vulert playground at Vulert Scanner, which analyzes your manifest file for vulnerabilities.

If exploited, this vulnerability could allow unauthorized access to sensitive data or system resources, leading to data breaches or system compromise.

Yes, a patch is available in Ghostscript version 9.26-r0 and later. It is recommended to update to this version to mitigate the risk.

Vulert is a tool that monitors and alerts for open-source vulnerabilities in software using just a manifest file. It provides real-time insights without requiring code access or installation.

Related vulnerabilities

Recent vulnerabilities recorded for ghostscript.

How To Fix

Minimum fixed version

9.26-r0

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