CVE-2024-47873GHSA-JW4X-V69F-HH5W
PhpSpreadsheet XmlScanner bypass leads to XXE
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 1.29.4, 2.1.3, 2.3.2, 3.4.0
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
CISA's decision points: whether it is exploited, whether attacks can be automated, and how much control an attacker gets. Assessed (SSVC 2.0.3).What do these mean? →
- Exploitation: poc
- Automatable: yes
- Technical impact: partial
Summary
PhpSpreadsheet is a PHP library for reading and writing spreadsheet files. The XmlScanner class has a scan method which should prevent XXE attacks. However, prior to versions 1.9.4, 2.1.3, 2.3.2, and 3.4.0, the regexes used in the `scan` method and the findCharSet method can be bypassed by using UCS-4 and encoding guessing. An attacker can bypass the sanitizer and achieve an XML external entity attack. Versions 1.9.4, 2.1.3, 2.3.2, and 3.4.0 fix the issue.
Timeline
- CVE published
- CISA SSVC assessment
Exploitation: poc · Automatable: yes · Technical impact: partial
- Record last updated
Affected versions
- PHPOffice PhpSpreadsheet
fixed in 1.29.4; From 2.0.0 · fixed in 2.1.3; From 2.2.0 · fixed in 2.3.2; From 3.3.0 · fixed in 3.4.0
- phpoffice/phpspreadsheetPackagist
fixed in 1.29.4
- phpoffice/phpspreadsheetPackagist
From 2.0.0 · fixed in 2.1.3
- phpoffice/phpspreadsheetPackagist
From 2.2.0 · fixed in 2.3.2
- phpoffice/phpspreadsheetPackagist
From 3.3.0 · fixed in 3.4.0
- phpoffice/phpexcelPackagist
through 1.8.2