Exploited now
Vulnerability WatchVulnerabilities, exploits & advisories — updated every 15 minutes
Alerts

Home › CVE › Web

CVE-2026-142202 — PHPOffice PHPWord

High · CVSS 7.2EPSS 0.7% First seen December 02, 2026

One of 3 PHPOffice PHPWord vulnerabilities published together by NVD: our article covers all of them.

WebVulnerabilities

Summary

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.

Description: NIST National Vulnerability Database (public domain)

Severity breakdown

High · 7.2 CVSS 4.0 base score from the CNA (vulncheck.com)

An attacker with a normal user account can exploit this over the network, without any user action.

Attack from
the network (remotely)
Attack complexity
low (no special conditions)
Special conditions
none
Login needed
yes, a normal user account
User action needed
no
Impact
high on confidentiality and availability, low on integrity
Impact on other systems
none

Vector CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:L/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X · CVSS 3.1 8.3 from the CNA (vulncheck.com): CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Affected and fixed versions

ProductAffected versionsFixed in
PHPOffice PHPWord≤ 1.4.0—

From the vendor's CVE record; confirm with the vendor advisory before relying on a version number.

References by type

Other references

Details from NVD (public domain).

Affected

  • PHPOffice PHPWord

What to do

  • Check whether you run an affected product or version and apply the vendor's update or mitigation.
  • Follow the vendor advisory and the references below for fixed versions and workarounds.

Frequently asked questions

What is 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 arbitrary files via crafted zip entry names. Weakness type: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') (CWE-22).

How severe is CVE-2026-142202?

CVE-2026-142202 has a CVSS 4.0 base score of 7.2 (high), from the CNA (vulncheck.com). An attacker with a normal user account can exploit this over the network, without any user action.

Is CVE-2026-142202 being exploited?

Not as far as is known: CVE-2026-142202 is not in CISA's Known Exploited Vulnerabilities catalog as of December 3, 2026. EPSS estimates a 0.7% chance that it is exploited in the next 30 days.

Which versions are affected by CVE-2026-142202?

PHPOffice PHPWord ≤ 1.4.0.

How do I fix CVE-2026-142202?

Follow the advisories and patches linked on this page under References for fixed versions and workarounds.

Timeline & sources

References