{"id":"CVE-2025-54370","published":"2025-08-25T14:08:58Z","modified":"2025-08-25T14:34:39Z","title":"PhpSpreadsheet vulnerable to SSRF when reading and displaying a processed HTML document in the browser","vendor":"PHPOffice","product":"PhpSpreadsheet","tier":"tail","description":{"text":"PhpOffice/PhpSpreadsheet is a pure PHP library for reading and writing spreadsheet files. Prior to versions 1.30.0, 2.1.12, 2.4.0, 3.10.0, and 5.0.0, SSRF can occur when a processed HTML document is read and displayed in the browser. The vulnerability lies in the setPath method of the PhpOffice\\PhpSpreadsheet\\Worksheet\\Drawing class, where a crafted string from the user is passed to the HTML reader. This issue has been patched in versions 1.30.0, 2.1.12, 2.4.0, 3.10.0, and 5.0.0.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.7,"severity":"HIGH","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00871,"percentile":0.56462,"provenance":"source"},"cwes":[{"id":"CWE-918","name":"Server-Side Request Forgery"}],"references":[{"url":"https://github.com/PHPOffice/PhpSpreadsheet/security/advisories/GHSA-rx7m-68vc-ppxh","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/PHPOffice/PhpSpreadsheet/commit/334a67797ace574d1d37c0992ffe283b7415471a","tags":["x_refsource_MISC"]},{"url":"https://github.com/PHPOffice/PhpSpreadsheet/commit/4050f14521d70634c3320b170236574a6106eb39","tags":["x_refsource_MISC"]},{"url":"https://github.com/PHPOffice/PhpSpreadsheet/commit/81a0de2261f698404587a6421a5c6eb263c40b31","tags":["x_refsource_MISC"]},{"url":"https://github.com/PHPOffice/PhpSpreadsheet/commit/ac4befd2f7ccc21a59daef606a02a3d1828ade09","tags":["x_refsource_MISC"]},{"url":"https://github.com/PHPOffice/PhpSpreadsheet/commit/c2cd0e64392438e4c6af082796eb65c1d629a266","tags":["x_refsource_MISC"]}],"priority":{"score":17.4,"factors":[{"name":"EPSS percentile","points":11.29},{"name":"CVSS severity","points":6.09}]},"vendorSlug":"phpoffice","affectedVersions":[{"vendor":"PHPOffice","product":"PhpSpreadsheet","versions":["< 1.30.0",">= 2.0.0, < 2.1.12",">= 2.2.0, < 2.4.0",">= 3.0.0, < 3.10.0",">= 4.0.0, < 5.0.0"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2025-08-25T14:34:28.362382Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"phpoffice/phpspreadsheet","vulnerableRanges":["<1.30.0",">=2.0.0, <2.1.12",">=2.2.0, <2.4.0",">=3.0.0, <3.10.0",">=4.0.0, <5.0.0"],"patched":["1.30.0","2.1.12","2.4.0","3.10.0","5.0.0"],"from":["GHSA-rx7m-68vc-ppxh"],"provenance":"source"}],"summary":{"text":"A server-side request forgery flaw in PhpOffice's PhpSpreadsheet PHP library lies in the setPath method of the Worksheet\\Drawing class, where a crafted user-supplied string is passed to the HTML reader and the resulting processed HTML is read and displayed in the browser. An attacker with network access can exploit it without authentication, privileges or user interaction, causing the server to issue requests they control and disclosing high confidentiality impact on the vulnerable system.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:35:41Z"},"euvd":{"id":"EUVD-2025-25699","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-phpoffice-phpspreadsheet-cve-2018-19277","parents":[{"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-2024-56412","published":"2025-01-03","fixed":"3.7.0","kev":false},{"cve":"CVE-2025-22131","published":"2025-01-20","fixed":"3.8.0","kev":false},{"cve":"CVE-2025-23210","published":"2025-02-03","fixed":"3.9.0","kev":false,"link":{"from":"CVE-2025-23210","to":"CVE-2025-54370","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:phpoffice/phpspreadsheet","fromFixed":"3.9.0","toFixed":"3.10.0","daysApart":203},{"kind":"version-step","provenance":"source","package":"Packagist:phpoffice/phpspreadsheet","fromFixed":"2.1.8","toFixed":"2.1.12","daysApart":203}]}},{"cve":"CVE-2025-54370","published":"2025-08-25","fixed":"5.0.0","kev":false},{"cve":"CVE-2026-34084","published":"2026-05-05","fixed":"5.6.0","kev":false,"link":{"from":"CVE-2025-54370","to":"CVE-2026-34084","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:phpoffice/phpspreadsheet","fromFixed":"5.0.0","toFixed":"5.6.0","daysApart":253},{"kind":"version-step","provenance":"source","package":"Packagist:phpoffice/phpspreadsheet","fromFixed":"3.10.0","toFixed":"3.10.4","daysApart":253}]}},{"cve":"CVE-2026-35453","published":"2026-05-05","fixed":"5.7.0","kev":false},{"cve":"CVE-2026-40296","published":"2026-05-06","fixed":"5.7.0","kev":false}],"package":"Packagist:phpoffice/phpspreadsheet"}}