Skip to content
OpenAdvisories
High · 7.2 CVE-2026-142202 EUVD-2026-141628GHSA-hg8g-jhj6-v28r

PHPOffice PHPWord through 1.4.0 contains a path traversal vulnerability in Element\Image::getImageString() and Writer\AbstractWriter::addFi…

Published Dec 2, 2026 · Assigned by VulnCheck

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

VendorProductAffectedFixed
PHPOffice PHPWord 0 ≤1.4.0 —

References