CVE-2026-142202: PHPOffice PHPWord through 1.4.0 Path Traversal via Zip Entry Names in Image Handling

Published Dec 2, 2026
·
Updated

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.

Affected Software

1 affected component
composer/phpoffice/phpword<=1.4.0

Event History

Dec 2, 2026
CVE Published
via MITRE·04:50 PM
Data Sourced
via MITRE·04:50 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·05:17 PM
DescriptionSeverityWeakness
Event
via NVD·05:17 PM

Frequently Asked Questions

1

Who is exposed to this issue?

Applications using composer/phpoffice/phpword through version 1.4.0 are exposed when they process attacker-supplied DOCX files. The attacker must be able to submit a crafted document for processing.

2

What does an attacker need to include in a malicious document?

The DOCX must contain image relationship targets and ZIP entry names with ../ sequences. These traversal sequences are used during image handling and package creation.

3

What is the practical impact on the server?

A successful attack can expose arbitrary server files in converted output and delete files that are writable by the web server. The deletion capability is limited by the web server process's write permissions.

4

How can suspicious input documents be identified?

Inspect DOCX ZIP contents and image relationship targets for ../ path-traversal sequences. Such sequences in image-related ZIP entry names or relationship targets are indicators of an attempted exploit.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203