{"id":"CVE-2026-142202","aliases":["EUVD-2026-141628","GHSA-hg8g-jhj6-v28r"],"status":"published","title":"PHPOffice PHPWord through 1.4.0 Path Traversal via Zip Entry Names in Image Handling","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.","severity":{"version":"4.0","score":7.2,"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","level":"high","assessor":"cna","from":"cve","others":[{"version":"3.1","score":8.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H","level":"high","assessor":"cna","from":"cve"},{"version":"4.0","score":7.2,"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","level":"high","from":"ghsa"}]},"epss":{"day":"2026-12-04","score":0.00684,"percentile":0.53976,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-22"],"published":"2026-12-02T16:50:46Z","modified":"2026-12-04T16:29:40Z","products":[{"vendor":"phpoffice","product":"phpword"}],"references":[{"url":"https://github.com/PHPOffice/PHPWord/blob/1.4.0/src/PhpWord/Element/Image.php#L341-L400","tags":["technical-description","article"]},{"url":"https://github.com/PHPOffice/PHPWord/blob/1.4.0/src/PhpWord/Writer/AbstractWriter.php#L366-L388","tags":["technical-description","article"]},{"url":"https://www.vulncheck.com/advisories/phpoffice-phpword-through-1.4.0-path-traversal-via-zip-entry-names-in-image-handling","tags":["third-party-advisory","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-142202","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-hg8g-jhj6-v28r"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142202.json","tags":["advisory"]},{"url":"https://github.com/PHPOffice/PHPWord","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2026-142202","title":"PHPOffice PHPWord through 1.4.0 Path Traversal via Zip Entry Names in Image Handling","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.","status":"published","published":"2026-12-02T16:50:46.96Z","modified":"2026-12-02T22:46:03.558Z","cvss":[{"version":"4.0","score":7.2,"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","level":"high","assessor":"cna"},{"version":"3.1","score":8.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H","level":"high","assessor":"cna"}],"cwes":["CWE-22"],"ssvc":{"exploitation":"none","automatable":"no","technical_impact":"partial","date":"2026-12-02"},"updated_at":"2026-12-02T22:52:17.648155Z"}],"euvd":[{"id":"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.","status":"published","published":"2026-12-02T16:50:46Z","modified":"2026-12-02T22:46:03Z","cvss":[{"version":"4.0","score":7.2,"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","level":"high"}],"updated_at":"2026-12-02T21:27:23.327078Z"}],"ghsa":[{"id":"GHSA-hg8g-jhj6-v28r","title":"PHPOffice PHPWord through 1.4.0 contains a path traversal vulnerability in Element\\Image:...","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.","status":"published","published":"2026-12-02T18:31:45Z","modified":"2026-12-02T18:31:52Z","cvss":[{"version":"4.0","score":7.2,"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","level":"high"},{"version":"3.1","score":8.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H","level":"high"}],"cwes":["CWE-22"],"updated_at":"2026-12-02T18:38:43.855074Z"}],"nvd":[{"id":"CVE-2026-142202","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.","status":"published","published":"2026-12-02T17:17:41.913Z","modified":"2026-12-04T16:29:40.94Z","cvss":[{"version":"4.0","score":7.2,"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","level":"high","assessor":"secondary"},{"version":"3.1","score":8.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H","level":"high","assessor":"secondary"}],"cwes":["CWE-22"],"ssvc":{"exploitation":"none","automatable":"no","technical_impact":"partial","date":"2026-12-02"},"updated_at":"2026-12-02T23:19:38.051602Z"}],"osv":[{"id":"CVE-2026-142202","title":"PHPOffice PHPWord through 1.4.0 Path Traversal via Zip Entry Names in Image Handling","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.","status":"published","published":"2026-12-02T16:50:46.96Z","modified":"2026-12-03T21:02:04.558133554Z","cvss":[{"version":"4.0","score":7.2,"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","level":"high"}],"cwes":["CWE-22"],"updated_at":"2026-12-03T21:10:05.302032Z"}]}}
