UNKNOWN READ Vulnerability in ghostscript

ghostscript Updated 02 Oct 2025

Summary

21/12/2021
MEDIUM
No i
Medium
Not published

OSV-2021-1728: UNKNOWN READ in pdfi_dict_get. Affected versions are not published. No fix is published. 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 Your last release was probably never penetration tested 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 open-source interpreter for the PostScript language and the Adobe Portable Document Format (PDF). It is widely used for rendering PDF files and converting them to other formats. This vulnerability affects the ghostscript package and can potentially lead to a security breach.

Vulnerability Detail

The vulnerability, identified as OSV-2021-1728, involves an UNKNOWN READ crash type in the pdfi_dict_get function of ghostscript. This can be triggered by a specially crafted PDF file, causing a crash and potentially leading to arbitrary code execution. The severity of this vulnerability is considered medium.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a temporary workaround, users can exercise caution when opening PDF files from untrusted sources. Avoiding opening suspicious or unknown PDF files can help reduce the risk of triggering this vulnerability.

Conclusion

In conclusion, the UNKNOWN READ vulnerability in ghostscript can potentially lead to arbitrary code execution. It is crucial to update the ghostscript package to the latest version and exercise caution when handling PDF files from untrusted sources. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for ghostscript →

Share this vulnerability

FAQ

This vulnerability can potentially allow an attacker to execute arbitrary code by exploiting the crash in ghostscript. It is important to patch or update the software to prevent any potential security breaches.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability. Vulert monitors and alerts in real-time for open-source vulnerabilities, using just a manifest file like package-lock.json.

Yes, it is recommended to update the ghostscript package to the latest version available. The maintainers of ghostscript have likely released a patch or an updated version that addresses this issue.

While updating the package is the recommended solution, you can exercise caution when opening PDF files from untrusted sources as a temporary workaround. Avoiding opening suspicious or unknown PDF files can help reduce the risk of triggering this vulnerability.

You can find more information about this vulnerability in the OSS-Fuzz report at https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=42687

Related vulnerabilities

Recent vulnerabilities recorded for ghostscript.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. 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