{"id":"CVE-2024-47873","published":"2024-11-18T17:03:00Z","modified":"2024-11-18T18:28:36Z","title":"PhpSpreadsheet XmlScanner bypass leads to XXE","vendor":"PHPOffice","product":"PhpSpreadsheet","tier":"tail","description":{"text":"PhpSpreadsheet is a PHP library for reading and writing spreadsheet files. The XmlScanner class has a scan method which should prevent XXE attacks. However, prior to versions 1.9.4, 2.1.3, 2.3.2, and 3.4.0, the regexes used in the `scan` method and the findCharSet method can be bypassed by using UCS-4 and encoding guessing. An attacker can bypass the sanitizer and achieve an XML external entity attack. Versions 1.9.4, 2.1.3, 2.3.2, and 3.4.0 fix the issue.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00766,"percentile":0.56403,"provenance":"source"},"cwes":[{"id":"CWE-611","name":"Improper Restriction of XML External Entity Reference"}],"references":[{"url":"https://github.com/PHPOffice/PhpSpreadsheet/security/advisories/GHSA-jw4x-v69f-hh5w","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/PHPOffice/PhpSpreadsheet/blob/39fc51309181e82593b06e2fa8e45ef8333a0335/src/PhpSpreadsheet/Reader/Security/XmlScanner.php","tags":["x_refsource_MISC"]},{"url":"https://owasp.org/www-community/vulnerabilities/XML_External_Entity_(XXE)_Processing","tags":["x_refsource_MISC"]},{"url":"https://www.w3.org/TR/xml/#sec-guessing-no-ext-info","tags":["x_refsource_MISC"]}],"priority":{"score":16.5,"factors":[{"name":"EPSS percentile","points":11.28},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"phpoffice","affectedVersions":[{"vendor":"PHPOffice","product":"PhpSpreadsheet","versions":["< 1.29.4",">= 2.0.0, < 2.1.3",">= 2.2.0, < 2.3.2",">= 3.3.0, < 3.4.0"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2024-11-18T18:28:33.862619Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"phpoffice/phpspreadsheet","vulnerableRanges":["<1.29.4",">=2.0.0, <2.1.3",">=2.2.0, <2.3.2",">=3.3.0, <3.4.0"],"patched":["1.29.4","2.1.3","2.3.2","3.4.0"],"from":["GHSA-jw4x-v69f-hh5w"],"provenance":"source"},{"ecosystem":"Packagist","package":"phpoffice/phpexcel","vulnerableRanges":["<=1.8.2"],"patched":[],"from":["GHSA-jw4x-v69f-hh5w"],"provenance":"source"}],"summary":{"text":"PhpSpreadsheet, a PHP library for reading and writing spreadsheet files, has a flaw in the XmlScanner class's scan and findCharSet methods, where regex-based sanitization that is meant to block XML external entity (XXE) attacks can be bypassed using UCS-4 encoding and encoding guessing. An attacker who can supply a crafted spreadsheet file over the network, with no authentication or user interaction required, can trigger an XXE attack to read sensitive data.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:10:10Z"},"euvd":{"id":"EUVD-2024-3279","exploited":false,"provenance":"source"}}