A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
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-27835

CVE-2025-27835: Ghostscript Buffer Overflow Vulnerability

CVE-2025-27835 is a buffer overflow vulnerability in Artifex Ghostscript that occurs during glyph to Unicode conversion. This post covers the technical details, affected versions, security impact, and mitigation.

Published: May 26, 2026

CVE-2025-27835 Overview

CVE-2025-27835 is a buffer overflow vulnerability in Artifex Ghostscript versions prior to 10.05.0. The flaw resides in psi/zbfont.c, where glyph-to-Unicode conversion fails to enforce proper bounds. Attackers can trigger the overflow by supplying a crafted PostScript or PDF document that the victim processes with Ghostscript. Successful exploitation can corrupt memory, enabling arbitrary code execution in the context of the Ghostscript process.

Ghostscript is embedded in many document processing pipelines, including print servers, PDF converters, and image rendering tools. This broad deployment increases the practical attack surface for malicious document delivery.

Critical Impact

A crafted font in a PostScript or PDF file can overflow a buffer in psi/zbfont.c, leading to memory corruption and potential local code execution with the privileges of the rendering process.

Affected Products

  • Artifex Ghostscript versions before 10.05.0
  • Downstream Linux distributions packaging Ghostscript (including Debian LTS)
  • Applications and services that embed Ghostscript for PostScript or PDF rendering

Discovery Timeline

  • 2025-03-25 - CVE-2025-27835 published to the National Vulnerability Database (NVD)
  • 2025-04 - Debian LTS security advisory issued for Ghostscript packages
  • 2025-11-03 - Last updated in NVD database

Technical Details for CVE-2025-27835

Vulnerability Analysis

The vulnerability is a classic buffer overflow [CWE-120] in Ghostscript's PostScript interpreter. The defect lives in the glyph-to-Unicode conversion logic inside psi/zbfont.c. When Ghostscript processes a font definition, it builds a Unicode mapping for each glyph. The routine writes glyph data into a destination buffer without correctly validating the size of the input against the destination capacity.

An attacker crafts a font with glyph or character name entries that exceed the expected length. When Ghostscript parses the font during document rendering, the oversized data overruns the buffer. The overflow corrupts adjacent memory structures on the heap or stack, depending on the allocation path.

Because Ghostscript runs as a trusted document interpreter, exploitation does not require elevated privileges from the attacker. User interaction is required: the victim must open or process a malicious document. Many server-side workflows (print spoolers, PDF preview generators) process untrusted documents automatically, removing the user interaction barrier in practice.

Root Cause

The root cause is missing bounds enforcement when copying glyph name data into a fixed-size buffer during Unicode resolution. The function trusts input length values supplied by the parsed font rather than clamping them to the destination buffer size.

Attack Vector

The attack vector is local. An attacker delivers a malicious PostScript, EPS, or PDF file to a target system that processes the file with a vulnerable Ghostscript build. Delivery methods include email attachments, web downloads, and automated document conversion services that ingest user-supplied input.

The Ghostscript bug tracker entry Ghostscript Bug Report #708131 contains the upstream technical discussion and patch reference.

Detection Methods for CVE-2025-27835

Indicators of Compromise

  • Ghostscript processes (gs, gsc) crashing or terminating unexpectedly while rendering PostScript or PDF documents
  • Core dumps from gs referencing addresses inside zbfont.c or font-handling routines
  • Unexpected child processes spawned by Ghostscript, such as shells or network utilities
  • Document conversion or print spooler services exhibiting abnormal memory consumption or restart loops

Detection Strategies

  • Inventory all hosts running Ghostscript and compare installed versions against 10.05.0 or later
  • Inspect PostScript and PDF files for malformed CharStrings or oversized glyph name entries before processing
  • Monitor process execution chains where Ghostscript spawns non-rendering child processes
  • Correlate document ingestion events with subsequent crashes or memory errors in security telemetry

Monitoring Recommendations

  • Enable verbose logging on document conversion pipelines and forward logs to a centralized analytics platform
  • Alert on repeated gs process crashes from a single source or document type
  • Track outbound network connections originating from accounts that run Ghostscript-based services
  • Audit access to print servers and PDF preview services that handle untrusted user uploads

How to Mitigate CVE-2025-27835

Immediate Actions Required

  • Upgrade Artifex Ghostscript to version 10.05.0 or later on all systems
  • Apply distribution-specific updates, including the fix referenced in the Debian LTS Announcement
  • Restrict Ghostscript processing of untrusted documents until patching is complete
  • Run Ghostscript under a low-privilege service account with filesystem and network restrictions

Patch Information

Artifex resolved the buffer overflow in Ghostscript 10.05.0. The upstream fix is tracked in Ghostscript Bug Report #708131. Debian and other downstream maintainers have released backported packages for supported LTS releases.

Workarounds

  • Disable automatic Ghostscript-based document conversion for untrusted sources until the patch is deployed
  • Sandbox Ghostscript execution using seccomp, AppArmor, or SELinux profiles to limit process capabilities
  • Use the -dSAFER command-line flag to restrict file and operator access during interpretation
  • Pre-filter incoming documents with size and structural validation before passing them to Ghostscript
bash
# Configuration example
# Verify installed Ghostscript version
gs --version

# Debian/Ubuntu: apply security updates
sudo apt-get update && sudo apt-get install --only-upgrade ghostscript

# Invoke Ghostscript with restricted operations
gs -dSAFER -dNOPAUSE -dBATCH -sDEVICE=pdfwrite \
   -sOutputFile=out.pdf input.ps

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

  • Vulnerability Details
  • TypeBuffer Overflow

  • Vendor/TechArtifex Ghostscript

  • SeverityHIGH

  • CVSS Score7.8

  • EPSS Probability0.06%

  • 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-120
  • Technical References
  • Debian LTS Announcement
  • Vendor Resources
  • Ghostscript Bug Report #708131
  • Related CVEs
  • CVE-2025-27836: Artifex Ghostscript Buffer Overflow Flaw

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

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

  • CVE-2025-27833: Artifex Ghostscript Buffer Overflow Flaw
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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