cve.bz

CVE-2025-54370 phpoffice phpspreadsheet: SSRF

8.7 highEPSS 0.8%Fix available

High (8.7) in phpoffice phpspreadsheet. EPSS 0.8% estimated probability of exploitation activity in the next 30 days. Fixed in phpoffice/phpspreadsheet 1.30.0, 2.1.12, 2.4.0.

On this page
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.

Severity

CVSS 4.0

8.7 high
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
EPSS
0.8% (unchanged from 0.8% a week ago; 0.8% 30 days ago) estimated probability of exploitation activity in the next 30 days; 58th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: yes · Technical impact: partial, assessed 2025-08-25. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-918 Server-Side Request Forgery (SSRF)
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

  • phpoffice/phpspreadsheet (Packagist): fixed in 1.30.0, 2.1.12, 2.4.0, 3.10.0, 5.0.0

Ask an AI about this CVE

Show the promptExplain CVE-2025-54370 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-54370?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-54370?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-54370 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
PHPOffice PhpSpreadsheet< 1.30.0
PHPOffice PhpSpreadsheet>= 2.0.0, < 2.1.12
PHPOffice PhpSpreadsheet>= 2.2.0, < 2.4.0
PHPOffice PhpSpreadsheet>= 3.0.0, < 3.10.0
PHPOffice PhpSpreadsheet>= 4.0.0, < 5.0.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-rx7m-68vc-ppxhPackagistphpoffice/phpspreadsheet<1.30.01.30.0
GHSA-rx7m-68vc-ppxhPackagistphpoffice/phpspreadsheet>=2.0.0 <2.1.122.1.12
GHSA-rx7m-68vc-ppxhPackagistphpoffice/phpspreadsheet>=2.2.0 <2.4.02.4.0
GHSA-rx7m-68vc-ppxhPackagistphpoffice/phpspreadsheet>=3.0.0 <3.10.03.10.0
GHSA-rx7m-68vc-ppxhPackagistphpoffice/phpspreadsheet>=4.0.0 <5.0.05.0.0

Attack patterns (CAPEC)

  • CAPEC-664 Server Side Request Forgery Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON