CVE-2026-40863: PhpSpreadsheet is a pure PHP library for reading and writing spreadsheet files
CVE-2026-40863 is a high-severity flaw (CVSS 7.5) affecting phpspreadsheet. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
PhpSpreadsheet is a pure PHP library for reading and writing spreadsheet files. Prior to 1.30.4, 2.1.16, 2.4.5, 3.10.5, and 5.7.0, the SpreadsheetML XML reader (Reader\Xml) does not validate the ss:Index row attribute against the maximum allowed row count (AddressRange::MAX_ROW = 1,048,576). An attacker can craft a SpreadsheetML XML file with ss:Index="999999999" on a <Row> element, which inflates the internal cachedHighestRow to ~1 billion. Any
Why this priority
- High severity
- Public exploit reference
- Remotely exploitable, no login, no user action
A fixed release or distro patch exists.
Risk facts
| CVSS score | 7.5 (High) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | None |
| User interaction | None |
| EPSS exploit chance | 0.4% (top 67%) |
| CISA exploited list | No |
| Weakness | CWE-770 |
| Published | 2026-05-12 |
| Last modified | 2026-10-26 |
Last updated 2026-10-26 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2026-40863?
phpspreadsheet: upgrade to 1.30.4, 2.1.16, 2.4.5, 3.10.5, 5.7.0. Exact commands for each OS are on this page.
Is CVE-2026-40863 being exploited?
CVE-2026-40863 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2026-40863 affect?
CVE-2026-40863 affects phpspreadsheet. Severity is high (CVSS 7.5). PhpSpreadsheet is a pure PHP library for reading and writing spreadsheet files. Prior to 1.30.4, 2.1.16, 2.4.5, 3.10.5, and 5.7.0, the SpreadsheetML XML reader (Reader\Xml) does not validate the ss:Index row attribute against the maximum al
How urgent is CVE-2026-40863?
Priority 45/100. High severity; Public exploit reference; Remotely exploitable, no login, no user action
Software pages
Related CVEs
- CVE-2026-40296 MEDIUM 5.4 UPGRADE PhpSpreadsheet is a pure PHP library for reading and writing spreadsheet files
- CVE-2026-40902 HIGH 7.5 UPGRADE PhpSpreadsheet is a pure PHP library for reading and writing spreadsheet files