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

CVE-2026-40863: PhpSpreadsheet XML Reader DoS Vulnerability

CVE-2026-40863 is a denial of service flaw in PhpSpreadsheet's XML reader that allows attackers to cause CPU exhaustion through crafted files. This article covers technical details, affected versions, and patches.

Published: May 17, 2026

CVE-2026-40863 Overview

CVE-2026-40863 is a denial-of-service vulnerability in PhpSpreadsheet, a pure PHP library for reading and writing spreadsheet files. The flaw resides in the SpreadsheetML XML reader (Reader\Xml), which fails to validate the ss:Index row attribute against the maximum allowed row count (AddressRange::MAX_ROW = 1,048,576). An attacker can submit a crafted SpreadsheetML XML document that inflates the internal cachedHighestRow value to roughly one billion rows. Any subsequent call to getRowIterator() without an explicit end row will iterate that range, exhausting CPU resources. The issue affects all releases prior to 1.30.4, 2.1.16, 2.4.5, 3.10.5, and 5.7.0. It is categorized under [CWE-770] Allocation of Resources Without Limits or Throttling.

Critical Impact

A single malicious SpreadsheetML upload can trigger near-billion-row iteration in PhpSpreadsheet, causing sustained CPU exhaustion and full denial of service on the host application.

Affected Products

  • PHPOffice PhpSpreadsheet versions prior to 1.30.4
  • PHPOffice PhpSpreadsheet versions 2.0.0 through versions prior to 2.1.16 and 2.4.5
  • PHPOffice PhpSpreadsheet versions 3.x prior to 3.10.5 and 5.x prior to 5.7.0

Discovery Timeline

  • 2026-05-12 - CVE-2026-40863 published to NVD
  • 2026-05-13 - Last updated in NVD database

Technical Details for CVE-2026-40863

Vulnerability Analysis

The vulnerability is an unchecked resource allocation flaw in the SpreadsheetML XML reader. PhpSpreadsheet defines AddressRange::MAX_ROW as 1,048,576, matching the upper row limit of the OOXML specification. However, the Reader\Xml parser accepts the ss:Index attribute on a <Row> element without bounding it against this constant.

When the parser encounters an inflated index such as ss:Index="999999999", it updates the worksheet's cachedHighestRow to that attacker-controlled value. The cached value is later consumed by getRowIterator() when no explicit end row is supplied. The iterator then walks nearly one billion empty rows, saturating the CPU.

Root Cause

The root cause is missing input validation in the SpreadsheetML XML reader. The reader trusts attacker-controlled row indices and writes them directly into worksheet metadata. No clamp or sanity check enforces the documented AddressRange::MAX_ROW ceiling before the value influences iteration behavior.

Attack Vector

Exploitation requires no authentication or user interaction. Any application that accepts SpreadsheetML XML uploads and parses them with Reader\Xml, then calls getRowIterator() without specifying an end row, is exposed. An attacker submits a small XML file containing a <Row> element with ss:Index="999999999". Subsequent iteration consumes a worker process indefinitely, and repeated submissions can take down the entire application tier.

The vulnerability is described in the PHPOffice GitHub Security Advisory GHSA-84wq-86v6-x5j6.

Detection Methods for CVE-2026-40863

Indicators of Compromise

  • SpreadsheetML XML files containing <Row> elements with ss:Index values greater than 1048576.
  • PHP-FPM or web worker processes pinned at 100% CPU for extended periods after a spreadsheet upload.
  • Application logs showing long-running calls into PhpOffice\PhpSpreadsheet\Reader\Xml::load() or Worksheet::getRowIterator().

Detection Strategies

  • Inspect uploaded SpreadsheetML payloads at the application gateway and reject files where any ss:Index attribute exceeds the OOXML maximum row count.
  • Instrument PhpSpreadsheet entry points with execution-time and memory metrics, and alert on parser invocations exceeding a defined threshold.
  • Audit deployed phpoffice/phpspreadsheet versions in Composer lock files against the fixed releases.

Monitoring Recommendations

  • Track CPU utilization on web and queue workers that process user-supplied spreadsheets and alert on sustained saturation.
  • Log and review request paths that invoke spreadsheet ingestion endpoints, correlating elevated latency with specific uploads.
  • Enable web application firewall (WAF) inspection rules that flag XML payloads containing oversized numeric attribute values.

How to Mitigate CVE-2026-40863

Immediate Actions Required

  • Upgrade phpoffice/phpspreadsheet to 1.30.4, 2.1.16, 2.4.5, 3.10.5, or 5.7.0 depending on the major version in use.
  • Until patched, disable SpreadsheetML XML ingestion paths or restrict spreadsheet uploads to authenticated, trusted users.
  • Audit application code for calls to getRowIterator() that omit an explicit end row parameter and add bounded ranges.

Patch Information

PHPOffice fixed CVE-2026-40863 in PhpSpreadsheet releases 1.30.4, 2.1.16, 2.4.5, 3.10.5, and 5.7.0. The patched reader validates the ss:Index attribute against AddressRange::MAX_ROW before updating cachedHighestRow. Upgrade details are published in the PHPOffice security advisory GHSA-84wq-86v6-x5j6.

Workarounds

  • Pre-validate SpreadsheetML XML uploads and reject documents whose ss:Index values exceed 1048576.
  • Always pass an explicit end row to getRowIterator($startRow, $endRow) to bound iteration regardless of cached worksheet metadata.
  • Enforce per-request CPU and execution time limits on PHP workers that handle spreadsheet parsing.
bash
# Configuration example: upgrade PhpSpreadsheet via Composer to a fixed release
composer require phpoffice/phpspreadsheet:^5.7.0
# Or, for projects pinned to earlier major versions:
composer require phpoffice/phpspreadsheet:^3.10.5
composer require phpoffice/phpspreadsheet:^2.4.5

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechPhpoffice Phpspreadsheet

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-770
  • Vendor Resources
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-40902: PhpOffice PhpSpreadsheet DoS Vulnerability

  • CVE-2026-40296: PhpSpreadsheet XSS Vulnerability

  • CVE-2024-45293: PHPSpreadsheet XXE 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