Unrated severityNVD Advisory· Published Dec 2, 2026
PHPOffice PHPWord through 1.4.0 Path Traversal via Zip Entry Names in Image Handling
CVE-2026-142202
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.
Patches
Vulnerability mechanics
References
3- www.vulncheck.com/advisories/phpoffice-phpword-through-1.4.0-path-traversal-via-zip-entry-names-in-image-handlingmitrethird-party-advisory
- github.com/PHPOffice/PHPWord/blob/1.4.0/src/PhpWord/Element/Image.phpmitretechnical-description
- github.com/PHPOffice/PHPWord/blob/1.4.0/src/PhpWord/Writer/AbstractWriter.phpmitretechnical-description
News mentions
0No linked articles in our index yet.