CVE-2026-40902: PhpSpreadsheet is a pure PHP library for reading and writing spreadsheet files
CVE-2026-40902 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 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 ca
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-40902?
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-40902 being exploited?
CVE-2026-40902 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-40902 affect?
CVE-2026-40902 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 XLSX reader's ColumnAndRowAttributes::readRowAttributes() method reads row numbers from XML attributes wi
How urgent is CVE-2026-40902?
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-40863 HIGH 7.5 UPGRADE PhpSpreadsheet is a pure PHP library for reading and writing spreadsheet files