Search for vulnerabilities
| Vulnerability ID | VCID-ccuv-g8wh-1ybh |
| Aliases |
CVE-2026-40902
GHSA-7c6m-4442-2x6m |
| Summary | 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. |
| Status | Published |
| Exploitability | 0.5 |
| Weighted Severity | 8.0 |
| Risk | 4.0 |
| Affected and Fixed Packages | Package Details |
| System | Score | Found at |
|---|---|---|
| epss | 0.00055 | https://api.first.org/data/v1/epss?cve=CVE-2026-40902 |
| epss | 0.00055 | https://api.first.org/data/v1/epss?cve=CVE-2026-40902 |
| epss | 0.0006 | https://api.first.org/data/v1/epss?cve=CVE-2026-40902 |
| cvssv3.1_qr | HIGH | https://github.com/advisories/GHSA-7c6m-4442-2x6m |
| cvssv3.1 | 7.5 | https://github.com/PHPOffice/PhpSpreadsheet |
| generic_textual | HIGH | https://github.com/PHPOffice/PhpSpreadsheet |
| cvssv3.1 | 7.5 | https://github.com/PHPOffice/PhpSpreadsheet/security/advisories/GHSA-7c6m-4442-2x6m |
| cvssv3.1_qr | HIGH | https://github.com/PHPOffice/PhpSpreadsheet/security/advisories/GHSA-7c6m-4442-2x6m |
| generic_textual | HIGH | https://github.com/PHPOffice/PhpSpreadsheet/security/advisories/GHSA-7c6m-4442-2x6m |
| ssvc | Track | https://github.com/PHPOffice/PhpSpreadsheet/security/advisories/GHSA-7c6m-4442-2x6m |
| cvssv3.1 | 7.5 | https://nvd.nist.gov/vuln/detail/CVE-2026-40902 |
| generic_textual | HIGH | https://nvd.nist.gov/vuln/detail/CVE-2026-40902 |
| Reference id | Reference type | URL |
|---|---|---|
| https://api.first.org/data/v1/epss?cve=CVE-2026-40902 | ||
| https://github.com/PHPOffice/PhpSpreadsheet | ||
| https://nvd.nist.gov/vuln/detail/CVE-2026-40902 | ||
| GHSA-7c6m-4442-2x6m | https://github.com/advisories/GHSA-7c6m-4442-2x6m | |
| GHSA-7c6m-4442-2x6m | https://github.com/PHPOffice/PhpSpreadsheet/security/advisories/GHSA-7c6m-4442-2x6m |
| Attack Vector (AV) | Attack Complexity (AC) | Privileges Required (PR) | User Interaction (UI) | Scope (S) | Confidentiality Impact (C) | Integrity Impact (I) | Availability Impact (A) |
|---|---|---|---|---|---|---|---|
network adjacent_network local physical |
low high |
none low high |
none required |
unchanged changed |
high low none |
high low none |
high low none |
| Attack Vector (AV) | Attack Complexity (AC) | Privileges Required (PR) | User Interaction (UI) | Scope (S) | Confidentiality Impact (C) | Integrity Impact (I) | Availability Impact (A) |
|---|---|---|---|---|---|---|---|
network adjacent_network local physical |
low high |
none low high |
none required |
unchanged changed |
high low none |
high low none |
high low none |
| Attack Vector (AV) | Attack Complexity (AC) | Privileges Required (PR) | User Interaction (UI) | Scope (S) | Confidentiality Impact (C) | Integrity Impact (I) | Availability Impact (A) |
|---|---|---|---|---|---|---|---|
network adjacent_network local physical |
low high |
none low high |
none required |
unchanged changed |
high low none |
high low none |
high low none |
| Percentile | 0.1761 |
| EPSS Score | 0.00055 |
| Published At | June 11, 2026, 12:55 p.m. |
| Date | Actor | Action | Source | VulnerableCode Version |
|---|---|---|---|---|
| 2026-06-11T16:53:09.422795+00:00 | Vulnrichment | Import | https://github.com/cisagov/vulnrichment/blob/develop/2026/40xxx/CVE-2026-40902.json | 38.6.0 |