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
- 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.
Affected software
| Software | Affected versions |
|---|---|
phpoffice/phpspreadsheetPackagist · osv:Packagist:phpoffice/phpspreadsheet |
|
About phpoffice/phpspreadsheet
- Monthly downloads (Packagist)
- 16,687,478Packagist, 23 Nov 2026
- Total downloads (Packagist)
- 377,146,696Packagist, 23 Nov 2026
Vulnerabilities in phpoffice/phpspreadsheet
- In our list
- 13
- Published in the last 12 months
- 12
- Critical, last 12 months
- 1
- High, last 12 months
- 8
- Known exploited
- 0
- CVE-2026-108360PhpSpreadsheet: SSRF whitelist bypass via unre-validated HTTP redirect in Drawing::setPath external image loadingMedium 6.4 27 Oct 2026
- CVE-2026-108358PhpSpreadsheet: XmlScanner Bypass via ISO-2022 Escape Sequences Allows XXE and Denial of ServiceHigh 27 Oct 2026
- CVE-2026-108357PhpSpreadsheet: XmlScanner Bypass via Double-Encoded unentity() TOCTOU Allows XXE and Denial of ServiceHigh 27 Oct 2026
- CVE-2026-59933PHPSpreadsheet: XLS/OLE sector-chain self-loop causes memory exhaustionHigh 7.5 23 Jul 2026
- CVE-2026-59932PHPSpreadsheet: Gnumeric reader unbounded gzip expansion causes memory exhaustionHigh 7.5 23 Jul 2026
- CVE-2026-59931PHPSpreadsheet: SSRF bypass via HTTP redirect in WEBSERVICE() domain whitelistHigh 7.7 23 Jul 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-108359
- GitHub Advisory Database https://github.com/advisories/GHSA-j2w7-387v-m2rq