Ghostscript Format String Flaw Enables Linux Command Execution
Vulnerability Disclosure · 2 sources · Updated 4mo ago · First seen Jul 8, 2026

Researchers detailed exploitation of CVE-2024-29510, a format string vulnerability in Ghostscript, showing how the flaw can be abused to achieve command execution on Linux systems. The issue is especially relevant to environments that process untrusted PostScript or PDF content through Ghostscript, including document conversion pipelines and applications that invoke Ghostscript indirectly through other software.
Splunk published a detection analytic for identifying likely exploitation by monitoring for ghostscript or gs spawning shell commands such as:
sh -c ...
The detection is designed for Splunk Enterprise Security deployments using Sysmon for Linux or equivalent EDR telemetry mapped to the Endpoint data model, and it warns that legitimate document-processing workflows may generate false positives, particularly where Ghostscript is used by file conversion services or embedded in LibreOffice-driven processes.
Why it matters
Impact assessment
CVE-2024-29510 is a Ghostscript vulnerability that can lead to Linux command execution when untrusted PostScript or PDF content is processed. The highest-risk environments are document conversion pipelines, print/rendering services, server-side file handling workflows, and applications that invoke Ghostscript indirectly, including LibreOffice-based processing.
Impact can include arbitrary command execution, follow-on malware deployment, service disruption, and potential data exposure depending on the privileges of the Ghostscript process. Exposure is potentially broad because Ghostscript is commonly embedded in backend document workflows, but exploitation is most relevant where untrusted files are accepted from users, email, web uploads, or automated ingestion pipelines.
Supporting facts
- Affected product: Ghostscript
- Vulnerability: CVE-2024-29510
- Vulnerability type: format string flaw
- Primary impact described: Linux command execution
- Likely affected use cases:
- Document conversion services
- PDF/PostScript rendering pipelines
- Applications invoking Ghostscript indirectly
- LibreOffice-driven document processing workflows
- Likely business impact:
- Operational disruption of file-processing services
- Potential compromise of Linux hosts handling documents
- Possible downstream data access or staging for lateral movement
- Scope of exposure:
- Broad across environments using Ghostscript with untrusted content
- Higher risk in internet-facing or user-submission workflows
- Known exploitation in the wild:
- The provided story describes exploitation mechanics and a detection analytic, but does not confirm active in-the-wild exploitation campaigns
- Detection relevance:
- Splunk published a dedicated analytic to identify likely exploitation behavior, indicating practical defender concern and actionable monitoring opportunities


