Vulnerabilities

CVE-2024-45290

High 7.5 CVSS 3.1

Description

PHPSpreadsheet is a pure PHP library for reading and writing spreadsheet files. It's possible for an attacker to construct an XLSX file which links media from external URLs. When opening the XLSX file, PhpSpreadsheet retrieves the image size and type by reading the file contents, if the provided path is a URL. By using specially crafted `php://filter` URLs an attacker can leak the contents of any file or URL. Note that this vulnerability is different from GHSA-w9xv-qf98-ccq4, and resides in a different component. An attacker can access any file on the server, or leak information form arbitrary URLs, potentially exposing sensitive information such as AWS IAM credentials. This issue has been addressed in release versions 1.29.2, 2.1.1, and 2.3.0. All users are advised to upgrade. There are no known workarounds for this vulnerability.

Description as published by the source, in English.

Key facts

Published
2024-10-07
Last modified
2026-06-17
Assigned by
security-advisories@github.com
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Scored by
nvd@nist.gov (NVD Primary)
Probability of exploitation
0.6 % higher than 45 % of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15
Fix available
Yes, see references

Affected products

Vendor Product Versions Status
phpoffice phpexcel (Packagist) ≤ 1.8.2 Affected
Phpoffice Phpspreadsheet < 1.29.2 Affected
phpoffice phpspreadsheet (Packagist) < 1.29.2 Affected
Phpoffice Phpspreadsheet ≥ 2.0.0, < 2.1.1 Affected
phpoffice phpspreadsheet (Packagist) ≥ 2.0.0, < 2.1.1 Affected
Phpoffice Phpspreadsheet ≥ 2.2.0, < 2.3.0 Affected
phpoffice phpspreadsheet (Packagist) ≥ 2.2.0, < 2.3.0 Affected

Weakness type

  • CWE-36: Absolute Path Traversal

    The product uses external input to construct a pathname that should be within a restricted directory, but it does not properly neutralize absolute path sequences such as "/abs/path" that can resolve to a location that i…

  • CWE-918: Server-Side Request Forgery

    The web server receives a URL or similar request from an upstream component and retrieves the contents of this URL, but it does not sufficiently ensure that the request is being sent to the expected destination.

References

Does this affect you?

A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.

Check your asset list Browse all vulnerabilities