XML Entity Expansion in PhpSpreadsheet - CVE-2026-108358

 

XML Entity Expansion in PhpSpreadsheet - CVE-2026-108358

Published: October 13, 2026


Vulnerability identifier: #VU154222
CSH Severity: Medium
CVSS v4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-108358
CWE-ID: CWE-776
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to cause a denial of service.

The vulnerability exists due to improper restriction of XML entity expansion in XmlScanner::scan() when processing user-uploaded XLSX files. A remote attacker can submit a specially crafted XLSX file with ISO-2022 escape sequences inserted between characters of a DOCTYPE declaration to cause a denial of service.

Quadratic internal entity expansion is exploitable on all PHP versions and is not blocked by libxml2 2.9 or later defaults. The demonstrated file consumed approximately 45 MB of memory from an approximately 2 KB XLSX file.


Affected software

PhpSpreadsheet

How to mitigate CVE-2026-108358

Install security update from vendor's website.

PhpSpreadsheet - addressed in versions 1.30.7, 2.1.19, 2.4.8, 3.10.8, 5.10.0

External References

Related Security Bulletins