# CVE-2024-45290: Path traversal and Server-Side Request Forgery when opening XLSX files in PHPSpreadsheet

- Severity: High 7.7 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.63%, higher than 51% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-10-07T15:57:38.000Z
- Modified: 2026-06-17T07:53:57.660Z
- Also known as: GHSA-5gpr-w2p5-6m37
- Weaknesses: CWE-36, CWE-918
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- PHPOffice PhpSpreadsheet: < 1.29.2; >= 2.0.0, < 2.1.1; >= 2.2.0, < 2.3.0; before 1.29.2; from 2.0.0 before 2.1.1; from 2.2.0 before 2.3.0
- phpoffice/phpspreadsheet (Packagist): from 2.2.0 before 2.3.0; before 1.29.2; from 2.0.0 before 2.1.1
- phpoffice/phpexcel (Packagist): up to 1.8.2

## Every score

- GitHub_M: CVSS:3.1 7.7 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N`
- GitHub: CVSS:3.1 7.7 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:H/SI:N/SA:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://github.com/PHPOffice/PhpSpreadsheet/security/advisories/GHSA-5gpr-w2p5-6m37> (exploit, patch, third-party-advisory, web)
- <https://github.com/PHPOffice/PhpSpreadsheet/security/advisories/GHSA-w9xv-qf98-ccq4> (not-applicable, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-45290> (advisory)
- <https://github.com/PHPOffice/PhpSpreadsheet/commit/a9693d1182df6695c14bc5d74315ac71a3398e5a> (web)
- <https://github.com/PHPOffice/PhpSpreadsheet/commit/d95bc290beb137d4118095b96f62ec47e0205cec> (web)
- <https://github.com/PHPOffice/PhpSpreadsheet/commit/e04ed222b36fd5fd6fed0c10c765c2b68effb465> (web)
- <https://github.com/PHPOffice/PhpSpreadsheet> (package)

## Sources

- CVE List: [CVE-2024-45290](https://www.cve.org/CVERecord?id=CVE-2024-45290), CVE Terms of Use, modified 2024-10-08
- GitHub Advisory Database: [GHSA-5gpr-w2p5-6m37](https://github.com/advisories/GHSA-5gpr-w2p5-6m37), CC-BY-4.0, modified 2026-02-04
- NVD: [CVE-2024-45290](https://nvd.nist.gov/vuln/detail/CVE-2024-45290), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-45290 · Whole record: https://cve.day/CVE-2024-45290.json · Rebuilt by cve.day 2026-11-25T22:58:46.146Z
