Security mailing lists by PureSourceCode

CVE-2026-40863

HIGH 7.5CVSS 3.1

PhpSpreadsheet has CPU Denial of Service via Unbounded Row Index in SpreadsheetML XML Reader

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.

Published
12 May 2026
Last modified
26 Oct 2026
Assigned by
security-advisories@github.com
NVD status
Analyzed
Weakness
CWE-400CWE-770
Also known as
GHSA-84wq-86v6-x5j6
Sources
NVDJSONOSV GHSA-84wq-86v6-x5j6JSON

Scores

SourceScored byVersionScoreVector / decision
NVD security-advisories@github.com (Secondary) CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
OSV GitHub CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD phpoffice phpspreadsheet
cpe:2.3:a:phpoffice:phpspreadsheet:*:*:*:*:*:*:*:*
< 1.30.4 1.30.4
NVD phpoffice phpspreadsheet
cpe:2.3:a:phpoffice:phpspreadsheet:*:*:*:*:*:*:*:*
>= 2.0.0, < 2.1.16 2.1.16
NVD phpoffice phpspreadsheet
cpe:2.3:a:phpoffice:phpspreadsheet:*:*:*:*:*:*:*:*
>= 2.2.0, < 2.4.5 2.4.5
NVD phpoffice phpspreadsheet
cpe:2.3:a:phpoffice:phpspreadsheet:*:*:*:*:*:*:*:*
>= 3.3.0, < 3.10.5 3.10.5
NVD phpoffice phpspreadsheet
cpe:2.3:a:phpoffice:phpspreadsheet:*:*:*:*:*:*:*:*
>= 4.0.0, < 5.7.0 5.7.0
OSV Packagist phpoffice/phpspreadsheet >= 4.0.0, < 5.7.0 5.7.0
OSV Packagist phpoffice/phpspreadsheet >= 3.3.0, < 3.10.5 3.10.5
OSV Packagist phpoffice/phpspreadsheet >= 2.2.0, < 2.4.5 2.4.5
OSV Packagist phpoffice/phpspreadsheet >= 2.0.0, < 2.1.16 2.1.16
OSV Packagist phpoffice/phpspreadsheet < 1.30.6 1.30.6

References

History

  • 25 Nov 2026 21:02 UTC · NVD: first stored (published 12 May 2026)
  • 25 Nov 2026 20:15 UTC · OSV: first stored (published 29 Apr 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.