CVE-2026-142202: Vulnerability in PHPOffice PHPWord
Patch soon. 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...
CWE-22
- Exploitation
- None confirmed
- Severity
- 8.3 of 10
- Attack likelihood
- Unknown
- Fix
- None recorded
- Patch deadline
- No deadline set
Details
- Advisory ID
- GHSA-hg8g-jhj6-v28r
- Vector
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H
- Weakness
- CWE-22
- Published
- 2 Dec 2026
- Last change
- 4 Dec 2026
Affected products
Affected versions and the first fixed release
- PHPOffice PHPWord Through 1.4.0; Version 0 ≤1.4.0. No fixed version recorded
Advisories
Vendor and security advisories
- github.com/PHPOffice/PHPWord/blob/1.4.0/src/PhpWord/Element/Image.php
- github.com/PHPOffice/PHPWord/blob/1.4.0/src/PhpWord/Writer/AbstractWriter.php
- vulncheck.com/advisories/phpoffice-phpword-through-1.4.0-path-traversal-via-zip-entry-n...
Related
- PHPWord vulnerabilities Recent advisories, watch this product