CVE-2026-144591
DESCRIPTION
PhpSpreadsheet through 5.12.0 contains a server-side request forgery vulnerability that allows attackers to reach internal addresses because writers re-fetch external drawing URLs with file_get_contents() following redirects. Attackers can supply a spreadsheet whose image host serves a valid image to the reader and then redirects the writer's fetch to internal endpoints, leaking response data in generated xlsx, ods, xls or html files.
CVSS
HIGH 8.9 · v4.0
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:H/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:XWEAKNESSES
REFERENCES
- https://github.com/PHPOffice/PhpSpreadsheet/blob/5.12.0/src/PhpSpreadsheet/Worksheet/Drawing.php#L140-L180
- https://github.com/PHPOffice/PhpSpreadsheet/blob/5.12.0/src/PhpSpreadsheet/Writer/Ods/Drawing.php#L60-L66
- https://github.com/PHPOffice/PhpSpreadsheet/blob/5.12.0/src/PhpSpreadsheet/Writer/Xlsx.php#L598-L622
- https://www.vulncheck.com/advisories/phpspreadsheet-through-5.12.0-ssrf-via-redirect-in-writer-external-drawing-fetches
This record is mirrored from the NIST National Vulnerability Database and republished unchanged. It may have been revised or withdrawn since we last synced it; check the record at NVD before relying on it.