Vulnerability in Artifex Ghostscript: CVE-2018-15908

ghostscript Updated 02 Oct 2025

Summary

27/08/2018
N/A
Yes i
High
7.8

CVE-2018-15908: In Artifex Ghostscript 9.23 before 2018-08-23, attackers are able to supply malicious PostScript files to bypass .tempfile restrictions and write files. Affects ghostscript versions < 9.24-r0. Fixed in 9.24-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

Artifex Ghostscript is an open-source interpreter for the PostScript language and the Adobe Portable Document Format (PDF). It is widely used for rendering and manipulating documents. However, a vulnerability, known as CVE-2018-15908, has been identified in versions prior to 9.24-r0. This vulnerability allows attackers to supply malicious PostScript files, bypassing .tempfile restrictions and potentially writing files on the system.

Vulnerability Detail

The CVE-2018-15908 vulnerability in Artifex Ghostscript arises from a flaw in the handling of PostScript files. Attackers can exploit this vulnerability by providing specially crafted PostScript files that can bypass the .tempfile restrictions. This allows them to write files on the system, potentially leading to unauthorized access, data manipulation, or even remote code execution. The impact of this vulnerability can be severe, as it provides an avenue for attackers to compromise the integrity and security of the affected system.

How To Fix

Minimum fixed version

9.24-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 workaround, users can consider implementing additional security measures such as restricting access to the affected system, ensuring proper file permissions, and monitoring for any suspicious activity. However, applying the official patch or updating to the latest version is the recommended solution to fully mitigate the vulnerability.

Conclusion

The CVE-2018-15908 vulnerability in Artifex Ghostscript poses a significant risk to the security and integrity of affected systems. It is crucial to promptly update to version 9.24-r0 or later to mitigate the vulnerability. For further support and assistance in 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 Adobe Portable Document Format (PDF). It is widely used for rendering and manipulating documents.

CVE-2018-15908 is a vulnerability in Artifex Ghostscript that allows attackers to supply malicious PostScript files, bypassing .tempfile restrictions and potentially writing files on the system.

The impact of CVE-2018-15908 can be severe, as it provides an avenue for attackers to compromise the integrity and security of the affected system. It can lead to unauthorized access, data manipulation, or even remote code execution.

To fix CVE-2018-15908, it is recommended to update Artifex Ghostscript to version 9.24-r0 or later. This version includes the necessary patches and fixes to address the vulnerability.

While implementing additional security measures such as restricting access and monitoring for suspicious activity can provide some level of protection, the recommended solution is to apply the official patch or update to the latest version of Artifex Ghostscript.

Related vulnerabilities

Recent vulnerabilities recorded for ghostscript.

How To Fix

Minimum fixed version

9.24-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