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-29511

CVE-2024-29511: Artifex Ghostscript Path Traversal Flaw

CVE-2024-29511 is a path traversal vulnerability in Artifex Ghostscript when Tesseract OCR is enabled, allowing attackers to read arbitrary files. This article covers technical details, affected versions, and mitigation.

Updated: January 22, 2026

CVE-2024-29511 Overview

CVE-2024-29511 is a directory traversal vulnerability affecting Artifex Ghostscript before version 10.03.1 when Tesseract is used for OCR (Optical Character Recognition). The flaw allows attackers to read arbitrary files on the system and write error messages to arbitrary file locations by manipulating the OCRLanguage parameter. Exploitation can leverage parameters such as debug_file and user_patterns_file to access sensitive system files like /etc/passwd.

Critical Impact

This vulnerability enables unauthorized file access across the filesystem, potentially exposing sensitive configuration files, credentials, and system data through crafted OCR requests.

Affected Products

  • Artifex Ghostscript versions prior to 10.03.1
  • Systems using Ghostscript with Tesseract OCR integration
  • Document processing pipelines and print servers leveraging Ghostscript

Discovery Timeline

  • 2024-07-03 - CVE-2024-29511 published to NVD
  • 2025-04-28 - Last updated in NVD database

Technical Details for CVE-2024-29511

Vulnerability Analysis

This directory traversal vulnerability exists in Artifex Ghostscript's integration with the Tesseract OCR engine. When processing documents that require optical character recognition, Ghostscript passes configuration parameters to Tesseract, including language files and debug output paths. The vulnerability stems from insufficient validation of the OCRLanguage parameter, which allows path traversal sequences to escape the intended directory structure.

Attackers can exploit this flaw through two primary mechanisms: reading arbitrary files by pointing user_patterns_file to sensitive system files, and writing error messages to arbitrary locations using the debug_file parameter. For example, an attacker could specify user_patterns_file /etc/passwd to read the system password file, or use debug_file /tmp/out to write data to controlled locations.

The vulnerability is classified under CWE-489 (Active Debug Code), as the debug functionality provides the pathway for exploitation. The network-based attack vector means any service that processes untrusted documents using Ghostscript with Tesseract OCR enabled is potentially vulnerable.

Root Cause

The root cause lies in the improper sanitization of file path parameters passed to the Tesseract OCR subsystem. The OCRLanguage parameter and related configuration options do not properly validate or restrict path components, allowing relative path traversal sequences (e.g., ../) and absolute paths to reach files outside the intended OCR data directories. This represents a failure to apply proper input validation and path canonicalization before using user-controlled values in file system operations.

Attack Vector

The attack can be executed remotely by crafting a malicious document designed for OCR processing. When Ghostscript processes this document with Tesseract integration enabled, the attacker-controlled parameters are passed directly to file system operations without adequate sanitization.

An attacker would typically craft a PostScript or PDF document that triggers OCR processing with manipulated configuration parameters. By setting debug_file to a writable location such as /tmp/out and user_patterns_file to a target file like /etc/passwd, the attacker can exfiltrate file contents through error messages or debug output. The exploitation requires no authentication and can be triggered through any document processing workflow that uses the vulnerable Ghostscript configuration.

For detailed exploitation techniques and proof-of-concept information, refer to the Ghostscript Bug Report #707510 and the Openwall OSS Security Mailing List disclosure.

Detection Methods for CVE-2024-29511

Indicators of Compromise

  • Ghostscript process accessing files outside standard OCR data directories such as /etc/, /root/, or user home directories
  • Unusual file read operations targeting sensitive configuration files like /etc/passwd, /etc/shadow, or application configuration files
  • Debug output files appearing in unexpected locations such as /tmp/ or world-writable directories
  • Ghostscript logs showing OCRLanguage parameters containing path traversal sequences (../) or absolute paths

Detection Strategies

  • Monitor Ghostscript and Tesseract processes for file access outside expected OCR data directories using file integrity monitoring tools
  • Implement application-level logging to capture and analyze OCRLanguage and related OCR parameters in processed documents
  • Deploy behavioral analysis to detect anomalous file read patterns from document processing services
  • Use endpoint detection to alert on Ghostscript processes reading sensitive system files

Monitoring Recommendations

  • Configure file access auditing on sensitive directories that should never be accessed by document processing applications
  • Implement network-level monitoring for unusual data exfiltration patterns from document processing servers
  • Enable verbose logging for Ghostscript operations to capture parameter values passed to Tesseract subsystem
  • Review application logs regularly for path traversal patterns in document processing requests

How to Mitigate CVE-2024-29511

Immediate Actions Required

  • Upgrade Artifex Ghostscript to version 10.03.1 or later immediately
  • If immediate patching is not possible, disable Tesseract OCR integration in Ghostscript configurations
  • Restrict network access to document processing services while patching is in progress
  • Audit systems for signs of exploitation by reviewing file access logs for suspicious patterns

Patch Information

Artifex has released a security fix in Ghostscript version 10.03.1 that addresses this directory traversal vulnerability. The patch implements proper input validation and path sanitization for OCR-related parameters before they are used in file system operations. The security fix can be reviewed in the Ghostscript Commit Changes which details the code modifications. Organizations should prioritize applying this update to all systems running Ghostscript with Tesseract OCR functionality.

Workarounds

  • Disable Tesseract OCR integration in Ghostscript by removing or commenting out OCR-related device configurations
  • Implement strict input validation at the application layer to reject documents with suspicious OCR parameters before processing
  • Run Ghostscript in a sandboxed environment with restricted file system access using containers or chroot jails
  • Use AppArmor or SELinux policies to confine Ghostscript process file access to only necessary directories
bash
# Configuration example - Disable OCR device and restrict file access
# Add to Ghostscript configuration or wrapper script

# Disable OCR devices if not required
gs -dNOSAFER -dBATCH -dNOPAUSE -sDEVICE=pdfwrite \
   -dOCRDevice=false \
   -sOutputFile=output.pdf input.pdf

# Alternative: Run Ghostscript with restricted permissions
# Create a dedicated user with minimal filesystem access
sudo useradd -r -s /bin/false ghostscript-user
sudo chown -R ghostscript-user:ghostscript-user /var/spool/ghostscript

# Run processes as restricted user
sudo -u ghostscript-user gs -sDEVICE=pdfwrite input.pdf

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.5

  • EPSS Probability0.78%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-489
  • Technical References
  • Ghostscript Bug Report #707510

  • Ghostscript Commit Changes

  • Openwall OSS Security Mailing List
  • Related CVEs
  • CVE-2024-46953: Ghostscript Path Traversal Vulnerability

  • CVE-2024-46954: 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