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-2026-34084

CVE-2026-34084: PhpSpreadsheet RCE Vulnerability

CVE-2026-34084 is a remote code execution flaw in PhpSpreadsheet that exploits PHP stream wrappers to trigger unsafe deserialization. This post covers the technical details, affected versions, and mitigation steps.

Published: May 7, 2026

CVE-2026-34084 Overview

CVE-2026-34084 affects PhpSpreadsheet, a widely used PHP library for reading and writing spreadsheet files. The vulnerability allows attackers to abuse PHP stream wrappers when the filename argument to IOFactory::load() is user-controlled. An attacker can supply a phar://, ftp://, or ssh2.sftp:// path that bypasses the is_file() check inside File::assertFile(). The phar:// wrapper triggers PHAR metadata deserialization, enabling remote code execution when a suitable gadget chain exists. The ftp:// and ssh2.sftp:// wrappers enable server-side request forgery (SSRF). The flaw is tracked under CWE-502 (Deserialization of Untrusted Data).

Critical Impact

Unauthenticated attackers can achieve remote code execution or SSRF through user-controlled file paths passed to PhpSpreadsheet's loader.

Affected Products

  • PhpSpreadsheet versions 1.30.2 and earlier
  • PhpSpreadsheet versions 2.0.0 through 2.1.14, and 2.2.0 through 2.4.3
  • PhpSpreadsheet versions 3.3.0 through 3.10.3, and 4.0.0 through 5.5.0

Discovery Timeline

  • 2026-05-05 - CVE-2026-34084 published to NVD
  • 2026-05-07 - Last updated in NVD database

Technical Details for CVE-2026-34084

Vulnerability Analysis

The vulnerability exists in the File::assertFile() helper used by IOFactory::load() to validate input paths. The helper relies on PHP's is_file() function, which evaluates registered stream wrappers rather than restricting input to local filesystem paths. When an attacker passes a path beginning with phar://, PHP parses the referenced PHAR archive and unserializes its metadata stream. If the application loads classes containing exploitable magic methods such as __destruct or __wakeup, the deserialization triggers a property-oriented programming chain that ends in arbitrary code execution.

The same path also accepts ftp:// and ssh2.sftp:// wrappers. These wrappers cause the PHP process to issue outbound network requests, producing a server-side request forgery primitive that can reach internal services or cloud metadata endpoints.

Root Cause

The root cause is an insufficient validation pattern. is_file() returns true for any path resolvable by a registered stream wrapper, so the assertion never enforces that the input is a local file. Combined with PHP's automatic deserialization of PHAR metadata, this turns a path-validation function into a remote code execution sink.

Attack Vector

An attacker uploads or hosts a crafted PHAR archive containing serialized objects that map to gadget classes available in the target application's autoloader. The attacker then submits the path phar:///path/to/uploaded.file (or a remote variant) to any endpoint that forwards user input to IOFactory::load(). PHP processes the PHAR stream, deserializes its metadata, and executes the gadget chain. For SSRF, the attacker substitutes ftp:// or ssh2.sftp:// URLs to coerce the server into connecting to attacker-chosen hosts.

No verified public exploit code is available at the time of publication. See the GitHub Security Advisory for additional technical details.

Detection Methods for CVE-2026-34084

Indicators of Compromise

  • Web server access logs containing request parameters with phar://, ftp://, ssh2.sftp://, or other stream wrapper prefixes.
  • Unexpected outbound FTP or SFTP connections originating from PHP-FPM or web server worker processes.
  • File uploads with double extensions or non-standard MIME types where the underlying content is a PHAR archive.
  • PHP error logs referencing PharException, unserialization errors, or class autoloads triggered during spreadsheet loading.

Detection Strategies

  • Inspect application code paths that pass HTTP-supplied values into IOFactory::load() and flag any without strict scheme allow-listing.
  • Deploy web application firewall rules that block request parameters containing phar://, ftp://, or ssh2.sftp:// substrings.
  • Monitor process telemetry for PHP workers spawning shells, writing to web roots, or initiating outbound traffic on TCP/21 and TCP/22.

Monitoring Recommendations

  • Enable PHP disable_functions auditing and log calls to unserialize, phar_*, and stream wrapper APIs.
  • Forward web server, application, and network egress logs to a centralized analytics platform for correlation across upload, load, and outbound connection events.
  • Alert on file uploads followed within seconds by spreadsheet processing requests referencing the same path.

How to Mitigate CVE-2026-34084

Immediate Actions Required

  • Upgrade PhpSpreadsheet to a fixed release: 1.30.3, 2.1.15, 2.4.4, 3.10.4, or 5.6.0.
  • Audit all invocations of IOFactory::load(), IOFactory::createReaderForFile(), and related entry points for user-controlled input.
  • Reject any input value that contains :// before passing it to the library, and resolve user paths against an absolute base directory using realpath().

Patch Information

The maintainers fixed the issue in PhpSpreadsheet versions 1.30.3, 2.1.15, 2.4.4, 3.10.4, and 5.6.0. The fix tightens path validation so stream wrappers no longer satisfy the file assertion. Refer to the GitHub Security Advisory GHSA-q4q6-r8wh-5cgh for the patch commits and release notes.

Workarounds

  • Restrict accepted input to validated local paths inside an application-controlled upload directory.
  • Disable unused PHP stream wrappers using stream_wrapper_unregister('phar'), stream_wrapper_unregister('ftp'), and stream_wrapper_unregister('ssh2.sftp') where the application does not require them.
  • Configure open_basedir and allow_url_fopen=Off in php.ini to limit the filesystem and network surface available to the worker process.
bash
# Configuration example: php.ini hardening
allow_url_fopen = Off
allow_url_include = Off
open_basedir = "/var/www/app:/tmp"
disable_functions = "phar_loader"

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechPhpspreadsheet

  • SeverityCRITICAL

  • CVSS Score9.2

  • EPSS Probability0.10%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-502
  • Technical References
  • GitHub Security Advisory
  • Latest CVEs
  • CVE-2026-9813: FlowIntel SSRF Vulnerability

  • CVE-2026-4377: D-Link DWR-X1820 Auth Bypass Vulnerability

  • CVE-2026-47074: ex_aws_sns Auth Bypass Vulnerability

  • CVE-2026-46241: Linux Kernel Use-After-Free Vulnerability
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