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-2023-36664

CVE-2023-36664: Artifex Ghostscript Privilege Escalation

CVE-2023-36664 is a privilege escalation vulnerability in Artifex Ghostscript through 10.01.2 caused by improper pipe device permission handling. This article covers technical details, affected versions, and mitigation.

Published: February 11, 2026

CVE-2023-36664 Overview

CVE-2023-36664 is a command injection vulnerability in Artifex Ghostscript through version 10.01.2 that stems from improper permission validation for pipe devices. The vulnerability occurs when Ghostscript processes files containing the %pipe% prefix or the | pipe character prefix, allowing attackers to execute arbitrary commands on the target system. This flaw enables malicious actors to craft specially designed PostScript or PDF files that, when processed by Ghostscript, can execute arbitrary system commands with the privileges of the user running the application.

Critical Impact

Successful exploitation allows attackers to achieve arbitrary command execution through maliciously crafted documents processed by Ghostscript, potentially leading to complete system compromise.

Affected Products

  • Artifex Ghostscript versions through 10.01.2
  • Debian Linux 11.0 and 12.0
  • Fedora 37 and 38

Discovery Timeline

  • 2023-06-25 - CVE-2023-36664 published to NVD
  • 2024-12-05 - Last updated in NVD database

Technical Details for CVE-2023-36664

Vulnerability Analysis

This command injection vulnerability exists because Ghostscript fails to properly validate permissions when handling pipe devices. Ghostscript supports special device syntax that allows output to be piped to external commands. The %pipe% prefix and the | pipe character are used to redirect output through system commands, but the permission validation mechanism does not adequately restrict this functionality.

When a user opens or processes a malicious PostScript or PDF file, Ghostscript interprets embedded directives that leverage pipe device syntax. Without proper permission checks, these directives can execute arbitrary shell commands on the underlying operating system. This is particularly dangerous because Ghostscript is commonly used by many applications and services for document conversion, printing subsystems, and image processing pipelines.

The vulnerability is classified under CWE-552 (Files or Directories Accessible to External Parties), indicating that the core issue relates to improper access control over system resources that should be restricted.

Root Cause

The root cause lies in Ghostscript's inadequate permission validation when processing pipe device specifications. The interpreter fails to properly sanitize or restrict the use of pipe-based output devices, allowing embedded commands within document files to be executed directly by the operating system shell. This represents a failure in the input validation and access control mechanisms that should prevent untrusted document content from invoking system-level operations.

Attack Vector

The attack requires local access where a user must interact with a maliciously crafted file—typically by opening a PostScript (.ps) or PDF document containing the exploit payload. Attack scenarios include:

  1. A victim downloads and opens a malicious PDF file received via email or downloaded from the internet
  2. An application that uses Ghostscript for document processing automatically renders a malicious file
  3. Print spoolers or document management systems that leverage Ghostscript process an uploaded malicious document

The malicious document contains specially crafted PostScript commands that abuse the pipe device functionality to execute arbitrary system commands. When Ghostscript processes the file, it interprets these commands and passes them to the underlying shell for execution.

For technical details on the vulnerability mechanism, refer to the Ghostscript Bug Report which documents the specific issue with pipe device handling.

Detection Methods for CVE-2023-36664

Indicators of Compromise

  • Unusual process spawning from Ghostscript (gs) processes, particularly shell commands or network utilities
  • PostScript or PDF files containing %pipe% strings or suspicious pipe character sequences
  • Unexpected outbound network connections originating from document processing applications
  • System logs showing command execution that correlates with document processing events

Detection Strategies

  • Monitor process creation events for child processes spawned by gs, ghostscript, or related binaries
  • Implement file content inspection for documents containing %pipe% or | followed by command strings
  • Deploy behavioral analysis to detect anomalous command execution patterns from document rendering processes
  • Review application logs from services using Ghostscript for processing errors or unusual activity

Monitoring Recommendations

  • Configure endpoint detection and response (EDR) solutions to alert on suspicious process chains involving Ghostscript
  • Implement file integrity monitoring for Ghostscript binaries and configuration files
  • Enable detailed audit logging for processes executing document conversion operations
  • Monitor for PostScript interpreter warnings or errors that may indicate exploitation attempts

How to Mitigate CVE-2023-36664

Immediate Actions Required

  • Upgrade Artifex Ghostscript to version 10.01.3 or later immediately
  • Apply distribution-specific patches from Debian, Fedora, or Gentoo as appropriate for your environment
  • Restrict Ghostscript execution to trusted documents only until patching is complete
  • Consider temporarily disabling Ghostscript functionality in applications where it is not critical

Patch Information

Artifex has released patches addressing this vulnerability in Ghostscript versions after 10.01.2. The fixes are available through the following commits:

  • Ghostscript Commit 0974e4f
  • Ghostscript Commit 505eab7

Distribution-specific advisories and patches are available:

  • Debian Security Advisory DSA-5446
  • Gentoo GLSA 202309-03
  • Fedora package updates available via the Fedora Package Announcement

Workarounds

  • Use the -dSAFER flag when invoking Ghostscript to restrict file system access and disable potentially dangerous features
  • Implement application sandboxing or containerization for services that process untrusted documents with Ghostscript
  • Deploy network segmentation to limit the impact of potential command execution from document processing systems
  • Configure file upload validation to scan incoming documents for suspicious content before Ghostscript processing
bash
# Example: Running Ghostscript with SAFER mode enabled
gs -dSAFER -dBATCH -dNOPAUSE -sDEVICE=pdfwrite -sOutputFile=output.pdf input.ps

# Verify installed Ghostscript version
gs --version

# Update Ghostscript on Debian/Ubuntu
sudo apt update && sudo apt install --only-upgrade ghostscript

# Update Ghostscript on Fedora
sudo dnf update ghostscript

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

  • Vulnerability Details
  • TypePrivilege Escalation

  • Vendor/TechArtifex Ghostscript

  • SeverityHIGH

  • CVSS Score7.8

  • EPSS Probability6.43%

  • 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
  • NVD-CWE-Other

  • CWE-552
  • Technical References
  • Ghostscript Bug Report

  • Ghostscript Commit 0974e4f

  • Ghostscript Commit 505eab7

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Gentoo GLSA 202309-03

  • Debian Security Advisory DSA-5446
  • Related CVEs
  • CVE-2024-29510: Artifex Ghostscript Privilege Escalation

  • CVE-2020-15900: Ghostscript Privilege Escalation Flaw

  • CVE-2024-46953: Ghostscript Path Traversal Vulnerability

  • CVE-2025-27836: 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