Stack-buffer-overflow in line_join_points in ghostscript
Summary
OSV-2024-80: Stack-buffer-overflow in line_join_points. Affects ghostscript across 2 version ranges.
>= eb9fc0106d45d1ce81ab2c4ae1a3d6e90a8c0164, < 0782358e011f158ba5c49137189e5ee320580af2
>= ee290c1aebaa172c812f21024af2dbf721fa5865
No fix is published. 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 open-source interpreter for the PostScript language and the PDF file format. It is widely used for rendering and converting documents. The vulnerability in the line_join_points function can lead to a stack-buffer-overflow, potentially allowing an attacker to execute arbitrary code or cause a denial-of-service.
Vulnerability Detail
The vulnerability occurs in the line_join_points function of Ghostscript. It is triggered by a stack-buffer-overflow when writing 4 bytes. This can be exploited by an attacker to overwrite adjacent memory and potentially execute arbitrary code. The vulnerability has been assigned a severity rating of HIGH. More details can be found in the OSS-Fuzz report: [link to report].
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
Currently, no known workarounds exist for this vulnerability. It is recommended to apply the fix provided by the Ghostscript project.
Conclusion
The stack-buffer-overflow vulnerability in the line_join_points function of Ghostscript can potentially allow an attacker to execute arbitrary code or cause a denial-of-service. It is recommended to update Ghostscript to a version that includes the fix. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for ghostscript →
FAQ
Ghostscript is an open-source interpreter for the PostScript language and the PDF file format. It is commonly used for rendering and converting documents.
This vulnerability can potentially allow an attacker to execute arbitrary code or cause a denial-of-service.
To fix this vulnerability, update Ghostscript to a version that includes the fix.
Currently, no known workarounds exist for this vulnerability.
More information about this vulnerability can be found in the OSS-Fuzz report: [link to report].
References
Related vulnerabilities
Recent vulnerabilities recorded for ghostscript.