Remote Code Execution in PhpSpreadsheet Library by PhpOffice
CVE-2026-45034
9.2CRITICAL
What is CVE-2026-45034?
The PhpSpreadsheet library, utilized for handling spreadsheet files in PHP, contains a vulnerability that allows an attacker to execute arbitrary code remotely. This occurs due to improper validation of file wrappers, specifically the phar wrapper. When a phar file is opened, it can inadvertently lead to deserialization of attacker-controlled objects, resulting in potential remote code execution in systems using PHP 7.x. In PHP 8.x, the severity is mitigated, but risks remain if specific functions are called. It is crucial to update to version 1.30.5 or later to ensure affected applications are secured against this exploit.
Affected Version(s)
PhpSpreadsheet < 1.30.5
