XML external entityin PHPOffice PhpSpreadsheet.
Weaponized: a Nuclei exploit is public.
PHPSpreadsheet is a pure PHP library for reading and writing spreadsheet files. The security scanner responsible for preventing XXE attacks in the XLSX reader can be bypassed by slightly modifying the XML structure, utilizing white-spaces. On servers that allow users to upload their own Excel (XLSX) sheets, Server files and sensitive information can be disclosed by providing a crafted sheet. The security scan function in src/PhpSpreadsheet/Reader/Security/XmlScanner.php contains a flawed XML encoding check to retrieve the input file's XML encoding in the toUtf8 function.
- Upgrade PhpSpreadsheet to 1.29.1, 2.1.1, 2.3.0 or later, whichever matches your release line.
- Upgrade phpoffice/phpspreadsheet (Packagist) to 1.29.1, 2.1.1, 2.3.0 or later, whichever matches your release line.
Affected and fixed versions
From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.
From first report to first attacks
- 26 Aug 2024CVE ID reserved by GitHub_M.
- 7 Oct 2024Published in the CVE List.
- 7 Oct 2024CVE record last updated.
Attack code anyone can find
Exploit maturity: Weaponized (Nuclei). CISA assessment (SSVC): exploitation poc.
Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.
Report a link
Other PhpSpreadsheet vulnerabilities
Same weakness: XML external entity
- github.com x_refsource_CONFIRM
Patchminder. CVE-2024-45293: XML external entity in PHPOffice PhpSpreadsheet. https://patchminder.com/cve/cve-2024-45293/ (accessed 5 December 2026).