PhpSpreadsheet ODS reader exhausts CPU and memory via repeated rows
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-400.
Summary
PhpSpreadsheet is a pure PHP library for reading and writing spreadsheet files. Versions 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, and before 1.30.7 are affected. Its ODS reader does not limit the table:number-rows-repeated attribute, so it creates a cell for every repeated row that contains a value (CWE-400). A remote attacker with no privileges and no user interaction can supply a small ODS file that consumes substantial CPU and memory and terminates the PHP worker.
Written with Claude Haiku 5.5 from the sources below · 2026-10-29
Description from the CNA
PhpSpreadsheet 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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| PHPOffice | PhpSpreadsheet | before 1.30.7; 2.0.0 to before 2.1.19; 2.2.0 to before 2.4.8; 3.3.0 to before 3.10.8; 4.0.0 to before 5.10.0 | 1.30.7, 2.1.19, 2.4.8, 3.10.8, 5.10.0 | Patch available | CNA |
| — | phpoffice/phpspreadsheet (Packagist) | 4.0.0 to before 5.10.0 | 5.10.0 | Patch available | GHSA-j2w7-387v-m2rq |
| — | phpoffice/phpspreadsheet (Packagist) | 3.3.0 to before 3.10.8 | 3.10.8 | Patch available | GHSA-j2w7-387v-m2rq |
| — | phpoffice/phpspreadsheet (Packagist) | 2.2.0 to before 2.4.8 | 2.4.8 | Patch available | GHSA-j2w7-387v-m2rq |
| — | phpoffice/phpspreadsheet (Packagist) | 2.0.0 to before 2.1.19 | 2.1.19 | Patch available | GHSA-j2w7-387v-m2rq |
| — | phpoffice/phpspreadsheet (Packagist) | before 1.30.7 | 1.30.7 | Patch available | GHSA-j2w7-387v-m2rq |
- PhpSpreadsheet VendorPHPOffice Affected before 1.30.7; 2.0.0 to before 2.1.19; 2.2.0 to before 2.4.8; 3.3.0 to before 3.10.8; 4.0.0 to before 5.10.0 Fixed in 1.30.7, 2.1.19, 2.4.8, 3.10.8, 5.10.0 Patch available CNA
- phpoffice/phpspreadsheet (Packagist) Vendor— Affected 4.0.0 to before 5.10.0 Fixed in 5.10.0 Patch available GHSA-j2w7-387v-m2rq
- phpoffice/phpspreadsheet (Packagist) Vendor— Affected 3.3.0 to before 3.10.8 Fixed in 3.10.8 Patch available GHSA-j2w7-387v-m2rq
- phpoffice/phpspreadsheet (Packagist) Vendor— Affected 2.2.0 to before 2.4.8 Fixed in 2.4.8 Patch available GHSA-j2w7-387v-m2rq
- phpoffice/phpspreadsheet (Packagist) Vendor— Affected 2.0.0 to before 2.1.19 Fixed in 2.1.19 Patch available GHSA-j2w7-387v-m2rq
- phpoffice/phpspreadsheet (Packagist) Vendor— Affected before 1.30.7 Fixed in 1.30.7 Patch available GHSA-j2w7-387v-m2rq
Remediation
Upgrade PhpSpreadsheet to 1.30.7, 2.1.19, 2.4.8, 3.10.8 or 5.10.0, matching the release line in use. The Packagist package phpoffice/phpspreadsheet has the same fixed versions.
Written with Claude Haiku 5.5 from the sources below · 2026-10-29
- Fix · CNA PhpSpreadsheet (PHPOffice) Fixed in 1.30.7, 2.1.19, 2.4.8, 3.10.8, 5.10.0
- Fix · GHSA-j2w7-387v-m2rq phpoffice/phpspreadsheet (Packagist) Fixed in 5.10.0 Advisory →
- Fix · GHSA-j2w7-387v-m2rq phpoffice/phpspreadsheet (Packagist) Fixed in 3.10.8 Advisory →
- Fix · GHSA-j2w7-387v-m2rq phpoffice/phpspreadsheet (Packagist) Fixed in 2.4.8 Advisory →
- Fix · GHSA-j2w7-387v-m2rq phpoffice/phpspreadsheet (Packagist) Fixed in 2.1.19 Advisory →
- Fix · GHSA-j2w7-387v-m2rq phpoffice/phpspreadsheet (Packagist) Fixed in 1.30.7 Advisory →
Timeline
- 2026-10-22 Threatist record created from CVE-2026-108359
- 2026-10-23 Priority changed: MEDIUM → LOW
- 2026-10-27 Alias added: GHSA-j2w7-387v-m2rq
- 2026-10-29 CISA SSVC decision points changed
- 2026-10-29 Priority changed: LOW → HIGH
- 2026-10-30 EPSS moved to the 50th–90th percentile
References
Other 12
- https://github.com/PHPOffice/PhpSpreadsheet/security/advisories/GHSA-j2w7-387v-m2rq
- https://github.com/PHPOffice/PhpSpreadsheet/commit/299993894dce37aa3b64aa23e9a3f4bb77ab0e66
- https://github.com/PHPOffice/PhpSpreadsheet/commit/2de29384aa11223ee08136c0e6a9e9981bc1a2eb
- https://github.com/PHPOffice/PhpSpreadsheet/commit/980b5c294493856f1a25754f1e8a1d2185b93738
- https://github.com/PHPOffice/PhpSpreadsheet/commit/9a0b48622ebfe93fa48cb9bc09ce57303bb07af9
- https://github.com/PHPOffice/PhpSpreadsheet/commit/da13f40e8760d599b0e8a296017d4b028b20e86c
- https://github.com/PHPOffice/PhpSpreadsheet/releases/tag/1.30.7
- https://github.com/PHPOffice/PhpSpreadsheet/releases/tag/2.1.19
- https://github.com/PHPOffice/PhpSpreadsheet/releases/tag/2.4.8
- https://github.com/PHPOffice/PhpSpreadsheet/releases/tag/3.10.8
- https://github.com/PHPOffice/PhpSpreadsheet/releases/tag/5.10.0
- https://github.com/PHPOffice/PhpSpreadsheet
More PHPOffice vulnerabilities
- TI-2026-32885 PhpSpreadsheet: File::prohibitWrappers bypass CVSS 4.0CRITICAL 9.2
- TI-2026-26406 PhpSpreadsheet SSRF and RCE via PHP stream wrappers in IOFactory::load CVSS 4.0CRITICAL 9.2
- TI-2025-34182 PhpSpreadsheet vulnerable to SSRF when reading and displaying a processed HTML document in the browser CVSS 4.0HIGH 8.7
- TI-2026-78784 Insecure deserialization in PHPOffice PHPPresentation allows code execution CVSS 4.0CRITICAL 9.2
- TI-2024-37339 PhpSpreadsheet vulnerable to unauthorized reflected XSS in Currency.php file CVSS 4.0HIGH 8.3
- TI-2024-37338 PhpSpreadsheet allows unauthorized reflected XSS in `Convert-Online.php` file CVSS 4.0HIGH 8.3
Sources
- CVE-2026-108359 · CVE Program
- CVE-2026-108359 · NVD
- FIRST EPSS
- GHSA-j2w7-387v-m2rq · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences