CVE-2024-45290
HIGH 7.5CVSS 3.1PhpSpreadsheet allows absolute path traversal and Server-Side Request Forgery when opening XLSX file
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.
- Published
- 7 Oct 2024
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-36CWE-918
- Also known as
- GHSA-5gpr-w2p5-6m37
- Sources
- NVDJSONOSV GHSA-5gpr-w2p5-6m37JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | 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 | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.7 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 7.7 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | phpoffice | phpspreadsheetcpe:2.3:a:phpoffice:phpspreadsheet:*:*:*:*:*:*:*:* |
< 1.29.2 | 1.29.2 |
| NVD | phpoffice | phpspreadsheetcpe:2.3:a:phpoffice:phpspreadsheet:*:*:*:*:*:*:*:* |
>= 2.0.0, < 2.1.1 | 2.1.1 |
| NVD | phpoffice | phpspreadsheetcpe:2.3:a:phpoffice:phpspreadsheet:*:*:*:*:*:*:*:* |
>= 2.2.0, < 2.3.0 | 2.3.0 |
| OSV | Packagist | phpoffice/phpspreadsheet | >= 2.2.0, < 2.3.0 | 2.3.0 |
| OSV | Packagist | phpoffice/phpspreadsheet | < 1.29.2 | 1.29.2 |
| OSV | Packagist | phpoffice/phpspreadsheet | >= 2.0.0, < 2.1.1 | 2.1.1 |
| OSV | Packagist | phpoffice/phpexcel | <= 1.8.2 |
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
History
- 25 Nov 2026 20:56 UTC · NVD: first stored (published 7 Oct 2024)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 7 Oct 2024)