CVE-2025-54370

PhpSpreadsheet vulnerable to SSRF when reading and displaying a processed HTML document in the browser

State
Published
Severity
8.7 High
Published
Aug 25, 2025
Updated
Aug 25, 2025
Reserved
Jul 21, 2025

Read the record on cve.org

Description

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.

Scores

CVSSScoreVectorSource
4.08.7 HighCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:NGitHub_M

Weaknesses

  • CWE-918 Server-Side Request Forgery (SSRF)

Affected Products

ProductVersions
PhpSpreadsheetPHPOffice
  • < 1.30.0Affected
  • >= 2.0.0, < 2.1.12Affected
  • >= 2.2.0, < 2.4.0Affected
  • >= 3.0.0, < 3.10.0Affected
  • >= 4.0.0, < 5.0.0Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.