UNKNOWN READ Vulnerability in Ghostscript: Memory Management Flaw

ghostscript Updated 02 Oct 2025

Summary

21/08/2024
MEDIUM
Yes i
Medium
Not published

OSV-2024-1042: UNKNOWN READ in chunk_free_object. Affects ghostscript versions >= bf0048d271aa6a4d9898997ada84cf89c197e791, < 0b894a24043aca1d62a149fd2e3100d3a46a53b2. Fixed in 0b894a24043aca1d62a149fd2e3100d3a46a53b2. 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

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 known for its robust capabilities in handling graphics and text, making it essential for applications that require document manipulation. However, like many complex software systems, Ghostscript is susceptible to vulnerabilities that can lead to security risks, particularly in memory management.

Vulnerability Detail

The vulnerability identified as OSV-2024-1042 is characterized by an UNKNOWN READ error in the chunk_free_object function. This issue was reported through OSS-Fuzz, indicating a potential flaw in memory handling that could lead to crashes or unexpected behavior. The crash state reveals that the vulnerability occurs during the finalization of a stream, which suggests that improper memory access could be exploited, potentially leading to denial of service or other security implications.

How To Fix

Minimum fixed version

0b894a24043aca1d62a149fd2e3100d3a46a53b2

This is the first release that contains the fix.

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

Workaround

As a temporary measure, users can avoid using features that trigger the chunk_free_object function until the update is applied. However, the best course of action is to apply the fix as soon as possible to mitigate any risks associated with this vulnerability.

Conclusion

The UNKNOWN READ vulnerability in Ghostscript poses a significant risk due to its potential to disrupt application functionality through improper memory management. Users are strongly advised to update to the latest version to mitigate these risks. Utilizing tools like Vulert can further enhance security by providing real-time monitoring for vulnerabilities.

See every vulnerability recorded for ghostscript →

Share this vulnerability

FAQ

The UNKNOWN READ vulnerability involves improper memory access during the execution of Ghostscript, which can lead to crashes or unexpected behavior.

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

Exploiting this vulnerability could lead to denial of service, application crashes, or other security issues, depending on how the affected functions are used.

Yes, you should upgrade to the version that includes the fix, specifically the commit 0b894a24043aca1d62a149fd2e3100d3a46a53b2.

Vulert is a tool that monitors and alerts for open-source vulnerabilities in software using just a manifest file like package-lock.json. It helps ensure your applications remain secure.

Related vulnerabilities

Recent vulnerabilities recorded for ghostscript.

How To Fix

Minimum fixed version

0b894a24043aca1d62a149fd2e3100d3a46a53b2

This is the first release that contains the fix.

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