patchminder
Proof of concept · CISA assessment CVE-2026-40902

Denial of servicein PHPOffice PhpSpreadsheet.

Published 12 May 2026 · Updated 13 May 2026 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

Proof of concept public (CISAThe US cyber defence agency. Its list names every hole it has seen used in real attacks. assessment).

Severity
High 7.5
CVSSA severity score from 0 to 10. 9 and higher is critical. 3.1 · no login needed
Attack likelihood
Low
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 0.4% chance in 30 days · 4 Dec 2026
Fix
Available
Fixed versions listed below
In plain words

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 XLSX reader's ColumnAndRowAttributes::readRowAttributes() method reads row numbers from XML attributes without validating them against the spreadsheet maximum row limit (AddressRange::MAX_ROW = 1,048,576). An attacker can craft a minimal XLSX file (~1.6KB) containing a <row r="999999999"/> element that inflates cachedHighestRow to 999,999,999, causing any subsequent row iteration to attempt ~1 billion loop cycles and exhaust CPU resources. This vulnerability is fixed in 1.30.4, 2.1.16, 2.4.5, 3.10.5, and 5.7.0.

What to do now
  • Upgrade PhpSpreadsheet to 1.30.4, 2.1.16, 2.4.5, 3.10.5, 5.7.0 or later, whichever matches your release line.
  • Upgrade phpoffice/phpspreadsheet (Packagist) to 1.30.4, 2.1.16, 2.4.5, 3.10.5, 5.7.0 or later, whichever matches your release line.
Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
PhpSpreadsheet
before 1.30.4
1.30.4
CVE record
PhpSpreadsheet
2.0.0 to before 2.1.16
2.1.16
CVE record
PhpSpreadsheet
2.2.0 to before 2.4.5
2.4.5
CVE record
PhpSpreadsheet
3.3.0 to before 3.10.5
3.10.5
CVE record
PhpSpreadsheet
4.0.0 to before 5.7.0
5.7.0
CVE record
phpoffice/phpspreadsheet (Packagist)
4.0.0 to before 5.7.0
5.7.0
GitHub advisory
phpoffice/phpspreadsheet (Packagist)
3.3.0 to before 3.10.5
3.10.5
GitHub advisory
phpoffice/phpspreadsheet (Packagist)
2.2.0 to before 2.4.5
2.4.5
GitHub advisory
phpoffice/phpspreadsheet (Packagist)
2.0.0 to before 2.1.16
2.1.16
GitHub advisory
phpoffice/phpspreadsheet (Packagist)
before 1.30.4
1.30.4
GitHub advisory

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 15 Apr 2026
    CVE ID reserved by GitHub_M.
  2. 12 May 2026
    Published in the CVE List.
  3. 13 May 2026
    CVE record last updated.
Exploit code

Attack code anyone can find

Exploit maturity: Proof of concept (CISA assessment). CISA assessment (SSVC): exploitation poc.

Metasploit module
None known
Nuclei scan template
None known
Exploit-DB
None known
GitHub proof of concepts
None known

Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.

Related

Other PhpSpreadsheet vulnerabilities

Same weakness: Allocation without limits

All CWE-770 vulnerabilities

References
Cite this page

Patchminder. CVE-2026-40902: Denial of service in PHPOffice PhpSpreadsheet. https://patchminder.com/cve/cve-2026-40902/ (accessed 5 December 2026).