Buffer Overflow Vulnerability in Ghostscript Affects Multiple Alpine Versions
Summary
ALPINE-CVE-2024-46952: An issue was discovered in pdf/pdf_xref.c in Artifex Ghostscript before 10.04.0. Affects ghostscript versions < 10.04.0-r0. Fixed in 10.04.0-r0. How to fix ↓
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.
No signup required · Results in about 60 seconds
Background
Ghostscript is an interpreter for the PostScript language and for PDF. It is widely used for processing PDF files and converting them into various formats. The package is essential for applications that require document rendering and manipulation. However, a critical vulnerability has been identified in Ghostscript that affects multiple versions of Alpine Linux, making it imperative for users to address this issue to maintain system integrity.
Vulnerability Detail
An issue was discovered in pdf/pdf_xref.c in Artifex Ghostscript before version 10.04.0. This vulnerability is characterized by a buffer overflow that occurs during the handling of a PDF XRef stream, specifically related to W array values. If exploited, this could lead to arbitrary code execution, allowing attackers to compromise the affected system. The CVSS score for this vulnerability is 7.8, indicating a high severity level.
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
Currently, there are no specific workarounds recommended for this vulnerability. The best course of action is to update to the patched version as soon as it is available.
Conclusion
The buffer overflow vulnerability in Ghostscript poses a significant risk to users of Alpine Linux. It is essential to update to the patched version to mitigate potential exploitation. Users are encouraged to monitor their systems and utilize tools like Vulert to stay informed about vulnerabilities.
See every vulnerability recorded for ghostscript →
FAQ
The vulnerability is a buffer overflow that occurs during the handling of a PDF XRef stream, which can lead to arbitrary code execution.
The vulnerability affects Alpine versions 3.18, 3.19, 3.20, 3.21, and 3.22 that use Ghostscript before version 10.04.0.
You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.
While there are no specific workarounds, it is crucial to monitor your systems for any signs of exploitation and plan for an update as soon as possible.
The CVSS score for this vulnerability is 7.8, indicating a high severity level that requires prompt attention.
References
Related vulnerabilities
Recent vulnerabilities recorded for ghostscript.