---
title: "CVE-2026-142202: PHPOffice PHPWord - Path Traversal"
description: "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."
url: https://panop.io/threat-heartbeat/CVE-2026-142202/
---

# 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 ↗](https://nvd.nist.gov/vuln/detail/CVE-2026-142202)

## 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](https://cwe.mitre.org/data/definitions/22.html)

## 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

- [https://nvd.nist.gov/vuln/detail/CVE-2026-142202](https://nvd.nist.gov/vuln/detail/CVE-2026-142202)
- [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/Element/Image.php#L341-L400)
- [https://github.com/PHPOffice/PHPWord/blob/1.4.0/src/PhpWord/Writer/AbstractWriter.php#L366-L388](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](https://www.vulncheck.com/advisories/phpoffice-phpword-through-1.4.0-path-traversal-via-zip-entry-names-in-image-handling)

[← All CVEs](https://panop.io/threat-heartbeat/)

## What this record can't tell you

- Whether you run the affected software, and where
- Whether an attacker can actually reach and exploit it
- The misconfigurations that never get a CVE number
- What it would cost the business, ranked into what to fix first

Panop answers these inside your environment, for this CVE and every other finding.

[Book a demo](https://panop.io/demo)
