SSRF Vulnerability in PhpSpreadsheet by PhpOffice
CVE-2025-54370

8.7HIGH

Key Information:

Vendor

PHPoffice

Vendor
CVE Published:
25 August 2025

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

References

CVSS V4

Score:
8.7
Severity:
HIGH
Confidentiality:
High
Integrity:
None
Availability:
None
Attack Vector:
Network
Attack Complexity:
Low
Attack Required:
None
Privileges Required:
Undefined
User Interaction:
None

Timeline

  • Vulnerability published

  • Vulnerability Reserved

.
CVE-2025-54370 : SSRF Vulnerability in PhpSpreadsheet by PhpOffice