Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • 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-2025-46646

CVE-2025-46646: Artifex Ghostscript UTF-8 Vulnerability

CVE-2025-46646 is a UTF-8 encoding flaw in Artifex Ghostscript affecting versions before 10.05.0 due to incomplete CVE-2024-46954 fixes. This article covers technical details, affected versions, and mitigation.

Published: April 15, 2026

CVE-2025-46646 Overview

CVE-2025-46646 is an input validation vulnerability affecting Artifex Ghostscript versions prior to 10.05.0. The flaw exists in the decode_utf8 function within base/gp_utf8.c, where overlong UTF-8 encoding sequences are mishandled. This vulnerability represents an incomplete fix for a previously identified issue (CVE-2024-46954), indicating that the original remediation did not fully address the underlying security concern.

Critical Impact

Improper handling of overlong UTF-8 encoding can lead to security bypass scenarios where malicious input evades validation checks, potentially enabling path traversal or other input-based attacks against systems processing PostScript or PDF files through Ghostscript.

Affected Products

  • Artifex Ghostscript versions prior to 10.05.0

Discovery Timeline

  • 2025-04-26 - CVE-2025-46646 published to NVD
  • 2025-06-23 - Last updated in NVD database

Technical Details for CVE-2025-46646

Vulnerability Analysis

The vulnerability resides in Ghostscript's UTF-8 decoding implementation. UTF-8 encoding allows characters to be represented using variable-length byte sequences (1-4 bytes). The specification mandates that each character must be encoded using the shortest possible sequence. However, "overlong" encodings use more bytes than necessary to represent a character, which can be exploited to bypass security filters that check for specific character patterns.

When the decode_utf8 function in base/gp_utf8.c processes input, it fails to properly reject overlong UTF-8 sequences. This incomplete validation allows attackers to craft malicious input that appears benign to security checks but decodes to dangerous values. The vulnerability is classified under CWE-24 (Path Traversal: '../filedir'), suggesting potential exploitation for directory traversal attacks.

This issue exists because the previous fix for CVE-2024-46954 did not comprehensively address all overlong encoding edge cases, leaving a residual attack surface.

Root Cause

The root cause is incomplete input validation in the UTF-8 decoding logic. The decode_utf8 function does not adequately verify that multi-byte UTF-8 sequences use the minimal number of bytes required for each character. This allows overlong representations (e.g., encoding ASCII characters using 2, 3, or 4 bytes instead of 1) to pass through validation checks.

Attack Vector

The attack vector is local, requiring an attacker to have the ability to supply malicious input to a Ghostscript process. This could occur through:

  • Processing a specially crafted PostScript or PDF document
  • Supplying malicious filenames or path parameters
  • Exploiting applications that use Ghostscript as a backend for document processing

Attackers can leverage overlong UTF-8 sequences to represent path traversal characters (such as ../) in a way that bypasses initial validation but resolves to the intended malicious path during processing.

The vulnerability mechanism involves crafting UTF-8 sequences that evade pattern-based security filters. For detailed technical information about the specific encoding issues, refer to the Ghostscript Bug Report #708311 and the official commit f14ea81e that addresses this issue.

Detection Methods for CVE-2025-46646

Indicators of Compromise

  • Unexpected file access attempts outside of intended directories during Ghostscript document processing
  • Anomalous UTF-8 byte sequences in input files processed by Ghostscript, particularly multi-byte representations of ASCII characters
  • Log entries indicating path resolution to unexpected locations during PDF or PostScript rendering

Detection Strategies

  • Monitor Ghostscript process activity for attempts to access files outside designated working directories
  • Implement file integrity monitoring on systems running Ghostscript to detect unauthorized file access
  • Deploy endpoint detection rules that identify suspicious input patterns containing overlong UTF-8 sequences

Monitoring Recommendations

  • Enable verbose logging for Ghostscript operations to capture file access patterns
  • Monitor for process behavior anomalies when Ghostscript handles external or untrusted documents
  • Implement network monitoring for systems that process documents from external sources

How to Mitigate CVE-2025-46646

Immediate Actions Required

  • Upgrade Artifex Ghostscript to version 10.05.0 or later immediately
  • Restrict Ghostscript processing to trusted documents only until patching is complete
  • Review and audit any custom integrations or scripts that invoke Ghostscript with external input

Patch Information

Artifex has addressed this vulnerability in Ghostscript version 10.05.0. The fix is available in commit f14ea81e6c3d2f51593f23cdf13c4679a18f1a3f. Organizations should update to the patched version through their package manager or by downloading directly from the Artifex website.

Workarounds

  • Implement input sanitization at the application layer before passing data to Ghostscript
  • Use Ghostscript's -dSAFER option to restrict file system access capabilities
  • Consider sandboxing Ghostscript processes using containerization or OS-level isolation mechanisms
bash
# Example: Running Ghostscript with restricted permissions
gs -dSAFER -dBATCH -dNOPAUSE -sDEVICE=pdfwrite -sOutputFile=output.pdf input.ps

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

  • Vulnerability Details
  • TypeOther

  • Vendor/TechGhostscript

  • SeverityMEDIUM

  • CVSS Score4.5

  • EPSS Probability0.09%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-24
  • Technical References
  • Ghostscript Bug Report #708311
  • Vendor Resources
  • Ghostscript Commit f14ea81e
  • Related CVEs
  • CVE-2025-27830: Artifex Ghostscript Buffer Overflow Flaw

  • CVE-2025-27837: Artifex Ghostscript Path Traversal Issue

  • CVE-2021-3781: Artifex Ghostscript RCE 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