CVE-2024-29510: Ghostscript uniprint Format String Injection and SAFER Sandbox Escape
- Vendors
- Artifex SoftwareGhostscript
CVE-2024-29510 is a format string vulnerability in Artifex Ghostscript, documented in versions 9.50 through 10.03.0, that permits memory corruption and escape from the SAFER sandbox. The uniprint output device accepts attacker-controlled formatting parameters, including upYMoveCommand. In upd_wrtrtl(), this parameter is passed as the format string to gs_snprintf() with insufficient variadic arguments, allowing crafted format specifiers to disclose and modify process memory. Exploitation can overwrite the path_control_active field, disable sandbox restrictions, and execute operating-system commands. Malicious PostScript or EPS documents can expose applications that invoke Ghostscript directly or indirectly for document rendering and conversion.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation compromises Ghostscript's sandbox boundary and enables arbitrary command execution with the privileges of the Ghostscript process or invoking application. Memory disclosure can expose environment variables, addresses useful for bypassing ASLR, and stack cookies. Arbitrary memory writes can disable sandbox enforcement, allowing access to files and command-execution facilities otherwise prohibited by SAFER. Network-facing conversion and image-processing services may consequently expose host data and application privileges to remote attackers.
Mitigation
If you can’t patch tonight, do this now.
Until patched, prevent untrusted PostScript and EPS from reaching Ghostscript. Where these formats are unnecessary, enforce an explicit validated input-format or decoder allowlist rather than relying on MIME labels, and remove Ghostscript from processing environments where feasible. Restrict access to exposed conversion or image-processing endpoints. Run rendering workloads with least privilege and external filesystem, process, resource, and network restrictions to reduce consequences of a sandbox escape. SAFER mode alone does not prevent exploitation.
Remediation
Patch, then assume compromise.
Upgrade Ghostscript to version 10.03.1 or later, or install a vendor-maintained package explicitly patched for CVE-2024-29510. Ghostscript 10.03.0 does not fix this vulnerability. Update all affected installations, including copies used indirectly by document converters, image-processing libraries, rendering services, and application containers. For Chainguard packages, install version 10.03.1-r0 or a later fixed package.
Exploits
3 exploits validated by Mallory's analysis.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2024-29510 exploited in the wild?
- Yes. As of Dec 2, 2026, Mallory has reports of exploitation in the wild.
- Is there a public exploit for CVE-2024-29510?
- Yes. Mallory tracks 3 public exploits or proofs of concept for CVE-2024-29510, the earliest disclosed Mar 14, 2024.
- Is there a patch for CVE-2024-29510?
- Upgrade Ghostscript to version 10.03.1 or later, or install a vendor-maintained package explicitly patched for CVE-2024-29510. Ghostscript 10.03.0 does not fix this vulnerability.
- What products are affected by CVE-2024-29510?
- Ghostscript and Artifex Software Ghostscript.
- How severe is CVE-2024-29510?
- CVE-2024-29510 has a CVSS v3.1 score of 6.3 (Medium) and an EPSS score of 27.7% (98th percentile) as of Dec 2, 2026.
Recent activity
15 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.