CVE-2026-59932 Details
Description
PhpSpreadsheet is a pure PHP library for reading and writing spreadsheet files. In versions 4.0.0 through 5.8.0, 3.3.0 through 3.10.6, 2.2.0 through 2.4.6, 2.0.0 through 2.1.17, and all releases up to and including 1.30.5, the Gnumeric reader reads attacker-supplied .gnumeric files into memory and, when the file starts with gzip magic bytes, calls gzdecode() on the full compressed contents without enforcing a decompressed-size limit. A very small compressed .gnumeric file can expand to data larger than the PHP memory limit and crash the process during Gnumeric::canRead() before the file is rejected or fully parsed. This is reachable through normal file-type detection and Gnumeric loading paths, so applications that accept attacker-controlled spreadsheet uploads can suffer denial of service. This issue has been fixed in versions 5.8.1, 3.10.7, 2.4.7, 2.1.18 and 1.30.6.
A denial-of-service vulnerability has been identified in PhpSpreadsheet's Gnumeric reader, present in versions 4.0.0 prior to 5.8.0, 3.3.0 prior to 3.10.6, 2.2.0 prior to 2.4.6, 2.0.0 prior to 2.1.17, and all releases up to and including 1.30.5. The issue arises when the Gnumeric reader processes attacker-supplied .gnumeric files that begin with gzip magic bytes. The reader calls gzdecode() on the entire compressed content without applying a limit on the decompressed size. This flaw can be exploited by uploading a small compressed .gnumeric file that expands to a size exceeding the PHP memory limit, causing the process to crash. The vulnerability is triggered during the Gnumeric::canRead() function, before the file is fully parsed or validated, leading to potential memory exhaustion and process termination.
Users can update to PhpSpreadsheet versions 5.8.1, 3.10.7, 2.4.7, 2.1.18, or 1.30.6, all of which include patches for this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jul 28, 2026CISA-ADP
Assessed Jul 29, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/PHPOffice/PhpSpreadsheet/security/advisories/GHSA-2mrg-gjxq-2gvr | CISA-ADP | AdvisoryExploitRemedyVendor |
| https://github.com/PHPOffice/PhpSpreadsheet/commit/85f2556b0bf5269061bf45932ecda8a128d81750 | [email protected] | Source CodeVendor |
| https://github.com/PHPOffice/PhpSpreadsheet/releases/tag/1.30.6 | [email protected] | Release NotesVendor |
| https://github.com/PHPOffice/PhpSpreadsheet/releases/tag/2.1.18 | [email protected] | Release NotesVendor |
| https://github.com/PHPOffice/PhpSpreadsheet/releases/tag/2.4.7 | [email protected] | Release NotesVendor |
| https://github.com/PHPOffice/PhpSpreadsheet/releases/tag/3.10.7 | [email protected] | Release NotesVendor |
| https://github.com/PHPOffice/PhpSpreadsheet/releases/tag/5.8.1 | [email protected] | Release NotesVendor |
| https://github.com/PHPOffice/PhpSpreadsheet/security/advisories/GHSA-2mrg-gjxq-2gvr | [email protected] | AdvisoryExploitRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-400 | Uncontrolled Resource Consumption | [email protected] |
| CWE-409 | Improper Handling of Highly Compressed Data (Data Amplification) | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| PHPOffice PhpSpreadsheet | >= 4.0.0, <= 5.8.0 (semver) >= 3.3.0, <= 3.10.6 (semver) >= 2.2.0, <= 2.4.6 (semver) >= 2.0.0, <= 2.1.17 (semver) <= 1.30.5 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 29, 2026 | CVE Modified | CISA-ADP |
| Jul 28, 2026 | New CVE Received | [email protected] |
Volerion