CVE-2026-142202 PHPOffice PHPWord - Path Traversal

PHPOffice PHPWord <= 1.4.0 contains a path traversal vulnerability caused by improper handling of crafted zip entry names in Element\Image::getImageString() and Writer\AbstractWriter::addFileToPackage(), letting attackers read and delete arbitrary files via ../ sequences in docx image relationships, exploit requires crafted docx submission.

CVSS base score 8.3 /10
High
CISA KEV
Not listed
Public exploit
None known
Authentication
Required
View the NVD record ↗

Details

Type
Path Traversal
Impact
File System Read, File System Write, Information Disclosure
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H
Published
2 December 2026
Updated
3 December 2026
Weakness
CWE-22

Vendor fix

Update to a version later than 1.4.0 or the latest available version.

Patching closes this CVE. It does not tell you which of your systems run the affected version, or what else is exposed alongside them.

References

← All CVEs