{"id":"CVE-2026-40863","published":"2026-05-12T22:04:29Z","modified":"2026-05-13T15:03:23Z","title":"PhpSpreadsheet: CPU Denial of Service via Unbounded Row Index in SpreadsheetML XML Reader","vendor":"PHPOffice","product":"PhpSpreadsheet","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00395,"percentile":0.34598,"provenance":"source"},"cwes":[{"id":"CWE-770","name":"Allocation of Resources Without Limits or Throttling"}],"references":[{"url":"https://github.com/PHPOffice/PhpSpreadsheet/security/advisories/GHSA-84wq-86v6-x5j6","tags":["x_refsource_CONFIRM"]}],"priority":{"score":12.2,"factors":[{"name":"EPSS percentile","points":6.92},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"phpoffice","affectedVersions":[{"vendor":"PHPOffice","product":"PhpSpreadsheet","versions":["< 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"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-05-13T15:01:42.488212Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"phpoffice/phpspreadsheet","vulnerableRanges":[">=4.0.0, <5.7.0",">=3.3.0, <3.10.5",">=2.2.0, <2.4.5",">=2.0.0, <2.1.16","<1.30.6"],"patched":["5.7.0","3.10.5","2.4.5","2.1.16","1.30.6"],"from":["GHSA-84wq-86v6-x5j6"],"provenance":"source"}],"summary":{"text":"PhpSpreadsheet, a pure PHP library for reading and writing spreadsheet files, has a flaw in its SpreadsheetML XML reader (Reader\\Xml) where the ss:Index row attribute is not checked against the maximum allowed row count, allowing an oversized value to inflate the internal highest-row cache. An attacker who can supply a crafted SpreadsheetML XML file over the network, without authentication or user interaction, can cause CPU exhaustion and denial of service when a subsequent getRowIterator() call iterates roughly a billion rows without an explicit end row.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:49:43Z"},"euvd":{"id":"EUVD-2026-29851","exploited":false,"provenance":"source"}}