XML Entity Expansion in PhpSpreadsheet - CVE-2026-108358
Published: October 13, 2026
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.