BuzzPHP
LightDarkSystem

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

High severity. Published 27 October 2026. Update phpoffice/phpspreadsheet to the fixed version of your branch (5.10.0, 3.10.8, 2.4.8, 2.1.19, 1.30.7): composer update phpoffice/phpspreadsheet.

Which versions are affected?

PackageAffected versionsFixed in
phpoffice/phpspreadsheet (opens in a new tab)>= 4.0.0, <= 5.9.0 | >= 3.3.0, <= 3.10.7 | >= 2.2.0, <= 2.4.7 | >= 2.0.0, <= 2.1.18 | <= 1.30.65.10.0, 3.10.8, 2.4.8, 2.1.19, 1.30.7

What should you do?

Update every affected package you use to its fixed version, then check that nothing else in your project matches an advisory. To see which version you run, and whether anything is still affected:

composer show phpoffice/phpspreadsheet
composer audit

Advisory details

SeverityHigh
Published
Updated
CVECVE-2026-108359 (opens in a new tab)
GHSAGHSA-j2w7-387v-m2rq (opens in a new tab)
WeaknessCWE-400, CWE-789

What the advisory says

Summary

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.

---

Affected versions

Source: GHSA-j2w7-387v-m2rq (opens in a new tab) in the GitHub Advisory Database (CC BY 4.0). Data from GitHub (opens in a new tab) as of .

Other recent advisories for this package

All Composer security advisories