CVE-2026-40902

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.
Configurations

Configuration 1 (hide)

OR cpe:2.3:a:phpoffice:phpspreadsheet:*:*:*:*:*:*:*:*
cpe:2.3:a:phpoffice:phpspreadsheet:*:*:*:*:*:*:*:*
cpe:2.3:a:phpoffice:phpspreadsheet:*:*:*:*:*:*:*:*
cpe:2.3:a:phpoffice:phpspreadsheet:*:*:*:*:*:*:*:*
cpe:2.3:a:phpoffice:phpspreadsheet:*:*:*:*:*:*:*:*

History

26 Oct 2026, 14:10

Type Values Removed Values Added
Summary
  • (es) PhpSpreadsheet es una biblioteca PHP pura para leer y escribir archivos de hoja de cálculo. Antes de 1.30.4, 2.1.16, 2.4.5, 3.10.5 y 5.7.0, el método ColumnAndRowAttributes::readRowAttributes() del lector XLSX lee números de fila de atributos XML sin validarlos contra el límite máximo de filas de la hoja de cálculo (AddressRange::MAX_ROW = 1.048.576). Un atacante puede crear un archivo XLSX mínimo (~1,6KB) que contenga un elemento <row r=’999999999’/> que infla cachedHighestRow a 999.999.999, lo que hace que cualquier iteración de fila posterior intente ~1.000 millones de ciclos de bucle y agote los recursos de la CPU. Esta vulnerabilidad está corregida en 1.30.4, 2.1.16, 2.4.5, 3.10.5 y 5.7.0.

Information

Published : 2026-05-12 22:16

Updated : 2026-10-26 14:10


NVD link : CVE-2026-40902

Mitre link : CVE-2026-40902

CVE.ORG link : CVE-2026-40902


JSON object : View

Products Affected

phpoffice

  • phpspreadsheet
CWE
CWE-770

Allocation of Resources Without Limits or Throttling