SSRF Vulnerability in PhpSpreadsheet by PhpOffice
CVE-2025-54370
What is CVE-2025-54370?
A Server-Side Request Forgery (SSRF) vulnerability exists in the PhpOffice PhpSpreadsheet library prior to specific versions. This vulnerability arises from the improper handling of user input in the setPath method of the Worksheet Drawing class. When the library processes an HTML document, a crafted string can be passed into the HTML reader, potentially allowing an attacker to manipulate the server into making unintended requests. This issue has been addressed in subsequent releases, where the affected versions have been patched to enhance security. Users are strongly encouraged to upgrade to at least version 1.30.0, 2.1.12, 2.4.0, 3.10.0, or 5.0.0 to mitigate the risks associated with this vulnerability.
Affected Version(s)
PhpSpreadsheet < 1.30.0 < 1.30.0
PhpSpreadsheet >= 2.0.0, < 2.1.12 < 2.0.0, 2.1.12
PhpSpreadsheet >= 2.2.0, < 2.4.0 < 2.2.0, 2.4.0