AploSec / Disclosures / CVE-2026-142202
PHPOffice PHPWord through 1.4.0 Path Traversal via Zip Entry Names in Image Handling
CVE-2026-142202 · published 2026-12-02
In plain words: this type of bug lets someone read or write files outside the folder they should be limited to (path traversal). No fixed release is listed yet.
Summary
CVE-2026-142202 affects PHPWord (Packagist) <= 1.4.0: Path Traversal via Zip Entry Names in Image Handling (CWE-22). No fixed release is listed. CVSS 4.0 base score 7.2 (High), assigned by VulnCheck. Published 2026-12-02 by VulnCheck. Credit: Zachariah Mithani (AploSec).
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.
Evidence
Reported to the maintainer. The public advisory and references below describe the evidence and preconditions; reporting status alone does not establish independent reproduction.
Remediation
No fixed release is listed in the advisory. Check the references for upstream status.
References
- VulnCheck advisoryhttps://www.vulncheck.com/advisories/phpoffice-phpword-through-1.4.0-path-traversal-via-zip-entry-names-in-image-handling
- Vulnerable codehttps://github.com/PHPOffice/PHPWord/blob/1.4.0/src/PhpWord/Element/Image.php#L341-L400
- Vulnerable codehttps://github.com/PHPOffice/PHPWord/blob/1.4.0/src/PhpWord/Writer/AbstractWriter.php#L366-L388
- CVE recordhttps://www.cve.org/CVERecord?id=CVE-2026-142202
- Severity
- High 7.2CVSS 4.0, scored by VulnCheck in the CVE record
- Package
- PHPWord
- Ecosystem
- Packagist
- Affected
- <= 1.4.0
- Fixed
- None
- Weakness
- CWE-22
- CNA
- VulnCheck
- Credit
- Zachariah Mithani (AploSec)finder