PHPOffice PHPWord through 1.4.0 contains a path traversal vulnerability in Element\Image::getImageString() and Writer\AbstractWriter::addFileToPackage() that allows attackers to read and delete arbit…
- CVSS
- 8.3High
- Chance of exploitation (EPSS)
- 0.68%
- Published
- Dec 2, 2026
- In the news
- Not yet
What to do
A serious path traversal flaw in Phpoffice Phpword that can be attacked over the network by someone with an account. No attacks are reported yet; it can go in your normal patch cycle.
Action: Check the vendor's advisory in the references and apply updates as soon as they are available.
Affected versions
- Phpoffice Phpword
- Through 1.4.0
Description
PHPOffice PHPWord through 1.4.0 contains a path traversal vulnerability in Element\Image::getImageString() and Writer\AbstractWriter::addFileToPackage() that allows attackers to read and delete arbitrary files via crafted zip entry names. Attackers can submit a docx whose image relationship targets and zip entries contain ../ sequences, exposing server files in converted output and unlinking files writable by the web server.
Affected products
Get alerts for these →Timeline 1
Latest change: CVE-2026-142202 published (CVSS 8.3) (Dec 2, 2026)
News, advisories, exploit code, scanner detection and exploitation, newest first.
Wed, Dec 2, 2026
- CVECVE-2026-142202 published (CVSS 8.3)CVE Program · 17:17 UTC
References 3
- github.com /PHPOffice/PHPWord/blob/1.4.0/src/PhpWord/Element/Image.php#L341-L400
- github.com /PHPOffice/PHPWord/blob/1.4.0/src/PhpWord/Writer/AbstractWriter.php#L366-L388
- www.vulncheck.com /advisories/phpoffice-phpword-through-1.4.0-path-traversal-via-zip-entry-names-in-image-handling