CVE-2026-40863 — Vulnerability in phpoffice/phpspreadsheet — CVE...
PhpSpreadsheet has CPU Denial of Service via Unbounded Row Index in SpreadsheetML XML Reader
Summary
Advisory Timeline
- First published April 29, 2026 (166 days ago).
- Last revised May 13, 2026 — 14 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
composer require "phpoffice/phpspreadsheet:^5.7.0"
composer require "phpoffice/phpspreadsheet:^3.10.5"
composer require "phpoffice/phpspreadsheet:^1.30.4"
composer require "phpoffice/phpspreadsheet:^2.1.16"
composer require "phpoffice/phpspreadsheet:^2.4.5"
After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.
Affected Packages (5)
Affects 1 ecosystem: packagist (1).
| Package | Ecosystem | Affected | Fixed In |
|---|---|---|---|
| phpoffice/phpspreadsheet | packagist | 4.0.0, 4.1.0, 4.2.0, 4.3.0 (+10 more) | 5.7.0 |
| phpoffice/phpspreadsheet | packagist | 3.10.0, 3.10.1, 3.10.2, 3.10.3 (+11 more) | 3.10.5 |
| phpoffice/phpspreadsheet | packagist | 1.0.0, 1.0.0-beta, 1.0.0-beta2, 1.1.0 (+57 more) | 1.30.4 |
| phpoffice/phpspreadsheet | packagist | 2.0.0, 2.1.0, 2.1.1, 2.1.10 (+12 more) | 2.1.16 |
| phpoffice/phpspreadsheet | packagist | 2.2.0, 2.2.1, 2.2.2, 2.3.0 (+14 more) | 2.4.5 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 7.5 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
References
Frequently Asked Questions
- What is CVE-2026-40863?
- PhpSpreadsheet has CPU Denial of Service via Unbounded Row Index in SpreadsheetML XML Reader This vulnerability has been assigned a severity rating of HIGH (CVSS score: 7.5/10).
- How do I check if my project is affected by CVE-2026-40863?
- CVE-2026-40863 affects phpoffice/phpspreadsheet. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-40863 and 200,000+ other known vulnerabilities.
Severity & Exploitability
High exploitability or significant impact. Prioritize remediation within days.
Also Known As
Related CVEs
- CVE-2026-45034CRITICAL
PHPSpreadsheet has a patch bypass for CVE-2026-34084
- CVE-2026-34084CRITICAL
PhpSpreadsheet has SSRF/RCE in IOFactory::load when $filename is user controlled
- CVE-2026-59932HIGH
PHPSpreadsheet: Gnumeric reader unbounded gzip expansion causes memory exhaustion
- CVE-2026-59931HIGH
PHPSpreadsheet: SSRF bypass via HTTP redirect in WEBSERVICE() domain whitelist
- CVE-2026-40902HIGH
PhpSpreadsheet has CPU Denial of Service via Unbounded Row Number in XLSX Row Dimensions
- CVE-2024-45048HIGH
XXE in PHPSpreadsheet encoding is returned
- CVE-2026-65954HIGH
PHPCSUtils: Remote code execution via eval() in AbstractArrayDeclarationSniff::getActualArrayKey()
- CVE-2026-59933HIGH
PHPSpreadsheet: XLS/OLE sector-chain self-loop causes memory exhaustion
Check if you're affected
Scan your dependencies to see if this vulnerability affects your projects.
Scan Your Dependencies