ZeroDay Brief
Happy holidays from ZeroDay Brief!
CVE-2026-142202

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 arbit…

CVSS
8.3High
Chance of exploitation (EPSS)
0.68%
Published
Dec 2, 2026
In the news
Not yet
More from this vendor

What to do

A serious path traversal flaw in Phpoffice Phpword that can be attacked over the network by someone with an account. No attacks are reported yet; it can go in your normal patch cycle.

Action: Check the vendor's advisory in the references and apply updates as soon as they are available.

Affected versions
Phpoffice Phpword
Through 1.4.0

Description

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.

CWE-22

Affected products

Get alerts for these →

Timeline 1

Latest change: CVE-2026-142202 published (CVSS 8.3) (Dec 2, 2026)

News, advisories, exploit code, scanner detection and exploitation, newest first.

Wed, Dec 2, 2026

  1. CVECVE-2026-142202 published (CVSS 8.3)CVE Program · 17:17 UTC

References 3

  • github.com /PHPOffice/PHPWord/blob/1.4.0/src/PhpWord/Element/Image.php#L341-L400
  • github.com /PHPOffice/PHPWord/blob/1.4.0/src/PhpWord/Writer/AbstractWriter.php#L366-L388
  • www.vulncheck.com /advisories/phpoffice-phpword-through-1.4.0-path-traversal-via-zip-entry-names-in-image-handling

You are leaving ZeroDay Brief

This link goes to exploit code on a third-party site. We find these links automatically and do not test, review or vouch for them. They may contain malware or fake exploits.

We are not responsible for anything that happens if you open the page or run its code. Never run exploit code on systems you care about.

↑ ↓ moveEnter openEsc closeTry “CVE-2026”, “fortinet” or “ivanti”