PhpSpreadsheet denial of service in ODS repeated-row processing
PHPOffice PhpSpreadsheet
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| phpoffice/phpspreadsheet Packagist |
|
|
PHPOffice PhpSpreadsheet
| Product | Affected | Fixed in |
|---|---|---|
| phpoffice/phpspreadsheet Packagist |
|
|
2.1.191.30.7PhpSpreadsheet is a pure PHP library for reading and writing spreadsheet files. Prior to 1.30.7, 2.1.19, 2.4.8, 3.10.8, and 5.10.0, Ods::processTableRow in src/PhpSpreadsheet/Reader/Ods.php accepts an unbounded table:number-rows-repeated attribute from an ODS table row. When the row contains a value, the reader materializes a cell for every repetition without checking the spreadsheet row limit, so a small attacker-controlled ODS file can consume substantial CPU and memory and terminate the PHP worker. Column repetition is separately bounded and is not part of this vulnerability. This issue is fixed in versions 1.30.7, 2.1.19, 2.4.8, 3.10.8, and 5.10.0.
From the CVE record · GitHub_M
The PhpSpreadsheet ODS reader accepts an unbounded row-repetition value. When an application reads an attacker-controlled ODS file containing a value in a repeated row, it can consume substantial CPU and memory and terminate the PHP worker. The input does not specify authentication requirements or how the file reaches the application.
Check applications using Packagist phpoffice/phpspreadsheet versions below 1.30.7, 2.0.0–2.1.18, 2.2.0–2.4.7, 3.3.0–3.10.7, or 4.0.0–5.9.x.