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-2025-27832

CVE-2025-27832: Artifex Ghostscript Buffer Overflow Flaw

CVE-2025-27832 is a buffer overflow vulnerability in Artifex Ghostscript's NPDL device that affects versions before 10.05.0. This article covers the technical details, affected versions, security impact, and mitigation.

Updated: January 22, 2026

CVE-2025-27832 Overview

A critical buffer overflow vulnerability has been identified in Artifex Ghostscript before version 10.05.0. The vulnerability exists in the NPDL (Nippon Page Description Language) device driver implementation within contrib/japanese/gdevnpdl.c. This buffer overflow in the Compression buffer can be exploited by a remote attacker to potentially execute arbitrary code or cause a denial of service condition.

Critical Impact

Remote attackers can exploit this buffer overflow vulnerability in the NPDL device compression handling to potentially achieve code execution, compromise system confidentiality, integrity, and availability without requiring any user interaction or privileges.

Affected Products

  • Artifex Ghostscript versions prior to 10.05.0
  • Systems utilizing the NPDL device driver for Japanese printer support
  • Applications and services that process PostScript or PDF files using vulnerable Ghostscript installations

Discovery Timeline

  • 2025-03-25 - CVE-2025-27832 published to NVD
  • 2025-11-03 - Last updated in NVD database

Technical Details for CVE-2025-27832

Vulnerability Analysis

This vulnerability is classified as CWE-120 (Buffer Copy without Checking Size of Input), commonly known as a classic buffer overflow. The flaw resides in the NPDL device driver, which is part of the Japanese printer driver contributions in Ghostscript. The NPDL device handles page description output for certain Japanese printers and includes compression functionality that fails to properly validate buffer boundaries during data processing operations.

The buffer overflow occurs in the compression handling code within contrib/japanese/gdevnpdl.c. When processing specially crafted input, the compression routine can write beyond the allocated buffer boundaries, leading to memory corruption. This can be triggered when Ghostscript processes a malicious PostScript or PDF document that targets the NPDL output device.

Root Cause

The root cause of this vulnerability is insufficient bounds checking in the compression buffer handling within the NPDL device driver. The gdevnpdl.c source file implements compression functionality for the NPDL output format, but fails to properly validate that data being written to the compression buffer does not exceed its allocated size. This classic buffer overflow pattern allows an attacker to corrupt adjacent memory regions.

Attack Vector

The attack vector for this vulnerability is network-based and requires no authentication or user interaction. An attacker can exploit this vulnerability by:

  1. Crafting a malicious PostScript or PDF document containing specially designed content
  2. Tricking a victim into processing the document through Ghostscript with NPDL output enabled, or targeting a server-side document processing service
  3. When the vulnerable compression code processes the malicious input, the buffer overflow is triggered
  4. The attacker can potentially achieve arbitrary code execution by controlling the overwritten memory contents

The vulnerability can be exploited through any application or service that uses Ghostscript to process untrusted documents. This includes web applications, document conversion services, print servers, and preview generators that may invoke Ghostscript with NPDL device output.

The vulnerability manifests in the compression buffer handling within contrib/japanese/gdevnpdl.c. When the NPDL device driver processes document data, insufficient bounds checking allows writes beyond the allocated compression buffer. For technical implementation details, refer to the Ghostscript Bug Report #708133.

Detection Methods for CVE-2025-27832

Indicators of Compromise

  • Unexpected crashes or segmentation faults in Ghostscript processes during document processing
  • Anomalous memory access patterns or memory corruption errors in Ghostscript logs
  • Presence of malformed PostScript or PDF files that specifically target NPDL device output
  • Unexpected child processes spawned by Ghostscript instances

Detection Strategies

  • Monitor Ghostscript process behavior for signs of exploitation such as abnormal memory usage or unexpected system calls
  • Implement file integrity monitoring for Ghostscript binaries and configuration files
  • Deploy endpoint detection rules to identify suspicious PostScript or PDF documents being processed
  • Use application sandboxing to limit the impact of potential exploitation

Monitoring Recommendations

  • Enable verbose logging for Ghostscript operations to capture error conditions and crashes
  • Implement network traffic analysis to detect suspicious document transfers to systems running Ghostscript
  • Configure security monitoring to alert on Ghostscript process crashes or abnormal terminations
  • Monitor system logs for evidence of memory corruption or exploitation attempts

How to Mitigate CVE-2025-27832

Immediate Actions Required

  • Upgrade Artifex Ghostscript to version 10.05.0 or later immediately
  • If immediate patching is not possible, disable the NPDL device driver if it is not required for operations
  • Implement network segmentation to limit exposure of systems running vulnerable Ghostscript versions
  • Restrict Ghostscript from processing untrusted documents until patched

Patch Information

Artifex has addressed this vulnerability in Ghostscript version 10.05.0. Organizations should upgrade to this version or later to remediate the vulnerability. The fix addresses the buffer overflow in the NPDL device compression handling by implementing proper bounds checking.

For detailed patch information, refer to the Ghostscript Bug Report #708133. Additionally, the Debian LTS Announce Notice provides information on patched packages for Debian-based systems.

Workarounds

  • Disable the NPDL device driver by removing or renaming the device library if Japanese printer support is not required
  • Run Ghostscript with -dSAFER flag to enable sandbox mode and restrict file operations
  • Use Ghostscript's -dNODISPLAY option and avoid specifying NPDL as the output device for untrusted documents
  • Implement input validation to filter or quarantine suspicious PostScript and PDF documents before processing
bash
# Configuration example - Disable NPDL device and enable safer mode
# Add these options when invoking Ghostscript for untrusted documents
ghostscript -dSAFER -dBATCH -dNOPAUSE -sDEVICE=pdfwrite input.ps

# Alternatively, restrict available devices at compile time
# or remove gdevnpdl.so/gdevnpdl.dll from the Ghostscript installation

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

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability0.12%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-120
  • Technical References
  • Debian LTS Announce Notice
  • Vendor Resources
  • Ghostscript Bug Report #708133
  • Related CVEs
  • CVE-2025-27836: Artifex Ghostscript Buffer Overflow Flaw

  • CVE-2025-27831: Ghostscript Buffer Overflow Vulnerability

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

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