# CVE-2026-40863: PhpSpreadsheet: CPU Denial of Service via Unbounded Row Index in SpreadsheetML XML Reader

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.40%, higher than 35% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-29T20:23:27.000Z
- Modified: 2026-10-26T21:00:03.983Z
- Also known as: GHSA-84wq-86v6-x5j6
- Weaknesses: CWE-400, CWE-770
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: 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 SpreadsheetML XML reader (Reader\Xml) does not validate the ss:Index row attribute against the maximum allowed row count (AddressRange::MAX_ROW = 1,048,576). An attacker can craft a SpreadsheetML XML file with ss:Index="999999999" on a <Row> element, which inflates the internal cachedHighestRow to ~1 billion. Any subsequent call to getRowIterator() without an explicit end row will attempt to iterate ~1 billion rows, causing CPU exhaustion and denial of service. This vulnerability is fixed in 1.30.4, 2.1.16, 2.4.5, 3.10.5, and 5.7.0.

(As written by CVE List.)

## Affected

- 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; before 1.30.4; from 2.0.0 before 2.1.16; from 2.2.0 before 2.4.5; from 3.3.0 before 3.10.5; from 4.0.0 before 5.7.0
- phpoffice/phpspreadsheet (Packagist): from 4.0.0 before 5.7.0; from 3.3.0 before 3.10.5; from 2.2.0 before 2.4.5; from 2.0.0 before 2.1.16; before 1.30.6

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/PHPOffice/PhpSpreadsheet/security/advisories/GHSA-84wq-86v6-x5j6> (exploit, mitigation, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-40863> (advisory)
- <https://github.com/PHPOffice/PhpSpreadsheet> (package)

## Sources

- CVE List: [CVE-2026-40863](https://www.cve.org/CVERecord?id=CVE-2026-40863), CVE Terms of Use, modified 2026-05-13
- GitHub Advisory Database: [GHSA-84wq-86v6-x5j6](https://github.com/advisories/GHSA-84wq-86v6-x5j6), CC-BY-4.0, modified 2026-10-26
- NVD: [CVE-2026-40863](https://nvd.nist.gov/vuln/detail/CVE-2026-40863), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-40863 · Whole record: https://cve.day/CVE-2026-40863.json · Rebuilt by cve.day 2026-11-25T22:59:21.502Z
