Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate and submit crafted docx
-
ExploitPHPWord parses zip entry/relationship names
-
ExecutionPath traversal via ../ sequences
-
ImpactRead server files in output and delete web-writable files
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK
2 techniques across 2 tactics: Discovery, Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires that the target application use PHPOffice PHPWord (<= 1.4.0) to open, parse, or convert attacker-supplied .docx files, and that the attacker can submit such a file - the CVSS PR:L indicates some authentication/privilege is needed, so this is not anonymous remote exploitation. The specific trigger is a crafted .docx whose image relationship targets and zip entry names contain ../ traversal sequences, processed by Element\Image::getImageString() and Writer\AbstractWriter::addFileToPackage(). Limiting factors: the application must actually ingest and process untrusted documents (not a default-on network service), the attacker needs upload/submission access, arbitrary deletion is bounded to files writable by the web-server user, and file read is bounded to what that process can access. Applications that never parse untrusted documents are not exposed. |
| Impact | This is a genuine, prioritizable issue but not an emergency. The vuln.today priority is 'this_week' (not act_now/emergency), consistent with a High-severity flaw lacking confirmed active exploitation. The provided CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N) scores 7.2 and shows a network-reachable, low-complexity attack that nonetheless requires low privileges (PR:L) - i.e., the attacker must be an authenticated or otherwise permitted user able to submit a document, not an anonymous internet attacker. Impact is asymmetric: VC:H reflects arbitrary file read (information disclosure of server files), VA:H reflects arbitrary file deletion (availability loss on files writable by the web server), while VI:L reflects limited integrity impact. No EPSS score is provided, so statistical exploitation likelihood cannot be quantified. There is no KEV listing and no SSVC exploitation-status data in the input, so exploitation must be treated as not-yet-observed. No confirmed working exploit code is present - the references are vendor advisory and source-code line pointers, not a PoC. Net: a real, patch-this-week library vulnerability whose practical risk hinges on whether an application exposes PHPWord document parsing/conversion to untrusted users; where it does, confidentiality and availability exposure is significant. |
| Exploit ScenarioDerived | A web application lets authenticated users upload .docx files that it converts or renders using PHPOffice PHPWord. An attacker uploads a crafted .docx whose image relationship targets and internal zip entry names contain ../ sequences; when PHPWord processes it, server files are exposed in the converted output and files writable by the web server are unlinked. No public working exploit code was identified at time of analysis, though VulnCheck has published an advisory with source-code references. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Dec 02, 2026
Path traversal in PHPWord through 1.4.0 allows an attacker with document-submission privileges to read server files into converted output and delete files writable by the web server by supplying a crafted .docx whose image relationship targets and zip entry names contain ../ sequences. The flaw is in Element\Image::getImageString() and Writer\AbstractWriter::addFileToPackage(), requires some privileges (CVSS PR:L), and is not anonymous remote exploitation. No public exploit was identified at time of analysis, and the issue is prioritizable but not an emergency.
RemediationAI
No vendor-released patch was identified at time of analysis; track the VulnCheck advisory (https://www.vulncheck.com/advisories/phpoffice-phpword-through-1.4.0-path-traversal-via-zip-entry-names-in-image-handling) and the PHPWord repository for a fixed release. Until a patch is available, avoid passing untrusted .docx files to PHPWord; if that is not possible, reject documents whose zip entry names or image relationship targets contain ../ sequences or absolute paths before processing, and canonicalize resolved paths to ensure they remain inside the intended extraction/conversion directory. Run the PHP process under a low-privilege account with write access confined to a dedicated temporary directory so arbitrary deletion is bounded to files writable by that user, and consider isolating document conversion in a container or sandbox with restricted filesystem access. These controls can reject malformed but legitimate documents and add operational overhead.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
PHPWord is a PHP library for reading and writing Office Open XML .docx files, which are ZIP packages containing XML parts and relationships. CWE-22 path traversal arises because Element\Image::getImageString() and Writer\AbstractWriter::addFileToPackage() use attacker-controlled zip entry names and image relationship targets without neutralizing ../ sequences before filesystem access. A crafted .docx can therefore cause PHPWord to read files outside the intended directory into converted output and to unlink files writable by the PHP process. The CPE cpe:2.3:a:phpoffice:phpword:*:*:*:*:*:*:*:* covers PHPWord through 1.4.0; exposure depends on an application actually ingesting untrusted documents, since PHPWord is a library rather than a default-on network service. The trigger is a crafted .docx submitted to such an application.
Know when Phpword gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Network-submitted malicious docx needs a permitted/authenticated submitter (PR:L) and no special complexity (AC:L); arbitrary read gives C:H and web-writable file deletion gives A:H with limited integrity (I:L).
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
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.
Executive ViewAI
CVE-2026-142202 in PHPWord through 1.4.0 enables an authenticated attacker with document-submission privileges to read arbitrary server files and delete files writable by the web server via a crafted .docx. This threatens the confidentiality and integrity of backend data for organizations using PHPWord to process user-submitted documents, though the privilege requirement reduces exposure to trusted or semi-trusted users.
No vendor-released patch identified at time of analysis. Interim mitigations: enforce least-privilege execution for PHPWord conversion processes, restrict filesystem access to temporary directories, validate .docx archives to reject path traversal sequences, limit document-submission privileges to trusted users, and monitor for unauthorized file access or deletion.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
Server-side request forgery in PHPOffice PHPWord through 1.4.0 allows unauthenticated remote attackers to make the serve
Denial of service in PHPOffice PHPWord through 1.4.0 is triggered when an application loads an attacker-supplied legacy
EUVD-2026-141628
GHSA-hg8g-jhj6-v28r
NVD
CVE.org
Exploit-DB