Intel

AIKIDO-2025-10549

phpoffice/phpspreadsheet is vulnerable to Server-Side Request Forgery (SSRF)

Server-Side Request Forgery (SSRF)CVE-2025-54370 Published Aug 13, 2025

75

High Risk

This Affects:

phpphpoffice/phpspreadsheet
1.0.0 - 1.29.12
Fixed in 1.30.0
2.0.0 - 2.1.11
Fixed in 2.1.12
2.2.0 - 2.3.10
Fixed in 2.4.0
3.0.0 - 3.9.3
Fixed in 3.10.0
4.0.0 - 4.5.0
Fixed in 5.0.0
Are you affected? Scan for Free

TL;DR

Affected versions of this package are vulnerable to Server-Side Request Forgery (SSRF) via Unrestricted External Image Loading, where the default configuration allowed automatic fetching of external images without explicit user consent. Attackers can exploit this by embedding malicious image URLs in documents, forcing the application to send unauthorized HTTP/HTTPS requests to attacker-controlled domains when processed.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

phpoffice/phpspreadsheet is vulnerable to Server-Side Request Forgery (SSRF) in versions 1.0.0 - 1.29.12, 2.0.0 - 2.1.11, 2.2.0 - 2.3.10, 3.0.0 - 3.9.3 and 4.0.0 - 4.5.0.

How to fix this

Upgrade the phpoffice/phpspreadsheet library to the patch version or if you set $allowExternalImages to false.