phpoffice/phpspreadsheet is vulnerable to Server-Side Request Forgery (SSRF)
77
CVE Score
High
Server-Side Request Forgery (SSRF)
The WEBSERVICE() calculation function validates a target URL's host against a configured domain whitelist but fetches the content with file_get_contents() while allowing HTTP redirects to be followed. Because redirect targets are not re-validated against the whitelist, an attacker-supplied spreadsheet can point WEBSERVICE() at a whitelisted host that issues a 302 redirect to an internal address. This lets a crafted file reach internal services and read cloud metadata, bypassing the allowlist as a full-read SSRF. The fix disables redirect following in the stream context and returns a not-implemented sentinel for disallowed hosts.
Upgrade the phpoffice/phpspreadsheet library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and your application evaluates the WEBSERVICE() function on untrusted spreadsheets with a configured domain whitelist.
0.0.1 - 1.30.5
Fixed in 1.30.62.0.0 - 2.1.17
Fixed in 2.1.182.2.0 - 2.4.6
Fixed in 2.4.73.3.0 - 3.10.6
Fixed in 3.10.74.0.0 - 5.8.0
Fixed in 5.8.1phpoffice/phpspreadsheet is vulnerable to Server-Side Request Forgery (SSRF) in versions 4.0.0 - 5.8.0, 3.3.0 - 3.10.6, 2.2.0 - 2.4.6, 2.0.0 - 2.1.17 and 0.0.1 - 1.30.5.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.