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

CVE-2025-27836: Artifex Ghostscript Buffer Overflow Flaw

CVE-2025-27836 is a buffer overflow vulnerability in Artifex Ghostscript's BJ10V 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-27836 Overview

A buffer overflow vulnerability has been discovered in Artifex Ghostscript before version 10.05.0. The vulnerability exists in the BJ10V device driver implementation within the contrib/japanese/gdev10v.c source file. This memory corruption flaw allows attackers to overflow a Print buffer, potentially leading to arbitrary code execution or system compromise.

Critical Impact

This buffer overflow vulnerability in Ghostscript's BJ10V printer device driver can be exploited remotely without authentication, potentially allowing attackers to execute arbitrary code with the privileges of the Ghostscript process.

Affected Products

  • Artifex Ghostscript versions prior to 10.05.0
  • Systems using the BJ10V device driver (gdev10v.c)
  • Linux distributions including Debian that package vulnerable Ghostscript versions

Discovery Timeline

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

Technical Details for CVE-2025-27836

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 BJ10V device driver code located in contrib/japanese/gdev10v.c, which is part of Ghostscript's contributed printer driver collection for Japanese Canon BJ10V series printers.

Buffer overflow vulnerabilities of this nature occur when data is written to a fixed-size buffer without proper bounds checking. In the context of Ghostscript, this vulnerability can be triggered during document processing when the BJ10V device driver handles print operations that exceed the allocated buffer capacity.

Root Cause

The root cause of CVE-2025-27836 is improper bounds checking in the Print buffer within the BJ10V device driver implementation. The gdev10v.c source file contains code that copies data into a fixed-size buffer without validating that the input data fits within the allocated space. This allows an attacker to provide specially crafted input that overflows the buffer boundaries, potentially overwriting adjacent memory regions including return addresses or function pointers.

Attack Vector

The vulnerability can be exploited remotely via network-accessible attack vectors. An attacker can craft a malicious PostScript or PDF document that, when processed by Ghostscript with the BJ10V device driver, triggers the buffer overflow condition. The attack requires no prior authentication or user interaction, making it particularly dangerous in environments where Ghostscript processes untrusted documents automatically.

Attack scenarios include:

  • Processing malicious PostScript/PDF files through web applications using Ghostscript
  • Email attachment processing systems that use Ghostscript for document conversion
  • Print servers and document management systems leveraging Ghostscript backends

The vulnerability mechanism involves the Print buffer in the BJ10V device driver failing to validate input size before copying data. When a malicious document is processed, oversized data overwrites memory beyond the buffer boundary. For detailed technical information, refer to the Ghostscript Bug Report #708192.

Detection Methods for CVE-2025-27836

Indicators of Compromise

  • Ghostscript process crashes or abnormal terminations during document processing
  • Unexpected memory access violations or segmentation faults in Ghostscript logs
  • Anomalous Ghostscript child processes or unexpected system calls
  • Memory corruption artifacts in core dumps associated with Ghostscript

Detection Strategies

  • Monitor Ghostscript process behavior for signs of memory corruption or unexpected crashes
  • Implement file integrity monitoring on Ghostscript binary and configuration files
  • Deploy network-level inspection for potentially malicious PostScript/PDF documents targeting document processing systems
  • Configure application whitelisting to detect unauthorized code execution from Ghostscript context

Monitoring Recommendations

  • Enable verbose logging for Ghostscript processes to capture processing errors and anomalies
  • Implement runtime application self-protection (RASP) for systems processing untrusted documents
  • Monitor system resource usage for Ghostscript processes to detect exploitation attempts
  • Configure security information and event management (SIEM) alerts for Ghostscript-related security events

How to Mitigate CVE-2025-27836

Immediate Actions Required

  • Upgrade Artifex Ghostscript to version 10.05.0 or later immediately
  • Disable or remove the BJ10V device driver if not required for operations
  • Implement input validation and sandboxing for document processing workflows
  • Restrict network access to systems running vulnerable Ghostscript versions

Patch Information

Artifex has addressed this vulnerability in Ghostscript version 10.05.0. Organizations should prioritize upgrading to this version or later. The official bug report with patch details is available at the Ghostscript Bug Tracker. Debian users should consult the Debian LTS Security Announcement for distribution-specific patch information.

Workarounds

  • Run Ghostscript in a sandboxed environment or container with restricted privileges
  • Use the -dSAFER flag when invoking Ghostscript to enable safer processing mode
  • Implement network segmentation to isolate document processing systems from untrusted networks
  • Configure AppArmor or SELinux policies to restrict Ghostscript process capabilities
bash
# Configuration example
# Run Ghostscript with safer mode and restricted device access
gs -dSAFER -dBATCH -dNOPAUSE -sDEVICE=pdfwrite -sOutputFile=output.pdf input.ps

# Disable the BJ10V device by recompiling Ghostscript without contrib drivers
# or use AppArmor/SELinux to restrict access to gdev10v functionality

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

  • 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 Announcement April 2025
  • Vendor Resources
  • Ghostscript Bug Report #708192
  • Related CVEs
  • CVE-2025-27832: 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