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

High severity, published 2026-10-27. 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.

Canonical URL: https://buzzphp.com/security/ghsa-j2w7-387v-m2rq · Data from GitHub as of 2026-11-25.

| | |
| --- | --- |
| Severity | high |
| Published | 2026-10-27 |
| Updated | 2026-10-27 |
| CVE | [CVE-2026-108359](https://nvd.nist.gov/vuln/detail/CVE-2026-108359) |
| GHSA | [GHSA-j2w7-387v-m2rq](https://github.com/advisories/GHSA-j2w7-387v-m2rq) |
| Weakness | CWE-400, CWE-789 |

| Package | Affected versions | Fixed in |
| --- | --- | --- |
| phpoffice/phpspreadsheet | >= 4.0.0, <= 5.9.0 or >= 3.3.0, <= 3.10.7 or >= 2.2.0, <= 2.4.7 or >= 2.0.0, <= 2.1.18 or <= 1.30.6 | 5.10.0, 3.10.8, 2.4.8, 2.1.19, 1.30.7 |

## What to do

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.

Check which version you run with `composer show phpoffice/phpspreadsheet`, and every affected package with `composer audit`.

## About this advisory

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



## Links

- [GHSA-j2w7-387v-m2rq on GitHub](https://github.com/advisories/GHSA-j2w7-387v-m2rq)
- [CVE-2026-108359 on the National Vulnerability Database](https://nvd.nist.gov/vuln/detail/CVE-2026-108359)
- [All Composer security advisories](https://buzzphp.com/security)
