{"id":"CVE-2026-142202","summary":"PHPOffice PHPWord through 1.4.0 Path Traversal via Zip Entry Names in Image Handling","details":"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.","modified":"2026-12-02T18:02:29.296453145Z","published":"2026-12-02T16:50:46.960Z","database_specific":{"cwe_ids":["CWE-22"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142202.json","cna_assigner":"VulnCheck"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142202.json"},{"type":"PACKAGE","url":"https://github.com/PHPOffice/PHPWord"},{"type":"ARTICLE","url":"https://github.com/PHPOffice/PHPWord/blob/1.4.0/src/PhpWord/Element/Image.php#L341-L400"},{"type":"ARTICLE","url":"https://github.com/PHPOffice/PHPWord/blob/1.4.0/src/PhpWord/Writer/AbstractWriter.php#L366-L388"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-142202"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/phpoffice-phpword-through-1.4.0-path-traversal-via-zip-entry-names-in-image-handling"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/phpoffice/phpword","events":[{"introduced":"0"},{"last_affected":"6d75328229bc93790b37e93741adf70646cea958"}],"database_specific":{"extracted_events":[{"strategy":"StandardRange","range":[{"introduced":"0"},{"last_affected":"1.4.0"}],"source":"AFFECTED_FIELD"}]}}],"versions":["1.4.0","1.3.0","1.2.0-beta.1","1.2.0","1.1.0","1.0.0","0.18.3","0.18.2","0.18.0","0.18.1","0.17.0","0.16.0","0.14.0","0.13.0","0.9.1","0.9.0","0.8.1","0.8.0","0.7.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-142202.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"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"}]}