Skip to main content
EPSS 0.4%top 69%

CVE-2026-59933: CWE-400: Uncontrolled Resource Consumption in PHPOffice PhpSpreadsheet

0
High
VulnerabilityCVE-2026-59933cvecve-2026-59933cwe-400cwe-835
Published: 07/28/2026 (07/28/2026, 17:29:27 UTC)
Source: CVE Database V5
Vendor/Project: PHPOffice
Product: PhpSpreadsheet

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 OLE reader follows sector chains from attacker-controlled XLS/OLE metadata without detecting cycles or enforcing a maximum chain length. A tiny malformed .xls/OLE file can set the small-block depot sector chain to point back to itself. During normal XLS detection, OLERead::read() appends the same sector data repeatedly until the PHP process exhausts memory. This is reachable from Reader\Xls::canRead() and therefore from automatic spreadsheet type detection. Applications that accept attacker-controlled spreadsheet uploads can suffer denial of service from a very small file. This issue has been fixed in versions 5.8.1, 3.10.7, 2.4.7, 2.1.18 and 1.30.6.

CVSS v3.1

Score 7.5high

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected software

PHPOffice

PhpSpreadsheet

Affected versions
>=4.0.0 <5.8.1>=3.3.0 <3.10.7>=2.2.0 <2.4.7>=2.0.0 <2.1.18<1.30.6

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/29/2026, 15:52:31 UTC

Technical Analysis

PhpSpreadsheet is vulnerable to uncontrolled resource consumption (CWE-400) due to its OLE reader following sector chains from attacker-controlled XLS/OLE metadata without detecting cycles or enforcing maximum chain length. Specifically, a crafted .xls/OLE file can cause the small-block depot sector chain to loop back on itself, leading OLERead::read() to repeatedly append the same sector data until PHP process memory is exhausted. This vulnerability is reachable during normal XLS detection via Reader\Xls::canRead(), including automatic spreadsheet type detection. The vulnerability affects multiple version ranges: all releases up to and including 1.30.5, 2.0.0 through 2.1.17, 2.2.0 through 2.4.6, 3.3.0 through 3.10.6, and 4.0.0 through 5.8.0. It has been fixed in versions 1.30.6, 2.1.18, 2.4.7, 3.10.7, and 5.8.1.

Potential Impact

An attacker can cause a denial of service (DoS) by uploading a crafted XLS/OLE spreadsheet file that triggers uncontrolled memory consumption in the PhpSpreadsheet library during file parsing. This results in exhaustion of PHP process memory, potentially crashing or severely degrading the availability of applications that accept and process attacker-controlled spreadsheet uploads.

Mitigation Recommendations

A fix is available. Users should upgrade to PhpSpreadsheet versions 5.8.1, 3.10.7, 2.4.7, 2.1.18, or 1.30.6 or later, where the vulnerability has been addressed. Until upgraded, applications should consider restricting or validating uploaded spreadsheet files to prevent processing of maliciously crafted XLS/OLE files.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-07-07T18:20:06.126Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 6a68ec699c2644c7f8faade4

Added to database: 07/28/2026, 17:52:41 UTC

Last enriched: 07/29/2026, 15:52:31 UTC

Last updated: 09/11/2026, 07:31:54 UTC

Views: 89

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses