CVE-2018-19277 json
XXE in PHPSpreadsheet due to encoding issue
published 7y ago modified 4mo ago also GHSA-xcrg-29h7-h4cj , EUVD-2019-0766
- cvss
- 8.8
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 7.8%
- EPSS 7.8% chance of exploitation in 30 days, percentile 94%
- public exploits
- 1
- Exploit-DB
Summary
securityScan() in PHPOffice PhpSpreadsheet through 1.5.0 allows a bypass of protection mechanisms for XXE via UTF-7 encoding in a .xlsx file
Patch / fix
- packagist phpoffice/phpspreadsheet 1.5.1
- packagist phpoffice/phpexcel 1.8.2
Is CVE-2018-19277 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerTimeline
- Published
- First public exploit (EDB-46050)
Exploit prediction
7.79% chance of exploitation in the next 30 days, higher than 94% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- EDB-46050 PhpSpreadsheet < 1.5.0 - XML External Entity (XXE) webapps, 2018-11-30
- github.com https://github.com/PHPOffice/PhpSpreadsheet/issues/771 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 6.8 | AV:N/AC:M/Au:N/C:P/I:P/A:P |
| GitHub | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| packagist | phpoffice/phpspreadsheet | <1.5.1 |
1.5.1 |
| packagist | phpoffice/phpexcel | <1.8.2 |
1.8.2 |
Classification
- Weakness
-
- CWE-91 XML Injection
References
-
github.com
/PHPOffice/PhpSpreadsheet/pull/780
web
-
github.com
/PHPOffice/PHPExcel/commit/2b601574975acfb9d4378a788ed5f2b747958095
web
-
github.com
/PHPOffice/PhpSpreadsheet/commit/0f8f071e24ee8b114d894ac172f77dc250e5bfa4
web
-
github.com
/PHPOffice/PhpSpreadsheet/issues/771
web, exploit, third-party-advisory
-
bishopfox.com
/news/2018/11/phpoffice-versions/
broken-link
-
github.com
/MewesK/TwigSpreadsheetBundle/issues/18
web, third-party-advisory
-
drupal.org
/sa-contrib-2021-043
web, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2018-19277
advisory
-
github.com
/FriendsOfPHP/security-advisories/blob/master/phpoffice/phpspreadsheet/CVE-2018-19277.yaml
web
-
github.com
/PHPOffice/PHPExcel/commits/1.8.2
web
-
github.com
/PHPOffice/PhpSpreadsheet
package
-
github.com
/PHPOffice/PhpSpreadsheet/releases/tag/1.5.1
web
-
bishopfox.com
/news/2018/11/phpoffice-versions
web
Sources
- CVE List CVE-2018-19277
- GitHub Advisory GHSA-xcrg-29h7-h4cj
- NVD CVE-2018-19277
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.