CVE-2026-142203: PHPOffice PHPWord through 1.4.0 SSRF via External VML Image References
PHPOffice PHPWord through 1.4.0 contains a server-side request forgery vulnerability in the Word2007 reader that allows attackers to trigger outbound requests via external VML image relationships. Attackers can supply a crafted .docx with w:pict images using TargetMode External, causing filegetcontents() or getimagesize() to request attacker-chosen hosts, including internal addresses.
Affected Software
Event History
Frequently Asked Questions
Who is exposed to this issue?
Applications using composer/phpoffice/phpword through version 1.4.0 are exposed when they process attacker-supplied .docx files with the Word2007 reader. The affected path is external VML image relationships in w:pict images.
What does an attacker need to exploit it?
An attacker needs to provide a crafted .docx containing a VML image relationship with TargetMode set to External. No authentication or user interaction is required according to the supplied vector.
What can exploitation do?
Processing the malicious document can cause the server to make outbound requests to attacker-chosen hosts, including internal addresses. The requests are triggered through file_get_contents() or getimagesize().
How can I determine whether my application is affected?
Check whether the application depends on composer/phpoffice/phpword at version 1.4.0 or earlier and uses its Word2007 reader on untrusted .docx input. Review whether such documents can contain w:pict VML images with external TargetMode relationships.