XML External Entity injection in PhpSpreadsheet - CVE-2024-47873

 

XML External Entity injection in PhpSpreadsheet - CVE-2024-47873

Published: November 16, 2024 / Updated: October 13, 2026


Vulnerability identifier: #VU154211
CSH Severity: Medium
CVSS v4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2024-47873
CWE-ID: CWE-611
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to disclose sensitive information.

The vulnerability exists due to improper restriction of XML external entity references in XmlScanner when processing XML input. A remote attacker can supply specially crafted XML input that bypasses the scanner's protections to disclose sensitive information.


Affected software

PhpSpreadsheet

How to mitigate CVE-2024-47873

Install security update from vendor's website.

PhpSpreadsheet - addressed in versions 1.29.4, 2.1.3, 2.3.2, 3.4.0

External References

Related Security Bulletins