PT-2024-32865 · Unknown · Phpspreadsheet
Antonio-R1
+1
·
Published
2024-11-18
·
Updated
2026-03-24
·
CVE-2024-47873
CVSS v3.1
7.5
High
| Vector | AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
Name of the Vulnerable Software and Affected Versions
PhpSpreadsheet versions prior to 1.9.4, 2.1.3, 2.3.2, and 3.4.0
Description
The XmlScanner class in PhpSpreadsheet has a scan method that is intended to prevent XXE attacks. However, the regexes used in the scan method and the findCharSet method can be bypassed by using UCS-4 and encoding guessing, allowing an attacker to bypass the sanitizer and achieve an XML external entity attack. This issue can be exploited by creating a malicious payload for the workbook.xml file, which can lead to an HTTP request being sent to a specified URL.
Recommendations
For versions prior to 1.9.4, update to version 1.9.4 or later.
For versions prior to 2.1.3, update to version 2.1.3 or later.
For versions prior to 2.3.2, update to version 2.3.2 or later.
For versions prior to 3.4.0, update to version 3.4.0 or later.
Exploit
Fix
XXE
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Phpspreadsheet