Live threats

All CVEs / PHPOffice

CVE-2025-54370PHPOffice PhpSpreadsheet

High 8.7 No auth needed

Priority
67
CVSS 4.0
8.7
EPSS
—
Auth required
No
Published
Aug 25, 2025
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-918
SSVC (CISA)
Exploitation: proof of concept · Automatable: yes · Technical impact: partial
Vector
CVSS:4.0/AV: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

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for PhpSpreadsheet.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Packagist phpoffice/phpspreadsheet < 1.30.0 1.30.0 composer require "phpoffice/phpspreadsheet:^1.30.0"
Packagist phpoffice/phpspreadsheet ≥ 2.0.0 < 2.1.12 2.1.12 composer require "phpoffice/phpspreadsheet:^2.1.12"
Packagist phpoffice/phpspreadsheet ≥ 2.2.0 < 2.4.0 2.4.0 composer require "phpoffice/phpspreadsheet:^2.4.0"
Packagist phpoffice/phpspreadsheet ≥ 3.0.0 < 3.10.0 3.10.0 composer require "phpoffice/phpspreadsheet:^3.10.0"
Packagist phpoffice/phpspreadsheet ≥ 4.0.0 < 5.0.0 5.0.0 composer require "phpoffice/phpspreadsheet:^5.0.0"

Per OSV / GitHub Advisories (GHSA-rx7m-68vc-ppxh). Check the version in your lockfile before upgrading.

Affected products

As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.

Official sources

References

Links published by the sources. Open them with care.