Critical Ghostscript Vulnerability: Denial of Service and Path Validation Bypass

ghostscript Updated 03 Oct 2025

Summary

01/05/2025
N/A
Yes i
Unrated
Not published

USN-7473-1: ghostscript vulnerability. Affects ghostscript versions < 10.02.1~dfsg1-0ubuntu7.6. Fixed in 10.02.1~dfsg1-0ubuntu7.6. 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 package is essential for applications that require document manipulation, conversion, and printing. However, a recent vulnerability has been discovered that affects its ability to handle certain PostScript files securely.

Vulnerability Detail

It was discovered that Ghostscript incorrectly handled parsing certain PS files. This flaw could allow an attacker to exploit the vulnerability, leading to a crash of the Ghostscript application, resulting in a denial of service. Additionally, there is a potential risk of bypassing file path validation, which could expose sensitive files or data to unauthorized access. The vulnerability is identified as CVE-2025-46646.

How To Fix

Minimum fixed version

10.02.1~dfsg1-0ubuntu7.6

This is the first release that contains the fix.

sudo apt-get install --only-upgrade ghostscript

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, users are advised to avoid processing untrusted PostScript files until the update is applied. This can help mitigate the risk of exploitation until the vulnerability is resolved.

Conclusion

The Ghostscript vulnerability poses significant risks, including denial of service and potential unauthorized access to files. It is crucial for users to update to the latest version to protect their systems. Utilizing tools like Vulert can help monitor and alert for such vulnerabilities in real-time.

See every vulnerability recorded for ghostscript →

Share this vulnerability

FAQ

Ghostscript is an interpreter for the PostScript language and PDF, used for rendering and processing documents.

The vulnerability affects Ghostscript's ability to parse certain PostScript files, leading to potential crashes and security risks.

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

If you cannot update immediately, avoid processing untrusted PostScript files to mitigate the risk.

Related vulnerabilities

Recent vulnerabilities recorded for ghostscript.

How To Fix

Minimum fixed version

10.02.1~dfsg1-0ubuntu7.6

This is the first release that contains the fix.

sudo apt-get install --only-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