GHSA-xcrg-29h7-h4cjhigh8.8
XXE in PHPSpreadsheet due to encoding issue
Impact
securityScan() in PHPOffice PhpSpreadsheet through 1.5.0 allows a bypass of protection mechanisms for XXE via UTF-7 encoding in a .xlsx file
Source excerpt · OSVAffected packages
Start with the recorded fix for your release branch. Check your installed version and test compatibility before upgrading. Fixing this advisory does not rule out other vulnerabilities in the release.
phpoffice/phpspreadsheet Packagist
| Affected range | Recorded fix |
|---|---|
| Earlier releases before 1.5.1Ecosystem versions | 1.5.1 |
Version evidence: OSV · GHSA-xcrg-29h7-h4cj
View original version evidence (11 explicit versions)
phpoffice/phpexcel Packagist
| Affected range | Recorded fix |
|---|---|
| Earlier releases before 1.8.2Ecosystem versions | 1.8.2 |
Version evidence: OSV · GHSA-xcrg-29h7-h4cj
View original version evidence (8 explicit versions)
Original source description
securityScan() in PHPOffice PhpSpreadsheet through 1.5.0 allows a bypass of protection mechanisms for XXE via UTF-7 encoding in a .xlsx file
References
- Security advisory nvd.nist.gov/vuln/detail/CVE-2018-19277
- Source reference github.com/MewesK/TwigSpreadsheetBundle/issues/18
- Source reference github.com/PHPOffice/PhpSpreadsheet/issues/771
- Patch github.com/PHPOffice/PhpSpreadsheet/pull/780
- Patch github.com/PHPOffice/PHPExcel/commit/2b601574975acfb9d4378a788ed5f2b747958095
- Patch github.com/PHPOffice/PhpSpreadsheet/commit/0f8f071e24ee8b114d894ac172f77dc250e5bfa4
- Security advisory github.com/FriendsOfPHP/security-advisories/blob/master/phpoffice/phpspreadsheet/CVE-2018-19277.yaml
- Source reference github.com/PHPOffice/PHPExcel/commits/1.8.2
- Source reference github.com/PHPOffice/PhpSpreadsheet
- Release notes github.com/PHPOffice/PhpSpreadsheet/releases/tag/1.5.1
- Source reference www.bishopfox.com/news/2018/11/phpoffice-versions
- Security advisory www.drupal.org/sa-contrib-2021-043