CVE-2026-40902
published high CVSS 3.1 · 7.5PhpSpreadsheet: CPU Denial of Service via Unbounded Row Number in XLSX Row Dimensions
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| PHPOffice | — | PhpSpreadsheet< 1.30.4 · >= 2.0.0, < 2.1.16 · >= 2.2.0, < 2.4.5 · >= 3.3.0, < 3.10.5 · >= 4.0.0, < 5.7.0 | Affected | Not stated | GitHub_M |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.5 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| PHPOffice | PhpSpreadsheet | < 1.30.4 (affected)>= 2.0.0, < 2.1.16 (affected)>= 2.2.0, < 2.4.5 (affected)>= 3.3.0, < 3.10.5 (affected)>= 4.0.0, < 5.7.0 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-770 CWE-770: Allocation of Resources Without Limits or Throttling
References
1Provider assertions
2GitHub_M · cna
PhpSpreadsheet: CPU Denial of Service via Unbounded Row Number in XLSX Row Dimensions
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 5cb053903f94b3e17a1a17f60999f2daa6dd4f9a1528f0d856168c3558868146
- Ingested
- 23 Sep 2026, 09:13:21 UTC
- Source record
- Official CVE record