All vulnerabilities

Packagist

CVE-2026-142202

PHPOffice PHPWord through 1.4.0 Path Traversal via Zip Entry Names in Image Handling

Severity
High 7.2
Published
2 Dec 2026
Last changed
2 Dec 2026
Added to UpHeron
2 Dec 2026
Weakness
Path traversal (CWE-22)
Attack
Over the network · Needs a user account · No user action needed
Attacker can
Read data · Change some data · Take it down
CVSS 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
Sources
CVE Program

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.

From the CVE Program.

Affected software

SoftwareAffected versions
phpoffice/phpwordPackagist · osv:Packagist:phpoffice/phpword
  • Every version up to 1.4.0

About phpoffice/phpword

Monthly downloads (Packagist)
3,572,648Packagist, 2 Dec 2026
Total downloads (Packagist)
52,050,198Packagist, 2 Dec 2026

Vulnerabilities in phpoffice/phpword

In our list
3
Published in the last 12 months
3
Critical, last 12 months
0
High, last 12 months
1
Known exploited
0
Search the list for phpoffice/phpword

References

  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-142202