CVE Database›CVE-2024-29509

CVE-2024-29509

ghostscript: heap buffer overflow via the PDFPassword parameter

Loading…

Severity

Moderate

Red Hat Product Security

5.4

CVSS 3.1

Review impact separately from score.

Published · July 3, 2024

Updated · November 21, 2025

Description

A flaw was found in Ghostscript. The runpdf command allowed the new C-based PDF interpreter to be invoked from within PS. With this, it can pass various flags and arguments (for example, see pdf_impl_set_param) normally passed via the command line when the PDF interpreter is invoked directly. Because PS-strings are not null-terminated, this issue will result in a heap buffer overflow when a value of PDFPassword is supplied with a NULL byte in the middle.

Statement

This vulnerability in Ghostscript, while serious, is considered moderate rather than important due to several mitigating factors. First, exploitation requires specific conditions, including the ability to supply a crafted PS file with a malicious PDFPassword containing a NULL byte. This restricts the attack surface primarily to scenarios where untrusted PS files are processed. Additionally, the issue does not directly lead to remote code execution or privilege escalation without further exploitation techniques. Instead, it results in a heap buffer overflow, which can be challenging to exploit reliably due to modern memory protection mechanisms.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

CVSS / CWE

CVSS 3.1 · 5.4
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L

CWE-122 · Heap-based Buffer Overflow