Stack-buffer-overflow in line_join_points in ghostscript

ghostscript Updated 02 Oct 2025

Summary

07/02/2024
HIGH
No i
High
Not published

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 ↓

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 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 →

Share this vulnerability

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].

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