CVE-2024-45048
published high CVSS 3.1 · 8.8XML External Entity Reference (XXE) in PHPSpreadsheet
Package status and fixes
Description
PHPSpreadsheet is a pure PHP library for reading and writing spreadsheet files. Affected versions are subject to a bypassing of a filter which allows for an XXE-attack. This in turn allows attacker to obtain contents of local files, even if error reporting is muted. This vulnerability has been addressed in release version 2.2.1. All users are advised to upgrade. There are no known workarounds for this vulnerability.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 8.8 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| PHPOffice | PhpSpreadsheet | < 2.2.1 (affected) | GitHub_M · cna |
| phpspreadsheet_project | phpspreadsheet | 0 to < 2.2.1 (affected · custom)Default: unknown | CISA-ADP · adp |
Weaknesses
1- CWE-611 CWE-611: Improper Restriction of XML External Entity Reference
References
2Provider assertions
2GitHub_M · cna
XML External Entity Reference (XXE) in PHPSpreadsheet
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- eb6f5b8a8b74b3d9e748609553dc7ba8790b4f3fa399a3397e326974439e32a2
- Ingested
- 23 Sep 2026, 08:27:32 UTC
- Source record
- Official CVE record