# CVE-2024-45048: XML External Entity Reference (XXE) in PHPSpreadsheet

- Severity: High 8.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- 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.60%, higher than 50% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-08-28T20:38:29.486Z
- Modified: 2026-06-17T07:53:29.540Z
- Also known as: GHSA-ghg6-32f9-2jp7
- Weaknesses: CWE-611
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- PHPOffice PhpSpreadsheet: < 2.2.1; before 1.29.1; from 2.0.0 before 2.2.1
- phpspreadsheet_project phpspreadsheet: before 2.2.1
- phpoffice/phpspreadsheet (Packagist): before 1.29.1; from 2.2.0 before 2.2.1; from 2.0.0 before 2.1.1
- phpoffice/phpexcel (Packagist): up to 1.8.2

## Every score

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

## References

- <https://github.com/PHPOffice/PhpSpreadsheet/security/advisories/GHSA-ghg6-32f9-2jp7> (exploit, third-party-advisory, web)
- <https://github.com/PHPOffice/PhpSpreadsheet/commit/bea2d4b30f24bcc8a7712e208d1359e603b45dda> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-45048> (advisory)
- <https://github.com/PHPOffice/PhpSpreadsheet> (package)

## Sources

- CVE List: [CVE-2024-45048](https://www.cve.org/CVERecord?id=CVE-2024-45048), CVE Terms of Use, modified 2024-08-29
- GitHub Advisory Database: [GHSA-ghg6-32f9-2jp7](https://github.com/advisories/GHSA-ghg6-32f9-2jp7), CC-BY-4.0, modified 2025-03-06
- NVD: [CVE-2024-45048](https://nvd.nist.gov/vuln/detail/CVE-2024-45048), Public domain, modified 2026-06-17

---

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