Deserialization of Untrusted Data in PhpSpreadsheet - CVE-2026-45034

 

Deserialization of Untrusted Data in PhpSpreadsheet - CVE-2026-45034

Published: October 13, 2026


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

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary code.

The vulnerability exists due to improper stream-wrapper validation in File::prohibitWrappers when processing attacker-controlled file paths through IOFactory::load. A remote attacker can supply a phar wrapper path with three or more slashes after the scheme that references an archive containing attacker-controlled metadata to execute arbitrary code.

Exploitation requires the crafted archive to be accessible to the application. On PHP 7.x, file operations automatically deserialize phar metadata. On PHP 8.x, exploitation requires a downstream call to Phar::getMetadata, which is not present in PhpSpreadsheet.


Affected software

PhpSpreadsheet

How to mitigate CVE-2026-45034

Install security update from vendor's website.

PhpSpreadsheet - update to 1.30.5

External References

Related Security Bulletins