PT-2025-34632 · Phpoffice · Phpspreadsheet

Aleksey Solovev

·

Published

2025-01-15

·

Updated

2025-10-01

·

CVE-2025-54370

CVSS v4.0

8.7

High

VectorAV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Name of the Vulnerable Software and Affected Versions: PhpOffice/PhpSpreadsheet versions prior to 1.30.0 PhpOffice/PhpSpreadsheet versions prior to 2.1.12 PhpOffice/PhpSpreadsheet versions prior to 2.4.0 PhpOffice/PhpSpreadsheet versions prior to 3.10.0 PhpOffice/PhpSpreadsheet versions prior to 5.0.0
Description: PhpOffice/PhpSpreadsheet is a PHP library used for reading and writing spreadsheet files. A Server-Side Request Forgery (SSRF) can occur when processing HTML documents, potentially allowing an attacker to make requests on behalf of the server. The vulnerability resides in the setPath method of the PhpOfficePhpSpreadsheetWorksheetDrawing class, where a user-supplied string is passed to the HTML reader. Additionally, there is a potential for unsafe deserialization via phar archives and the file exists method.
Recommendations: Update PhpOffice/PhpSpreadsheet to version 1.30.0 or later. Update PhpOffice/PhpSpreadsheet to version 2.1.12 or later. Update PhpOffice/PhpSpreadsheet to version 2.4.0 or later. Update PhpOffice/PhpSpreadsheet to version 3.10.0 or later. Update PhpOffice/PhpSpreadsheet to version 5.0.0 or later.

Exploit

Fix

SSRF

Weakness Enumeration

Related Identifiers

BDU:2025-11115
CVE-2025-54370
GHSA-RX7M-68VC-PPXH

Affected Products

Phpspreadsheet