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

CVE-2023-52722: Artifex Ghostscript Security Vulnerability

CVE-2023-52722 is a security flaw in Artifex Ghostscript affecting SAFER mode that allows eexec seeds other than Type 1 standard. This article covers technical details, affected versions, impact, and mitigation.

Published: February 4, 2026

CVE-2023-52722 Overview

CVE-2023-52722 is an authorization bypass vulnerability discovered in Artifex Ghostscript before version 10.03.1. The vulnerability exists in the psi/zmisc1.c component, where SAFER mode fails to properly restrict eexec seeds to the Type 1 standard. This flaw allows attackers to use non-standard eexec seeds when SAFER mode is enabled, potentially bypassing security restrictions designed to limit Ghostscript's capabilities when processing untrusted documents.

Critical Impact

Attackers can bypass SAFER mode security restrictions in Ghostscript by leveraging non-standard eexec seeds, potentially enabling unauthorized file system modifications when processing malicious PostScript or PDF files.

Affected Products

  • Artifex Ghostscript versions prior to 10.03.1
  • Systems using Ghostscript for PDF/PostScript processing with SAFER mode enabled
  • Applications and services that rely on Ghostscript's SAFER mode for security isolation

Discovery Timeline

  • 2024-04-28 - CVE-2023-52722 published to NVD
  • 2025-06-23 - Last updated in NVD database

Technical Details for CVE-2023-52722

Vulnerability Analysis

This vulnerability represents an authorization bypass in Ghostscript's SAFER mode implementation. SAFER mode is a critical security feature designed to restrict Ghostscript's access to the file system and prevent execution of potentially dangerous operations when processing untrusted documents. The vulnerability in psi/zmisc1.c allows the use of eexec seeds that deviate from the Type 1 font standard, which can be leveraged to circumvent these security restrictions.

The eexec encoding mechanism is a legacy obfuscation technique used in PostScript Type 1 fonts. When SAFER mode is active, Ghostscript should only accept the standard eexec seed value (55665) to maintain security boundaries. However, the vulnerable code path allows alternative seed values, creating an avenue for attackers to craft malicious documents that can perform unauthorized operations.

Root Cause

The root cause lies in insufficient validation within the psi/zmisc1.c file. When Ghostscript processes eexec-encoded content in SAFER mode, the code fails to enforce that only the standard Type 1 eexec seed (55665) is accepted. This oversight allows attackers to supply arbitrary seed values, which can be used to decode malicious PostScript code that bypasses SAFER mode restrictions. The fix involves adding proper validation to ensure that only the standard seed is accepted when operating in SAFER mode.

Attack Vector

The attack requires local access with user interaction, typically through processing a maliciously crafted PostScript or PDF document. An attacker would craft a document containing eexec-encoded content with a non-standard seed value. When a user or automated system processes this document using Ghostscript with SAFER mode enabled, the malicious code bypasses security restrictions that would normally prevent file system modifications or other dangerous operations.

The attack scenario typically involves:

  1. An attacker creates a malicious PostScript or PDF file containing eexec-encoded content with a non-standard seed
  2. The victim opens or processes the file using Ghostscript (directly or through an application that uses Ghostscript)
  3. Despite SAFER mode being enabled, the non-standard seed allows the embedded code to execute with elevated capabilities
  4. The attacker achieves unauthorized file system write access or other restricted operations

For technical details regarding the vulnerability mechanism and the specific code changes, refer to the Ghostscript Commit Update.

Detection Methods for CVE-2023-52722

Indicators of Compromise

  • PostScript or PDF files containing eexec sections with non-standard seed values (anything other than 55665)
  • Unexpected file system modifications occurring during document processing operations
  • Ghostscript processes attempting to access files or directories outside expected working paths

Detection Strategies

  • Monitor Ghostscript process activity for file system write operations when processing untrusted documents
  • Implement file integrity monitoring on systems that process untrusted PDF/PostScript content
  • Deploy endpoint detection rules that flag Ghostscript child processes or unexpected file access patterns
  • Audit document processing workflows for anomalous behavior patterns

Monitoring Recommendations

  • Enable verbose logging for Ghostscript operations in production environments
  • Implement sandbox monitoring for document conversion services
  • Configure SentinelOne Singularity to monitor Ghostscript process behavior and file system activity
  • Review logs for Ghostscript invocations processing documents from untrusted sources

How to Mitigate CVE-2023-52722

Immediate Actions Required

  • Upgrade Artifex Ghostscript to version 10.03.1 or later immediately
  • Audit systems for vulnerable Ghostscript installations using package managers or version queries
  • Implement additional sandboxing for document processing workflows until patching is complete
  • Review and restrict access to Ghostscript on multi-user systems

Patch Information

Artifex has released a security fix in Ghostscript version 10.03.1. The patch modifies psi/zmisc1.c to properly enforce Type 1 standard eexec seed validation when SAFER mode is active. The fix is available in commit afd7188f74918cb51b5fb89f52b54eb16e8acfd1. Organizations should update to version 10.03.1 or apply the specific commit to their installations. See the Ghostscript Commit Update for patch details.

Workarounds

  • Run Ghostscript in a containerized or sandboxed environment with restricted file system access
  • Disable Ghostscript processing of untrusted documents until the patch can be applied
  • Implement strict input validation to reject documents before Ghostscript processing where possible
  • Use application-level firewall rules to restrict Ghostscript's network and file system capabilities
bash
# Check installed Ghostscript version
gs --version

# Example: Running Ghostscript in a restricted container
docker run --rm -v /input:/input:ro -v /output:/output ghostscript:10.03.1 -sDEVICE=pdfwrite -dSAFER -o /output/out.pdf /input/document.pdf

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

  • Vulnerability Details
  • TypeOther

  • Vendor/TechArtifex Ghostscript

  • SeverityMEDIUM

  • CVSS Score5.5

  • EPSS Probability0.06%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityNone
  • CWE References
  • NVD-CWE-noinfo
  • Technical References
  • Openwall OSS-Security Mailing List
  • Vendor Resources
  • Ghostscript Commit Update
  • Related CVEs
  • CVE-2024-46953: Ghostscript Path Traversal Vulnerability

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

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

  • CVE-2025-27831: Ghostscript Buffer Overflow Vulnerability
Default Legacy - Prefooter | 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