{"id":"CVE-2019-12331","published":"2019-11-07T14:03:43Z","modified":"2024-08-04T23:17:39Z","title":"PHPOffice PhpSpreadsheet before 1.8.0 has an XXE issue","vendor":null,"product":null,"tier":"tail","description":{"text":"PHPOffice PhpSpreadsheet before 1.8.0 has an XXE issue. The XmlScanner decodes the sheet1.xml from an .xlsx to utf-8 if something else than UTF-8 is declared in the header. This was a security measurement to prevent CVE-2018-19277 but the fix is not sufficient. By double-encoding the the xml payload to utf-7 it is possible to bypass the check for the string ‚<!ENTITY‘ and thus allowing for an xml external entity processing (XXE) attack.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.0135,"percentile":0.72183,"provenance":"source"},"cwes":[],"references":[{"url":"https://github.com/PHPOffice/PhpSpreadsheet/blob/master/CHANGELOG.md#180---2019-07-01","tags":["x_refsource_CONFIRM"]},{"url":"https://herolab.usd.de/security-advisories/usd-2019-0046/","tags":["x_refsource_MISC"]}],"priority":{"score":14.4,"factors":[{"name":"EPSS percentile","points":14.44}]},"affected":[{"ecosystem":"Packagist","package":"phpoffice/phpspreadsheet","vulnerableRanges":["<1.8.0"],"patched":["1.8.0"],"from":["GHSA-vvwv-h69m-wg6f"],"provenance":"source"},{"ecosystem":"Packagist","package":"phpoffice/phpexcel","vulnerableRanges":["<=1.8.2"],"patched":[],"from":["GHSA-vvwv-h69m-wg6f"],"provenance":"source"}],"summary":{"text":"PHPOffice PhpSpreadsheet before 1.8.0 contains an XML external entity (XXE) flaw in its XmlScanner, which decodes the sheet1.xml of an .xlsx file and fails to block external entity declarations when the payload is double-encoded as UTF-7.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:48:43Z"},"euvd":{"id":"EUVD-2019-0763","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-phpoffice-phpspreadsheet-cve-2018-19277","parents":[{"from":"CVE-2018-19277","to":"CVE-2019-12331","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:phpoffice/phpspreadsheet","fromFixed":"1.5.1","toFixed":"1.8.0","daysApart":358},{"kind":"same-code","provenance":"machine","files":["src/PhpSpreadsheet/Reader/BaseReader.php"],"commits":["https://github.com/PHPOffice/PhpSpreadsheet/commit/0f8f071e24ee8b114d894ac172f77dc250e5bfa4","https://github.com/PHPOffice/PhpSpreadsheet/commit/0e6238c69e863b58aeece61e48ea032696c6dccd"],"basis":"rarely changed file"},{"kind":"similar","provenance":"machine","score":0.38,"basis":"same package + description similarity"}]}],"children":[{"from":"CVE-2019-12331","to":"CVE-2025-54370","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/PhpSpreadsheet/Reader/BaseReader.php"],"commits":["https://github.com/PHPOffice/PhpSpreadsheet/commit/0e6238c69e863b58aeece61e48ea032696c6dccd","https://github.com/PHPOffice/PhpSpreadsheet/commit/334a67797ace574d1d37c0992ffe283b7415471a","https://github.com/PHPOffice/PhpSpreadsheet/commit/4050f14521d70634c3320b170236574a6106eb39"],"basis":"shared function","functions":["BaseReader"]}]}],"packageHistory":[{"cve":"CVE-2018-19277","published":"2018-11-14","fixed":"1.5.1","kev":false},{"cve":"CVE-2019-12331","published":"2019-11-07","fixed":"1.8.0","kev":false},{"cve":"CVE-2020-7776","published":"2020-12-09","fixed":"1.16.0","kev":false,"link":{"from":"CVE-2019-12331","to":"CVE-2020-7776","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:phpoffice/phpspreadsheet","fromFixed":"1.8.0","toFixed":"1.16.0","daysApart":398}]}},{"cve":"CVE-2026-45034","published":"2026-06-22","fixed":"1.30.5","kev":false},{"cve":"CVE-2024-45046","published":"2024-08-28","fixed":"2.1.0","kev":false}],"package":"Packagist:phpoffice/phpspreadsheet"}}