Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. phpoffice/phpspreadsheet
  4. ›
  5. CVE-2026-108359

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

October 27, 2026

When PhpSpreadsheet loads an OpenDocument Spreadsheet (.ods), Ods::processTableRow() reads the table:number-rows-repeated attribute of a <table:table-row> 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.


References

  • github.com/PHPOffice/PhpSpreadsheet/commit/299993894dce37aa3b64aa23e9a3f4bb77ab0e66
  • github.com/PHPOffice/PhpSpreadsheet/commit/2de29384aa11223ee08136c0e6a9e9981bc1a2eb
  • github.com/PHPOffice/PhpSpreadsheet/commit/980b5c294493856f1a25754f1e8a1d2185b93738
  • github.com/PHPOffice/PhpSpreadsheet/commit/9a0b48622ebfe93fa48cb9bc09ce57303bb07af9
  • github.com/PHPOffice/PhpSpreadsheet/commit/da13f40e8760d599b0e8a296017d4b028b20e86c
  • github.com/PHPOffice/PhpSpreadsheet/releases/tag/1.30.7
  • github.com/PHPOffice/PhpSpreadsheet/releases/tag/2.1.19
  • github.com/PHPOffice/PhpSpreadsheet/releases/tag/2.4.8
  • github.com/PHPOffice/PhpSpreadsheet/releases/tag/3.10.8
  • github.com/PHPOffice/PhpSpreadsheet/releases/tag/5.10.0
  • github.com/PHPOffice/PhpSpreadsheet/security/advisories/GHSA-j2w7-387v-m2rq
  • github.com/advisories/GHSA-j2w7-387v-m2rq
  • nvd.nist.gov/vuln/detail/CVE-2026-108359

Code Behaviors & Features

Detect and mitigate CVE-2026-108359 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 1.30.7, all versions starting from 2.0.0 before 2.1.19, all versions starting from 2.2.0 before 2.4.8, all versions starting from 3.3.0 before 3.10.8, all versions starting from 4.0.0 before 5.10.0

Fixed versions

  • 1.30.7
  • 2.1.19
  • 2.4.8
  • 3.10.8
  • 5.10.0

Solution

Upgrade to versions 1.30.7, 2.1.19, 2.4.8, 3.10.8, 5.10.0 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-400: Uncontrolled Resource Consumption
  • CWE-789: Memory Allocation with Excessive Size Value

Source file

packagist/phpoffice/phpspreadsheet/CVE-2026-108359.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:44 +0000.