{"id":"CVE-2024-45048","published":"2024-08-28T20:38:29Z","modified":"2024-08-29T13:10:20Z","title":"XML External Entity Reference (XXE) in PHPSpreadsheet","vendor":"PHPOffice","product":"PhpSpreadsheet","tier":"tail","description":{"text":"PHPSpreadsheet is a pure PHP library for reading and writing spreadsheet files. Affected versions are subject to a bypassing of a filter which allows for an XXE-attack. This in turn allows attacker to obtain contents of local files, even if error reporting is muted. This vulnerability has been addressed in release version 2.2.1. All users are advised to upgrade. There are no known workarounds for this vulnerability.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00884,"percentile":0.57003,"provenance":"source"},"cwes":[{"id":"CWE-611","name":"Improper Restriction of XML External Entity Reference"}],"references":[{"url":"https://github.com/PHPOffice/PhpSpreadsheet/security/advisories/GHSA-ghg6-32f9-2jp7","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/PHPOffice/PhpSpreadsheet/commit/bea2d4b30f24bcc8a7712e208d1359e603b45dda","tags":["x_refsource_MISC"]}],"priority":{"score":17.6,"factors":[{"name":"EPSS percentile","points":11.4},{"name":"CVSS severity","points":6.16}]},"vendorSlug":"phpoffice","affectedVersions":[{"vendor":"PHPOffice","product":"PhpSpreadsheet","versions":["< 2.2.1"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2024-08-29T13:08:33.737650Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"phpoffice/phpspreadsheet","vulnerableRanges":["<1.29.1",">=2.2.0, <2.2.1",">=2.0.0, <2.1.1"],"patched":["1.29.1","2.2.1","2.1.1"],"from":["GHSA-ghg6-32f9-2jp7"],"provenance":"source"},{"ecosystem":"Packagist","package":"phpoffice/phpexcel","vulnerableRanges":["<=1.8.2"],"patched":[],"from":["GHSA-ghg6-32f9-2jp7"],"provenance":"source"}],"summary":{"text":"An XML external entity (XXE) flaw in PhpSpreadsheet, a pure PHP spreadsheet reading and writing library from PHPOffice, lets a filter bypass in affected versions expose the contents of local files, even when error reporting is suppressed. Exploitation requires network access to a deployment that processes spreadsheet files, with the attack succeeding only if a user takes an action such as opening or submitting a crafted file, and no authentication is needed.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:10:10Z"},"euvd":{"id":"EUVD-2024-2584","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-phpoffice-phpspreadsheet-cve-2018-19277","children":[{"from":"CVE-2024-45048","to":"CVE-2024-45293","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/PhpSpreadsheet/Reader/Security/XmlScanner.php"],"commits":["https://github.com/PHPOffice/PhpSpreadsheet/commit/bea2d4b30f24bcc8a7712e208d1359e603b45dda","https://github.com/PHPOffice/PhpSpreadsheet/commit/3bcd51826b7f089d1641e756c83030c30c3bdb0c","https://github.com/PHPOffice/PhpSpreadsheet/commit/7d6cb09f6e8204f65e6dd5a0490f7f45f44bb331"],"basis":"shared function","functions":["forceString","toUtf8"]}]},{"from":"CVE-2024-45048","to":"CVE-2026-108357","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/PhpSpreadsheet/Reader/Security/XmlScanner.php"],"commits":["https://github.com/PHPOffice/PhpSpreadsheet/commit/bea2d4b30f24bcc8a7712e208d1359e603b45dda","https://github.com/PHPOffice/PhpSpreadsheet/commit/89f455c133e1a7e2d4abfadc43ce29eb7450d781","https://github.com/PHPOffice/PhpSpreadsheet/commit/980b5c294493856f1a25754f1e8a1d2185b93738"],"basis":"shared function","functions":["toUtf8"]}]},{"from":"CVE-2024-45048","to":"CVE-2026-108358","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/PhpSpreadsheet/Reader/Security/XmlScanner.php"],"commits":["https://github.com/PHPOffice/PhpSpreadsheet/commit/bea2d4b30f24bcc8a7712e208d1359e603b45dda","https://github.com/PHPOffice/PhpSpreadsheet/commit/299993894dce37aa3b64aa23e9a3f4bb77ab0e66","https://github.com/PHPOffice/PhpSpreadsheet/commit/89f455c133e1a7e2d4abfadc43ce29eb7450d781"],"basis":"shared function","functions":["toUtf8"]}]},{"from":"CVE-2024-45048","to":"CVE-2026-108359","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/PhpSpreadsheet/Reader/Security/XmlScanner.php"],"commits":["https://github.com/PHPOffice/PhpSpreadsheet/commit/bea2d4b30f24bcc8a7712e208d1359e603b45dda","https://github.com/PHPOffice/PhpSpreadsheet/commit/299993894dce37aa3b64aa23e9a3f4bb77ab0e66","https://github.com/PHPOffice/PhpSpreadsheet/commit/2de29384aa11223ee08136c0e6a9e9981bc1a2eb"],"basis":"shared function","functions":["toUtf8"]}]},{"from":"CVE-2024-45048","to":"CVE-2026-108360","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/PhpSpreadsheet/Reader/Security/XmlScanner.php"],"commits":["https://github.com/PHPOffice/PhpSpreadsheet/commit/bea2d4b30f24bcc8a7712e208d1359e603b45dda","https://github.com/PHPOffice/PhpSpreadsheet/commit/299993894dce37aa3b64aa23e9a3f4bb77ab0e66","https://github.com/PHPOffice/PhpSpreadsheet/commit/94590951d76a250a5fc1ecf69a0b3f7439a9af49"],"basis":"shared function","functions":["toUtf8"]}]}]}}