XML External Entity Reference (XXE) in PHPSpreadsheet
PHPOffice PhpSpreadsheet
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| phpoffice/phpspreadsheet Packagist |
|
|
| phpoffice/phpexcel Packagist |
PHPOffice PhpSpreadsheet
| Product | Affected | Fixed in |
|---|---|---|
| phpoffice/phpspreadsheet Packagist |
|
|
| phpoffice/phpexcel Packagist |
≤ 1.8.2| No fix yet |
PHPSpreadsheet is a pure PHP library for reading and writing spreadsheet files. Affected versions are subject to a bypassing of a filter which allows for an XXE-attack. This in turn allows attacker to obtain contents of local files, even if error reporting is muted. This vulnerability has been addressed in release version 2.2.1. All users are advised to upgrade. There are no known workarounds for this vulnerability.
From the CVE record · GitHub_M
Affected PhpSpreadsheet versions have an XML filter bypass that permits an XXE attack. An attacker can obtain the contents of local files, even when error reporting is muted. The input does not specify authentication requirements or whether user interaction is needed.
Check installations of phpoffice/phpspreadsheet below 1.29.1, from 2.0.0 to below 2.1.1, or from 2.2.0 to below 2.2.1, and phpoffice/phpexcel at version 1.8.2 or earlier.