Path Traversal and Command Execution in Artifex Ghostscript

ghostscript Updated 02 Oct 2025

Summary

03/07/2024
N/A
Yes i
Unrated
Not published

CVE-2024-33869: An issue was discovered in Artifex Ghostscript before 10.03.1. Affects ghostscript across 2 version ranges.

< 10.04.0-r0 < 865d8905b3fdb3a0fabe3628a67bad634cf88ba9

Fixed in 10.04.0-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 Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

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 PDF files. Ghostscript provides a comprehensive set of functions for processing and converting PDF documents. However, a vulnerability has been discovered in versions before 10.03.1 that allows for path traversal and command execution.

Vulnerability Detail

The vulnerability arises due to path reduction in the base/gpmisc.c file of Artifex Ghostscript. By exploiting this issue through a crafted PostScript document, an attacker can bypass restrictions on the use of %pipe% and execute arbitrary commands. This can lead to unauthorized access, data leakage, and potential remote code execution on the affected system.

How To Fix

Minimum fixed version

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

No known workarounds are available for this vulnerability.

Conclusion

The path traversal and command execution vulnerability in Artifex Ghostscript versions before 10.03.1 can be exploited through a crafted PostScript document. Upgrading to the latest version is crucial to mitigate the risk of unauthorized access, data leakage, and potential remote code execution. No workarounds are currently available for this vulnerability.

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 commonly used for rendering and manipulating PDF files.

This vulnerability allows an attacker to execute arbitrary commands on the affected system, potentially leading to unauthorized access, data leakage, and remote code execution.

To fix this vulnerability, it is recommended to upgrade to version 10.03.1 or later of Artifex Ghostscript.

No known workarounds are available for this vulnerability.

You can find more information about this vulnerability in the CVE-2024-33869 JSON report available at the following source: https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-33869.json

Related vulnerabilities

Recent vulnerabilities recorded for ghostscript.

How To Fix

Minimum fixed version

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