CVE-2025-54370
August 25, 2025
PhpOffice/PhpSpreadsheet is a pure PHP library for reading and writing spreadsheet files. Prior to versions 1.30.0, 2.1.12, 2.4.0, 3.10.0, and 5.0.0, SSRF can occur when a processed HTML document is read and displayed in the browser. The vulnerability lies in the setPath method of the PhpOffice\PhpSpreadsheet\Worksheet\Drawing class, where a crafted string from the user is passed to the HTML reader. This issue has been patched in versions 1.30.0, 2.1.12, 2.4.0, 3.10.0, and 5.0.0.
Affected Packages
https://github.com/PHPOffice/PhpSpreadsheet.git (GITHUB):
Affected version(s) >=3.3.0 <3.10.0Fix Suggestion:
Update to version 3.10.0https://github.com/PHPOffice/PhpSpreadsheet.git (GITHUB):
Affected version(s) >=2.2.0 <2.4.0Fix Suggestion:
Update to version 2.4.0https://github.com/PHPOffice/PhpSpreadsheet.git (GITHUB):
Affected version(s) >=2.0.0 <2.1.12Fix Suggestion:
Update to version 2.1.12https://github.com/PHPOffice/PhpSpreadsheet.git (GITHUB):
Affected version(s) >=4.0.0 <5.0.0Fix Suggestion:
Update to version 5.0.0https://github.com/PHPOffice/PhpSpreadsheet.git (GITHUB):
Affected version(s) >=1.0.0 <1.30.0Fix Suggestion:
Update to version 1.30.0Related ResourcesĀ (9)
Do you need more information?
Contact UsCVSS v4
Base Score:
8.7
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
NONE
Vulnerable System Availability
NONE
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
7.5
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
NONE
Availability
NONE
Weakness Type (CWE)
Server-Side Request Forgery (SSRF)
EPSS
Base Score:
0.10