CVE-2024-45290: PHPSpreadsheet - XML External Entity Injection
- Cve: CVE-2024-45290
- Name: PHPSpreadsheet - XML External Entity Injection
- 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.
- Impact: Attackers can access sensitive server files or leak URL contents, potentially exposing credentials or confidential information.
- Remediation: Upgrade to version 1.29.2, 2.1.1, or 2.3.0 or later.
- Vulnerability type: xml_external_entity_injection
- Vulnerability impact: information_disclosure
- Requirement type: none
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 7.5
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- Epss score: 0.00625
- Epss percentile: 0.50938
- Assignee: [email protected]
- Published at: 2024-10-07T21:15:17Z
- Age in days: 778
- Modified at: 2026-06-17T07:53:57Z
- Patch available: yes
- Public exploits total: 1
- References total: 1
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2024-45290
- Nvd status: analyzed
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-36 | Absolute Path Traversal |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/PHPOffice/PhpSpreadsheet/security/advisories/GHSA-5gpr-w2p5-6m37 | nvd | 2024-10-07 |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/PHPOffice/PhpSpreadsheet/security/advisories/GHSA-5gpr-w2p5-6m37 | nvd | Exploit, Patch, Third Party Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| phpoffice:phpspreadsheet | >= 2.2.0, < 2.3.0; >= 2.0.0, < 2.1.1; < 1.29.2 | no | nvd | /v1/products/phpoffice/phpspreadsheet |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| PHPOffice/PhpSpreadsheet | commit, package, security_advisory | yes | /v1/repositories/PHPOffice/PhpSpreadsheet |
Index
- Repositories: 62
- Repositories high signal: 35
- Packages: 2
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2024-10-07
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts