Privilege Escalation in Ghostscript

ghostscript Updated 02 Oct 2025

Summary

06/09/2019
N/A
Yes i
Critical
9.8

CVE-2019-14813: A flaw was found in ghostscript, versions 9.x before 9.50, in the setsystemparams procedure where it did not properly secure its privileged calls, enabling scripts to bypass -dSAFER restrictions. Affects ghostscript across 3 version ranges.

< 6e4664525b1db28f8c4e1130957f70a94c19213e < 9.27-r3 < b953c0d234bc72e8489d3bf51a276c5c4ec85345

Fixed in 9.27-r3. 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 open-source interpreter for the PostScript language and the PDF file format. It is widely used for rendering and converting documents. However, versions 9.x before 9.50 of Ghostscript are vulnerable to a privilege escalation issue.

Vulnerability Detail

The vulnerability, identified as CVE-2019-14813, exists in the setsystemparams procedure of Ghostscript. It fails to properly secure privileged calls, allowing scripts to bypass -dSAFER restrictions. An attacker can exploit this flaw by crafting a malicious PostScript file, which can then disable security protection and gain unauthorized access to the file system or execute arbitrary commands.

How To Fix

Minimum fixed version

9.27-r3

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

No specific workaround has been provided for this vulnerability.

Conclusion

In conclusion, the privilege escalation vulnerability in Ghostscript can be exploited by an attacker to bypass security restrictions and gain unauthorized access to the file system or execute arbitrary commands. It is recommended to update Ghostscript to version 9.50 or later to mitigate this vulnerability. For further support on vulnerability remediation, you can contact DevNack.com.

See every vulnerability recorded for ghostscript →

Share this vulnerability

FAQ

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

This vulnerability allows an attacker to bypass security restrictions and gain unauthorized access to the file system or execute arbitrary commands.

To fix this vulnerability, update Ghostscript to version 9.50 or later.

No specific workaround has been provided for this vulnerability.

You can find more information about this vulnerability in the provided source link.

Related vulnerabilities

Recent vulnerabilities recorded for ghostscript.

How To Fix

Minimum fixed version

9.27-r3

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