Skip to main content
Mallory
← Back to News
endpoint-software-vulnerabilitydetection-content-updateproof-of-concept-releaseinitial-access-method

Ghostscript Format String Flaw Enables Linux Command Execution

Vulnerability Disclosure · 2 sources · Updated 4mo ago · First seen Jul 8, 2026

Ghostscript Format String Flaw Enables Linux Command Execution

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
Do you run this?See affected versions and whether adversaries are exploiting it.
Check your exposure
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

1 event · Jul 8, 2026
  1. Jul 8, 20265mo ago

    Splunk publishes Linux Ghostscript exploitation detection

    Splunk Research updated and published a detection analytic titled "Linux Ghostscript Exploitation" for identifying Ghostscript or gs spawning shell commands on Linux, mapped to CVE-2024-29510. The analytic is intended for Sysmon for Linux/EDR telemetry in Splunk Enterprise Security and is disabled by default.

    Detection: Linux Ghostscript Exploitation | Splunk Security Content
Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

Open in app →

Affected products

1 linked
Ghostscript
Do you run this?See whether adversaries are exploiting this yet, and where the affected versions run in your environment.
Check Your Exposure
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.