patchminder
Weaponized · Nuclei CVE-2024-45293

XML external entityin PHPOffice PhpSpreadsheet.

Published 7 Oct 2024 · Updated 7 Oct 2024 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

Weaponized: a Nuclei exploit is public.

Attack code is public
Severity
High 7.5
CVSSA severity score from 0 to 10. 9 and higher is critical. 3.1 · no login needed
Attack likelihood
Moderate
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 2.8% chance in 30 days · 4 Dec 2026
Fix
Available
Fixed in 1.29.1, 2.1.1, 2.3.0
In plain words

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.

What to do now
  • 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.
Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
PhpSpreadsheet
2.2.0 to before 2.3.0
2.3.0
CVE record
PhpSpreadsheet
before 1.29.1
1.29.1
CVE record
PhpSpreadsheet
2.0.0 to before 2.1.1
2.1.1
CVE record
phpoffice/phpspreadsheet (Packagist)
2.2.0 to before 2.3.0
2.3.0
GitHub advisory
phpoffice/phpspreadsheet (Packagist)
before 1.29.1
1.29.1
GitHub advisory
phpoffice/phpspreadsheet (Packagist)
2.0.0 to before 2.1.1
2.1.1
GitHub advisory
phpoffice/phpexcel (Packagist)
1.8.2 and earlier
Not confirmed
GitHub advisory

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 26 Aug 2024
    CVE ID reserved by GitHub_M.
  2. 7 Oct 2024
    Published in the CVE List.
  3. 7 Oct 2024
    CVE record last updated.
Exploit code

Attack code anyone can find

Exploit maturity: Weaponized (Nuclei). CISA assessment (SSVC): exploitation poc.

Metasploit module
None known
Nuclei scan template
Available
Exploit-DB
None known
GitHub proof of concepts
None known
NucleiTablePress < 2.4.3 · XXE Injectiondetection template

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.

Related

Other PhpSpreadsheet vulnerabilities

Same weakness: XML external entity

All CWE-611 vulnerabilities

References
Cite this page

Patchminder. CVE-2024-45293: XML external entity in PHPOffice PhpSpreadsheet. https://patchminder.com/cve/cve-2024-45293/ (accessed 5 December 2026).