The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2024-46953

CVE-2024-46953: Ghostscript Path Traversal Vulnerability

CVE-2024-46953 is a path traversal flaw in Artifex Ghostscript caused by an integer overflow in filename parsing. This vulnerability enables attackers to bypass path restrictions and execute code.

Updated: January 22, 2026

CVE-2024-46953 Overview

An integer overflow vulnerability has been discovered in Artifex Ghostscript before version 10.04.0, specifically in the base/gsdevice.c file. This vulnerability occurs when parsing the filename format string used for output filenames, resulting in path truncation that can lead to path traversal and potential code execution.

Ghostscript is a widely-used interpreter for PostScript and PDF files, commonly deployed in document processing pipelines, print servers, and image conversion utilities across Linux distributions and enterprise environments. The vulnerability's presence in a core component of Ghostscript makes it particularly concerning for organizations processing untrusted documents.

Critical Impact

An attacker who can provide a malicious document to a Ghostscript installation could exploit this integer overflow to traverse file system paths and potentially execute arbitrary code on the target system.

Affected Products

  • Artifex Ghostscript versions prior to 10.04.0
  • Debian Linux 12.0
  • SUSE Linux Enterprise High Performance Computing 12.0 SP5
  • SUSE Linux Enterprise Server 12 SP5 (including LTSS and LTSS Extended Security)
  • SUSE Linux Enterprise Server for SAP 12 SP5

Discovery Timeline

  • 2024-11-10 - CVE-2024-46953 published to NVD
  • 2025-11-03 - Last updated in NVD database

Technical Details for CVE-2024-46953

Vulnerability Analysis

This vulnerability is classified as CWE-190 (Integer Overflow or Wraparound). The flaw exists in the filename format string parsing logic within base/gsdevice.c. When Ghostscript processes output filenames, it performs calculations to determine buffer sizes and path lengths. An attacker can craft input that causes these calculations to overflow, resulting in a smaller-than-expected buffer allocation or incorrect path length computation.

The integer overflow leads to path truncation, where the intended file path is cut short in unexpected ways. This truncation can be weaponized to achieve path traversal, allowing an attacker to write files outside the intended directory. In worst-case scenarios, this can be chained with other techniques to achieve arbitrary code execution on the affected system.

The vulnerability requires local access and user interaction, typically triggered when a user processes a maliciously crafted PostScript or PDF file through Ghostscript.

Root Cause

The root cause lies in insufficient validation of integer arithmetic operations in the filename format string parser. When calculating the output filename path, the code fails to properly check for integer overflow conditions before allocating memory or computing string lengths. This allows attackers to provide specially crafted format strings that cause the integer values to wrap around, resulting in truncated paths that bypass intended directory restrictions.

Attack Vector

The attack requires local access to the system and user interaction. An attacker would need to convince a user or automated process to open a maliciously crafted PostScript or PDF document with Ghostscript. The malicious document would contain specially crafted output filename directives designed to trigger the integer overflow.

Attack scenarios include:

  • Sending a malicious document to a print server that uses Ghostscript for processing
  • Targeting document conversion services that process user-uploaded files
  • Exploiting automated document processing pipelines in enterprise environments

The vulnerability mechanism involves crafting filename format strings with carefully calculated values that cause integer overflow during path computation. When the overflow occurs, the resulting truncated path can point to arbitrary locations in the file system. Technical details of the exploitation mechanism can be found in the Ghostscript Bug Report.

Detection Methods for CVE-2024-46953

Indicators of Compromise

  • Unexpected file writes outside of designated Ghostscript output directories
  • Presence of files with unusual or truncated names in sensitive system directories
  • Ghostscript processes attempting to access or write to unauthorized file paths
  • Anomalous PostScript or PDF files with unusually long or complex output device specifications

Detection Strategies

  • Monitor Ghostscript process activity for file operations outside expected directories using file integrity monitoring tools
  • Implement application-level logging to capture output filename parameters passed to Ghostscript
  • Deploy endpoint detection rules that alert on path traversal patterns in Ghostscript command-line arguments
  • Use SentinelOne's behavioral AI to detect anomalous file system access patterns from document processing applications

Monitoring Recommendations

  • Enable comprehensive logging for all Ghostscript invocations, including full command-line parameters
  • Monitor for creation of files in sensitive directories (e.g., /etc, /usr/bin, system startup locations) by Ghostscript processes
  • Implement network monitoring to detect exfiltration attempts following potential exploitation
  • Review document processing logs for unusual filename patterns or format string characters

How to Mitigate CVE-2024-46953

Immediate Actions Required

  • Upgrade Artifex Ghostscript to version 10.04.0 or later immediately
  • Apply vendor-provided security patches for affected Linux distributions (Debian, SUSE)
  • Restrict Ghostscript processing to trusted documents only until patched
  • Implement application sandboxing to limit Ghostscript's file system access

Patch Information

Artifex has released a patch addressing this vulnerability in Ghostscript version 10.04.0. The fix is available in the Ghostscript Commit Update with commit hash 1f21a45df0fa3abec4cff12951022b192dda3c00.

Distribution-specific patches are available:

  • SUSE: See SUSE Security Update Announcement
  • Debian: See Debian LTS Announcement

Workarounds

  • Run Ghostscript in a sandboxed environment with restricted file system permissions
  • Use -dSAFER mode when running Ghostscript to enable additional security restrictions
  • Configure file system permissions to limit write access from Ghostscript processes
  • Implement input validation to reject documents with suspicious output filename specifications
bash
# Configuration example - Running Ghostscript with safer mode and restricted output directory
gs -dSAFER -dBATCH -dNOPAUSE \
   -sDEVICE=pdfwrite \
   -sOutputFile=/restricted/output/dir/%d.pdf \
   input.ps

# Verify Ghostscript version to ensure patched version is installed
gs --version
# Expected: 10.04.0 or later

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechArtifex Ghostscript

  • SeverityHIGH

  • CVSS Score7.8

  • EPSS Probability0.09%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityHigh
  • CWE References
  • CWE-190
  • Technical References
  • Ghostscript Bug Report

  • Ghostscript Release Notes

  • SUSE Security Update Announcement

  • Debian LTS Announcement
  • Vendor Resources
  • Ghostscript Commit Update
  • Related CVEs
  • CVE-2024-46954: Artifex Ghostscript Path Traversal Flaw

  • CVE-2024-29511: Artifex Ghostscript Path Traversal Flaw

  • CVE-2025-27836: Artifex Ghostscript Buffer Overflow Flaw

  • CVE-2025-27832: Artifex Ghostscript Buffer Overflow Flaw
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English