{"id":"CVE-2018-19277","aliases":["EUVD-2019-0766","GHSA-xcrg-29h7-h4cj"],"status":"published","title":"XXE in PHPSpreadsheet due to encoding issue","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","severity":{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-09","score":0.07791,"percentile":0.94698,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":true,"fix_available":true},"cwes":["CWE-91"],"published":"2018-11-14T11:00:00Z","modified":"2026-10-20T10:50:09Z","exploits":[{"source":"exploitdb","id":"EDB-46050","title":"PhpSpreadsheet \u003c 1.5.0 - XML External Entity (XXE)","type":"webapps","platform":"php","date":"2018-11-30","url":"https://www.exploit-db.com/exploits/46050"}],"fixes":[{"ecosystem":"Packagist","package":"phpoffice/phpspreadsheet","fixed_in":["1.5.1"],"sources":["ghsa","osv"]},{"ecosystem":"Packagist","package":"phpoffice/phpexcel","fixed_in":["1.8.2"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"Packagist","package":"phpoffice/phpspreadsheet","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.5.1"}]}]},{"source":"ghsa","ecosystem":"Packagist","package":"phpoffice/phpexcel","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.8.2"}]}]},{"source":"osv","ecosystem":"Packagist","package":"phpoffice/phpspreadsheet","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.5.1"}]}],"versions":["1.0.0","1.0.0-beta","1.0.0-beta2","1.1.0","1.2.0","1.2.1","1.3.0","1.3.1","1.4.0","1.4.1","1.5.0"]},{"source":"osv","ecosystem":"Packagist","package":"phpoffice/phpexcel","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.8.2"}]}],"versions":["1.7.9","1.7.9-rc1","1.8.0","1.8.0rc1","1.8.0rc2","1.8.0rc3","1.8.0rc4","1.8.1"]}],"products":[{"vendor":"phpoffice","product":"phpspreadsheet"}],"references":[{"url":"https://github.com/PHPOffice/PhpSpreadsheet/issues/771","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","evidence","web"]},{"url":"https://www.bishopfox.com/news/2018/11/phpoffice-versions/","tags":["x_refsource_MISC","x_transferred","Broken Link","web"]},{"url":"https://github.com/MewesK/TwigSpreadsheetBundle/issues/18","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://www.drupal.org/sa-contrib-2021-043","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-19277","tags":["advisory"]},{"url":"https://github.com/PHPOffice/PhpSpreadsheet/pull/780","tags":["web"]},{"url":"https://github.com/PHPOffice/PhpSpreadsheet/commit/0f8f071e24ee8b114d894ac172f77dc250e5bfa4","tags":["web"]},{"url":"https://github.com/PHPOffice/PhpSpreadsheet/releases/tag/1.5.1","tags":["web"]},{"url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/phpoffice/phpspreadsheet/CVE-2018-19277.yaml","tags":["web"]},{"url":"https://www.bishopfox.com/news/2018/11/phpoffice-versions","tags":["web"]},{"url":"https://github.com/PHPOffice/PHPExcel/commit/2b601574975acfb9d4378a788ed5f2b747958095","tags":["web"]},{"url":"https://github.com/PHPOffice/PHPExcel/commits/1.8.2","tags":["web"]},{"url":"https://github.com/advisories/GHSA-xcrg-29h7-h4cj"},{"url":"https://github.com/PHPOffice/PhpSpreadsheet","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2018-19277","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","status":"published","published":"2018-11-14T11:00:00Z","modified":"2024-08-05T11:30:04.281Z","updated_at":"2026-11-02T14:35:02.966615Z"}],"euvd":[{"id":"EUVD-2019-0766","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","status":"published","published":"2018-11-14T11:00:00Z","modified":"2024-08-05T11:30:04Z","updated_at":"2026-11-03T02:39:33.782065Z"}],"ghsa":[{"id":"GHSA-xcrg-29h7-h4cj","title":"XXE in PHPSpreadsheet due to encoding issue","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","status":"published","published":"2019-11-20T01:38:52Z","modified":"2025-03-06T18:08:04Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-91"],"updated_at":"2026-11-02T14:38:34.185137Z"}],"nvd":[{"id":"CVE-2018-19277","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","status":"published","published":"2018-11-14T11:29:07.92Z","modified":"2026-06-17T01:49:03.76Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"primary"},{"version":"2.0","score":6.8,"vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-91"],"updated_at":"2026-11-02T14:04:47.196456Z"}],"osv":[{"id":"CVE-2018-19277","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","status":"published","published":"2018-11-14T11:29:07.92Z","modified":"2026-10-20T10:50:09.336170529Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:44:08.834469Z"},{"id":"GHSA-xcrg-29h7-h4cj","title":"XXE in PHPSpreadsheet due to encoding issue","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","status":"published","published":"2019-11-20T01:38:52Z","modified":"2025-03-06T18:38:20.246894Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-91"],"updated_at":"2026-11-02T15:46:59.835583Z"}]}}
