Denial of servicein PHPOffice PhpSpreadsheet.
Proof of concept public (CISAThe US cyber defence agency. Its list names every hole it has seen used in real attacks. assessment).
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.
- 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.
Affected and fixed versions
From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.
From first report to first attacks
- 15 Apr 2026CVE ID reserved by GitHub_M.
- 12 May 2026Published in the CVE List.
- 13 May 2026CVE record last updated.
Attack code anyone can find
Exploit maturity: Proof of concept (CISA assessment). CISA assessment (SSVC): exploitation poc.
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.
Report a link
Nothing on this page links to exploit code right now. To report anything else, write to the contact point in the legal notice.
Other PhpSpreadsheet vulnerabilities
Same weakness: Allocation without limits
- github.com x_refsource_CONFIRM
Patchminder. CVE-2026-40902: Denial of service in PHPOffice PhpSpreadsheet. https://patchminder.com/cve/cve-2026-40902/ (accessed 5 December 2026).