Skip to main content

PHPWord CVE-2026-142202

| EUVDEUVD-2026-141628 HIGH
Path Traversal (CWE-22)
2026-12-02 VulnCheck GHSA-hg8g-jhj6-v28r
7.2
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate and submit crafted docx
  2. Exploit
    PHPWord parses zip entry/relationship names
  3. Execution
    Path traversal via ../ sequences
  4. Impact
    Read 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

PHPWord 0 ≤1.4.0

Affected Packages

euvd phpword no fix

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

Vendor (VulnCheck) PRIMARY 7.2 HIGH
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
vuln.today AI 8.3 HIGH

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).

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:L/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
Low
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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

Why It Matters

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.

Business Impact: Medium
Compensating Controls

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

Prevalence
Medium
very popular PHP document library, but embedded only where docx parsing is exposed
Data Quality
3 sources
Confidence: Low

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS N/A
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
Medium

Priority Score

36
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +36
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy