freenode

← CVE tracker

CVE-2026-142202

PHPOffice PHPWord through 1.4.0 Path Traversal via Zip Entry Names in Image Handling

Severity
high CVSS 7.2 (v4.0)
Affects
PHPWord · PHPOffice
Weakness
CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Published
2 December 2026 by VulnCheck
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.

Our coverage

We have not written about this one. Know why it matters? Send a tip.