CVE Explorer
CVE-2026-40902
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 subsequ
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
0
Affected products and versions
1 source assertion{"product":"PhpSpreadsheet","vendor":"PHPOffice","versions":[{"status":"affected","version":"< 1.30.4"},{"status":"affected","version":">= 2.0.0, < 2.1.16"},{"status":"affected","version":">= 2.2.0, < 2.4.5"},{"status":"affected","version":">= 3.3.0, < 3.10.5"},{"status":"affected","version":">= 4.0.0, < 5.7.0"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:1e2ccfc7dd9bb311b57619cd4ed706b4444cfb75257e986f6f4f7e7e34016707 · sha256:e15240f38997dc46… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":7.5,"baseSeverity":"HIGH","confidentialityImpact":"NONE","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},"metric_type":"cvssV3_1"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:1e2ccfc7dd9bb311b57619cd4ed706b4444cfb75257e986f6f4f7e7e34016707 · sha256:e15240f38997dc46… · /containers/cna/metrics/0/cvssV3_1
CWE assertions
1 source assertion{"cweId":"CWE-770","description":"CWE-770: Allocation of Resources Without Limits or Throttling","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:1e2ccfc7dd9bb311b57619cd4ed706b4444cfb75257e986f6f4f7e7e34016707 · sha256:e15240f38997dc46… · /containers/cna/problemTypes/0/descriptions/0
Source references
2 source assertions{"tags":["exploit"],"url":"https://github.com/PHPOffice/PhpSpreadsheet/security/advisories/GHSA-7c6m-4442-2x6m"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:1e2ccfc7dd9bb311b57619cd4ed706b4444cfb75257e986f6f4f7e7e34016707 · sha256:e15240f38997dc46… · /containers/adp/0/references/0
{"name":"https://github.com/PHPOffice/PhpSpreadsheet/security/advisories/GHSA-7c6m-4442-2x6m","tags":["x_refsource_CONFIRM"],"url":"https://github.com/PHPOffice/PhpSpreadsheet/security/advisories/GHSA-7c6m-4442-2x6m"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:1e2ccfc7dd9bb311b57619cd4ed706b4444cfb75257e986f6f4f7e7e34016707 · sha256:e15240f38997dc46… · /containers/cna/references/0
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.