Moderate Vulnerability in Ghostscript Package: Compression Buffer Overflow

ghostscript Updated 04 Oct 2025

Summary

04/10/2025
N/A
Yes i
Medium
5.5

RLSA-2025:7586: Moderate: ghostscript security update. Affects ghostscript versions < 0:9.54.0-19.el9_6. Fixed in 0:9.54.0-19.el9_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 a suite of software that provides utilities for rendering PostScript and PDF documents. It translates PostScript code into common bitmap formats, enabling the display and printing of documents. This package is widely used in various applications for document processing and printing tasks. However, it has been found to be vulnerable to a specific security issue that could lead to potential exploitation.

Vulnerability Detail

The vulnerability identified in Ghostscript is a compression buffer overflow associated with the NPDL device (CVE-2025-27832). This flaw arises from improper handling of input data, which can lead to a buffer overflow condition. If exploited, this vulnerability could allow an attacker to execute arbitrary code, potentially compromising the system's integrity and confidentiality. The CVSS score for this vulnerability is 5.5, indicating a moderate level of risk.

How To Fix

Minimum fixed version

0:9.54.0-19.el9_6

This is the first release that contains the fix.

sudo dnf update ghostscript

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

Workaround

As a temporary workaround, users can limit the exposure to this vulnerability by avoiding the use of the NPDL device in Ghostscript until the package is updated. Additionally, implementing strict input validation can help mitigate the risk of exploitation.

Conclusion

In summary, the Ghostscript package has a moderate vulnerability related to a compression buffer overflow that could potentially allow for arbitrary code execution. Users are advised to update their packages promptly and consider workarounds to mitigate risks until the update is applied.

See every vulnerability recorded for ghostscript →

Share this vulnerability

FAQ

Ghostscript is a software suite that interprets PostScript and PDF files, allowing for their rendering and conversion into various formats.

CVE-2025-27832 refers to a compression buffer overflow vulnerability in Ghostscript that could allow attackers to execute arbitrary code.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

The CVSS score for this vulnerability is 5.5, indicating a moderate risk level.

The best way to protect your system is to update the Ghostscript package to the latest patched version as soon as it becomes available.

Related vulnerabilities

Recent vulnerabilities recorded for ghostscript.

How To Fix

Minimum fixed version

0:9.54.0-19.el9_6

This is the first release that contains the fix.

sudo dnf update 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