{"id":"CVE-2026-40902","published":"2026-05-12T22:02:39Z","modified":"2026-05-13T12:11:34Z","title":"PhpSpreadsheet: CPU Denial of Service via Unbounded Row Number in XLSX Row Dimensions","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 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.","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-7c6m-4442-2x6m","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-13T12:11:26.338564Z","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.4"],"patched":["5.7.0","3.10.5","2.4.5","2.1.16","1.30.4"],"from":["GHSA-7c6m-4442-2x6m"],"provenance":"source"}],"summary":{"text":"PhpSpreadsheet, a pure PHP library for reading and writing spreadsheet files, has a flaw in its XLSX reader's row attribute handling, where the ColumnAndRowAttributes::readRowAttributes() method accepts row numbers without checking them against the maximum row limit. An attacker who can supply an XLSX file for the application to process over the network, with no authentication or user interaction required, can craft a small file with an oversized row number that forces any subsequent row iteration into roughly a billion loop cycles, exhausting CPU and causing denial of service.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:49:43Z"},"euvd":{"id":"EUVD-2026-29852","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-45034","published":"2026-06-22","fixed":"1.30.5","kev":false,"link":{"from":"CVE-2026-40902","to":"CVE-2026-45034","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:phpoffice/phpspreadsheet","fromFixed":"1.30.4","toFixed":"1.30.5","daysApart":41}]}},{"cve":"CVE-2026-34084","published":"2026-05-05","fixed":"5.6.0","kev":false,"link":{"from":"CVE-2026-34084","to":"CVE-2026-40902","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:phpoffice/phpspreadsheet","fromFixed":"1.30.3","toFixed":"1.30.4","daysApart":7}]}},{"cve":"CVE-2026-35453","published":"2026-05-05","fixed":"5.7.0","kev":false},{"cve":"CVE-2026-40296","published":"2026-05-06","fixed":"5.7.0","kev":false},{"cve":"CVE-2026-40863","published":"2026-05-12","fixed":"5.7.0","kev":false},{"cve":"CVE-2026-40902","published":"2026-05-12","fixed":"5.7.0","kev":false},{"cve":"CVE-2026-59931","published":"2026-07-28","fixed":"5.8.1","kev":false},{"cve":"CVE-2026-59932","published":"2026-07-28","fixed":"5.8.1","kev":false},{"cve":"CVE-2026-59933","published":"2026-07-28","fixed":"5.8.1","kev":false}],"package":"Packagist:phpoffice/phpspreadsheet"}}