cvelo
P2 · HighCVSS 8.3EPSS 0.7%

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

  • CVE-2026-142202
  • GHSA-hg8g-jhj6-v28r
  • EUVD-2026-141628

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.

Text from the CVE.org record.

Recommendation

No source states a fixed version. Check the vendor advisory.

Affected

  • PHPOffice PHPWord

    Affected versionsFixed in
    up to 1.4.0none stated

Product versions from the CVE.org record.

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.