CVE-2024-45293:
XXE in PHPSpreadsheet's XLSX reader
7.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.95418%
CWE
Published
10/7/2024
Updated
3/6/2025
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
phpoffice/phpspreadsheet | composer | >= 2.2.0, < 2.3.0 | 2.3.0 |
phpoffice/phpspreadsheet | composer | < 1.29.1 | 1.29.1 |
phpoffice/phpspreadsheet | composer | >= 2.0.0, < 2.1.1 | 2.1.1 |
phpoffice/phpexcel | composer | <= 1.8.2 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from the regex patterns in findCharSet()
being too strict (lacking \s* to match whitespace around 'encoding='). This allowed attackers to inject UTF-7 encoded XML with XXE payloads. The toUtf8()
function's security logic was dependent on this flawed detection, making both functions part of the vulnerability chain. The commit diff explicitly shows the regex being updated to include whitespace handling, confirming these functions as the root cause.