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.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
No mitigations published for this CVE yet.
The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or — if you've already worked around this in production — publish your fix to the community-verified tier.
Propose a mitigation on Community Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here withsource_tier=community-verified.
References
- https://github.com/PHPOffice/PHPWord/blob/1.4.0/src/PhpWord/Element/Image.php#L341-L400
- https://github.com/PHPOffice/PHPWord/blob/1.4.0/src/PhpWord/Writer/AbstractWriter.php#L366-L388
- https://www.vulncheck.com/advisories/phpoffice-phpword-through-1.4.0-path-traversal-via-zip-entry-names-in-image-handling
CWEs
CWE-22
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.