phpoffice/phpspreadsheet is vulnerable to Server-Side Request Forgery (SSRF)
58
CVE Score
Medium
Server-Side Request Forgery (SSRF)
Spreadsheet readers resolve paths and external references while loading workbooks and embedded assets. Without strict checks, stream-style schemes (for example phar://) can be abused as file paths, and helpers that resolve download paths may follow unsafe combinations of directory and filename. External-linked images can also pull remote content unless policy is enforced. The changes reject disallowed stream wrappers at file assertion points, tighten download path resolution, and add an optional whitelist callback so callers can allow only vetted external image URLs instead of loading them unconditionally.
Upgrade the phpoffice/phpspreadsheet library to the patch version. You must also implement the newly added whitelist callback to vet allowed external URLs. Alternatively, if external images are not required, disable them entirely using the library's existing configuration options.
You are affected if you are using a version that falls within the vulnerable range and your implementation allows the loading of external images without strict URL validation.
1.30.0 - 1.30.2
Fixed in 1.30.32.1.0 - 2.1.14
Fixed in 2.1.152.4.0 - 2.4.3
Fixed in 2.4.43.3.0 - 3.10.3
Fixed in 3.10.44.0.0 - 5.5.0
Fixed in 5.6.0phpoffice/phpspreadsheet is vulnerable to Server-Side Request Forgery (SSRF) in versions 1.30.0 - 1.30.2, 2.1.0 - 2.1.14, 2.4.0 - 2.4.3, 3.3.0 - 3.10.3 and 4.0.0 - 5.5.0.
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.