XXE in PHPSpreadsheet due to encoding issue
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 software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Composer package | phpoffice/phpexcel | < 1.8.2 | 1.8.2 |
| Composer package | phpoffice/phpspreadsheet | < 1.5.1 | 1.5.1 |
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
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H- Weakness (CWE)
CWE-91- Platform
- Composer
- Package
phpoffice/phpexcel, phpoffice/phpspreadsheet- Disclosed
- 20.11.2019
- Updated
- 11.10.2026 10:22
Sources and licenses
OSV / GitHub Advisory Database - GHSA-xcrg-29h7-h4cj - CC BY 4.0
Vulnerability history: phpoffice/phpexcel
All published vulnerabilities of this package (Composer package), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 23
- First → latest
- 11.2019 02.2025
- Without a fix
- 20
- Exploited in attacks
- 0
Severity breakdown
- High 12
- Medium 10
- Low 1
Disclosures per year
- 2019: 2
- 2020: 0
- 2021: 1
- 2022: 1
- 2023: 0
- 2024: 10
- 2025: 9
- 2026: 0
-
XXE in PHPSpreadsheet due to encoding issue this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.