CVE-2024-47873PhpSpreadsheet XmlScanner bypass leads to XXE
- 7.5HighCVSS base score
- 0.76%Exploitation in 30 daysEPSS · top 44% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- YesPublic exploitsa reference or SSVC says so
Description
PhpSpreadsheet is a PHP library for reading and writing spreadsheet files. The XmlScanner class has a scan method which should prevent XXE attacks. However, prior to versions 1.9.4, 2.1.3, 2.3.2, and 3.4.0, the regexes used in the `scan` method and the findCharSet method can be bypassed by using UCS-4 and encoding guessing. An attacker can bypass the sanitizer and achieve an XML external entity attack. Versions 1.9.4, 2.1.3, 2.3.2, and 3.4.0 fix the issue.
Public exploit
An exploit or proof of concept is public: anyone can try it against an unpatched system. CISA's SSVC rates its exploitation: a proof of concept is public.
Timeline
ID reserved
By GitHub_M
- 45 days later
· 45 days later
Published
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| GitHub_MCNA (assigner) | 3.1 | High7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVDNVD · Analyzed | 3.1 | High7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
- EPSS (exploitation in 30 days)
- 0.76% · top 44% of all CVEs (14 Nov 2026)
- CISA SSVC
- Exploitation: poc · Automatable: yes · Technical impact: partial
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.5.
Affected products
- affected < 1.29.4
- affected >= 2.0.0, < 2.1.3
- affected >= 2.2.0, < 2.3.2
- affected >= 3.3.0, < 3.4.0
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- Packagistphpoffice/phpexcelGHSA-jw4x-v69f-hh5w (opens in a new tab)
- Packagistphpoffice/phpspreadsheetGHSA-jw4x-v69f-hh5w (opens in a new tab)
References
References4
- https://github.com/PHPOffice/PhpSpreadsheet/security/advisories/GHSA-jw4x-v69f-hh5w (opens in a new tab)x_refsource_CONFIRM
- https://github.com/PHPOffice/PhpSpreadsheet/blob/39fc51309181e82593b06e2fa8e45ef8333a0335/src/PhpSpreadsheet/Reader/Security/XmlScanner.php (opens in a new tab)x_refsource_MISC
- https://owasp.org/www-community/vulnerabilities/XML_External_Entity_(XXE)_Processing (opens in a new tab)x_refsource_MISC
- https://www.w3.org/TR/xml/#sec-guessing-no-ext-info (opens in a new tab)x_refsource_MISC
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2024-3279 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-jw4x-v69f-hh5w (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2024-47873)Record last updated .