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

CVE-2025-27834: Artifex Ghostscript Buffer Overflow Flaw

CVE-2025-27834 is a buffer overflow vulnerability in Artifex Ghostscript triggered by oversized Type 4 functions in PDF documents. This article covers the technical details, affected versions, potential impact, and mitigation.

Updated: January 22, 2026

CVE-2025-27834 Overview

CVE-2025-27834 is a buffer overflow vulnerability discovered in Artifex Ghostscript before version 10.05.0. The vulnerability exists in the pdf/pdf_func.c component and can be triggered when processing a PDF document containing an oversized Type 4 function. This memory corruption flaw could allow an attacker to execute arbitrary code in the context of the application processing the malicious PDF file.

Critical Impact

Successful exploitation of this buffer overflow vulnerability could lead to arbitrary code execution, potentially allowing attackers to gain control of affected systems through maliciously crafted PDF documents.

Affected Products

  • Artifex Ghostscript versions prior to 10.05.0

Discovery Timeline

  • 2025-03-25 - CVE-2025-27834 published to NVD
  • 2025-04-01 - Last updated in NVD database

Technical Details for CVE-2025-27834

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 occurs in the PDF function handling code within pdf/pdf_func.c when processing Type 4 functions in PDF documents.

Type 4 functions in PDF are PostScript calculator functions that can contain arbitrary PostScript expressions. When a maliciously crafted PDF document contains an oversized Type 4 function, the Ghostscript PDF interpreter fails to properly validate the size of the input data before copying it into a fixed-size buffer. This allows an attacker to overflow the buffer and potentially overwrite adjacent memory regions.

The vulnerability requires local access and user interaction, meaning the attacker must convince a user to open a malicious PDF file using an application that relies on Ghostscript for PDF rendering. Given Ghostscript's widespread use as a PDF processing backend in various applications, document management systems, and print services, the potential attack surface is significant.

Root Cause

The root cause of CVE-2025-27834 is improper bounds checking in the pdf/pdf_func.c source file when handling Type 4 PostScript calculator functions embedded in PDF documents. The code fails to validate that the size of the incoming Type 4 function data does not exceed the allocated buffer size, allowing memory corruption when oversized data is processed.

Attack Vector

The attack vector for this vulnerability is local, requiring user interaction. An attacker could exploit this vulnerability through the following scenario:

  1. The attacker crafts a malicious PDF document containing an oversized Type 4 function designed to trigger the buffer overflow
  2. The victim opens or processes the malicious PDF using an application that relies on Ghostscript for rendering
  3. When Ghostscript processes the Type 4 function, the buffer overflow occurs
  4. The attacker's payload overwrites memory, potentially achieving arbitrary code execution with the privileges of the user running the application

Common attack vectors include email attachments, malicious downloads, or exploitation through web applications that use Ghostscript for server-side PDF processing.

The vulnerability mechanism involves improper buffer size validation in the pdf/pdf_func.c component. When processing Type 4 PostScript calculator functions in PDF documents, the code copies function data into a buffer without adequately checking whether the input exceeds the buffer's allocated size. Technical details are available in the Ghostscript Bug Report #708253.

Detection Methods for CVE-2025-27834

Indicators of Compromise

  • Unexpected Ghostscript crashes or segmentation faults when processing PDF files
  • Anomalous memory consumption patterns during PDF rendering operations
  • Suspicious PDF files with unusually large or complex Type 4 function definitions
  • Application logs showing errors related to pdf/pdf_func.c or Type 4 function processing

Detection Strategies

  • Monitor for Ghostscript process crashes, particularly when triggered by PDF file processing
  • Implement file integrity monitoring on systems using Ghostscript to detect unauthorized modifications
  • Deploy endpoint detection solutions capable of identifying buffer overflow exploitation attempts
  • Analyze PDF files for anomalous Type 4 function sizes before processing

Monitoring Recommendations

  • Enable detailed logging for applications utilizing Ghostscript PDF processing
  • Configure security information and event management (SIEM) systems to alert on Ghostscript-related anomalies
  • Monitor for unexpected child processes spawned by Ghostscript or applications using it
  • Implement network monitoring for unusual outbound connections following PDF processing

How to Mitigate CVE-2025-27834

Immediate Actions Required

  • Upgrade Artifex Ghostscript to version 10.05.0 or later immediately
  • Audit systems to identify all instances of vulnerable Ghostscript installations
  • Review applications and services that depend on Ghostscript for PDF processing
  • Implement additional input validation for PDF files before processing with Ghostscript

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. Details about the fix are available in the Ghostscript Bug Report #708253.

Workarounds

  • Disable or restrict PDF processing capabilities in Ghostscript where not required
  • Implement sandboxing for Ghostscript processes to limit the impact of potential exploitation
  • Use application whitelisting to control which applications can invoke Ghostscript
  • Configure Ghostscript with the -dSAFER flag to enable sandbox mode and restrict file operations
bash
# Run Ghostscript with SAFER mode enabled to reduce attack surface
gs -dSAFER -dBATCH -dNOPAUSE -sDEVICE=pdfwrite -sOutputFile=output.pdf input.pdf

# Verify installed Ghostscript version
gs --version

# If version is below 10.05.0, upgrade immediately
# On Debian/Ubuntu:
sudo apt update && sudo apt install ghostscript

# On RHEL/CentOS:
sudo yum update ghostscript

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.02%

  • 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
  • Vendor Resources
  • Ghostscript Bug Report #708253
  • Related CVEs
  • CVE-2025-27836: Artifex Ghostscript Buffer Overflow Flaw

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

  • CVE-2025-27831: Ghostscript Buffer Overflow Vulnerability

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