Server-side request forgery in PhpSpreadsheet writer external drawings
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- High
- Attack requirements
- Present
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- No fix listed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-918 and the CVSS impact.
Summary
PhpSpreadsheet through 5.12.0 contains a server-side request forgery flaw (CWE-918) in its writers, which re-fetch external drawing URLs with file_get_contents() and follow redirects. A remote attacker 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 into generated xlsx, ods, xls or html files.
Written with Claude Haiku 5.5 from the sources below · 2026-12-04
Description from the CNA
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
Remediation
The sources list no fixed version for PhpSpreadsheet.
Written with Claude Haiku 5.5 from the sources below · 2026-12-04
Timeline
- 2026-12-04 Threatist record created from CVE-2026-144591
- 2026-12-04 Alias added: GHSA-cg33-p636-9jxv
References
Other 3
- https://github.com/PHPOffice/PhpSpreadsheet/blob/5.12.0/src/PhpSpreadsheet/Writer/Xlsx.php#L598-L622
- 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/Worksheet/Drawing.php#L140-L180
More PHPOffice vulnerabilities
- TI-2026-32885 PhpSpreadsheet: File::prohibitWrappers bypass CVSS 4.0CRITICAL 9.2
- TI-2026-26406 PhpSpreadsheet SSRF and RCE via PHP stream wrappers in IOFactory::load CVSS 4.0CRITICAL 9.2
- TI-2026-79412 PhpSpreadsheet ODS reader exhausts CPU and memory via repeated rows CVSS 4.0HIGH 8.7
- TI-2025-34182 PhpSpreadsheet vulnerable to SSRF when reading and displaying a processed HTML document in the browser CVSS 4.0HIGH 8.7
- TI-2026-78784 Insecure deserialization in PHPOffice PHPPresentation allows code execution CVSS 4.0CRITICAL 9.2
- TI-2024-37339 PhpSpreadsheet vulnerable to unauthorized reflected XSS in Currency.php file CVSS 4.0HIGH 8.3
Sources
- CVE-2026-144591 · CVE Program
- CVE-2026-144591 · NVD
- GHSA-cg33-p636-9jxv · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences