GitHub Advisory Database
GHSA-xcrg-29h7-h4cj
XXE in PHPSpreadsheet due to encoding issue
Details
securityScan() in PHPOffice PhpSpreadsheet through 1.5.0 allows a bypass of protection mechanisms for XXE via UTF-7 encoding in a .xlsx file
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Packagist | phpoffice/phpspreadsheet | All versions before 1.5.1 (fixed in 1.5.1) |
| Packagist | phpoffice/phpexcel | All versions before 1.8.2 (fixed in 1.8.2) |
References
- https://nvd.nist.gov/vuln/detail/CVE-2018-19277
- https://github.com/MewesK/TwigSpreadsheetBundle/issues/18
- https://github.com/PHPOffice/PhpSpreadsheet/issues/771
- https://github.com/PHPOffice/PhpSpreadsheet/pull/780
- https://github.com/PHPOffice/PHPExcel/commit/2b601574975acfb9d4378a788ed5f2b747958095
- https://github.com/PHPOffice/PhpSpreadsheet/commit/0f8f071e24ee8b114d894ac172f77dc250e5bfa4
- https://github.com/FriendsOfPHP/security-advisories/blob/master/phpoffice/phpspreadsheet/CVE-2018-19277.yaml
- https://github.com/PHPOffice/PHPExcel/commits/1.8.2
- https://github.com/PHPOffice/PhpSpreadsheet
- https://github.com/PHPOffice/PhpSpreadsheet/releases/tag/1.5.1
- https://www.bishopfox.com/news/2018/11/phpoffice-versions
- https://www.drupal.org/sa-contrib-2021-043