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.
Metrics
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:NWeakness enumeration
Affected software
Source: the vendor's advisory (CNA). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| PHPOffice | PhpSpreadsheet | <= 5.12.0 |
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
Timeline
- Published
- Dec 4, 2026
- Last modified
- Dec 4, 2026
- NVD status
- Received