All vulnerabilities

Packagist

CVE-2026-108359

PhpSpreadsheet ODS Reader: Unbounded number-rows-repeated → CPU & Memory Exhaustion (DoS)

Severity
High
Published
27 Oct 2026
Last changed
27 Oct 2026
Added to UpHeron
23 Nov 2026
Fixed in
1.30.7, 2.1.19, 2.4.8, 3.10.8, 5.10.0
Exploit chance
0.7% in the next 30 daysHigher than 52% of CVEs. EPSS by FIRST, 24 Nov 2026
Weakness
Uncontrolled resource consumption (CWE-400)CWE-789
Also known as
GHSA-j2w7-387v-m2rq
Sources
OSV.dev and GitHub

Description

When PhpSpreadsheet loads an OpenDocument Spreadsheet (.ods), Ods::processTableRow() reads the table:number-rows-repeated attribute of a `

with an unchecked (int) cast, then materialises one cell per repeated row. This value is completely unbounded, so a single ~1.4 KB file can instruct the reader to create up to millions of cells, exhausting memory (fatal OOM). No authentication, no special configuration, and the default read filter are required - any application that loads a user-supplied .ods` is affected.

src/PhpSpreadsheet/Reader/Ods.php:

The column-header loop at line 1326 shows the correct pattern with bounds checking:

Additionally, the cell-data column loop at line 1141 calls getCell() which throws exception at Coordinate.php:448 when column exceeds MAX_COLUMN_INT (XFD / 16,384):

Result: Columns are capped at 16,384. Only rows are unbounded.

From the GitHub Advisory Database, CC BY 4.0. Shortened; the full text is there.

Affected software

SoftwareAffected versions
phpoffice/phpspreadsheetPackagist · osv:Packagist:phpoffice/phpspreadsheet
  • Every version before 1.30.7
  • From 2.0.0 before 2.1.19
  • From 2.2.0 before 2.4.8
  • From 3.3.0 before 3.10.8
  • From 4.0.0 before 5.10.0

About phpoffice/phpspreadsheet

Monthly downloads (Packagist)
16,687,478Packagist, 23 Nov 2026
Total downloads (Packagist)
377,146,696Packagist, 23 Nov 2026

References