Skip to main content

PHPOffice PHPWord EUVDEUVD-2026-141626

| CVE-2026-142204 MEDIUM
Loop with Unreachable Exit Condition (Infinite Loop) (CWE-835)
2026-12-02 VulnCheck GHSA-rpm9-8xm2-mfrp
6.9
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Submit crafted legacy .doc to parser
  2. Exploit
    Cyclic OLE sector chain followed in OLERead
  3. Impact
    Loop exhausts CPU and PHP memory

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Loop termination conditions
MITRE ATT&CK

1 technique across 1 tactic: Impact

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the target application to load and parse an attacker-supplied legacy .doc (OLE compound) file through PHPWord's MsDoc reader (e.g., IOFactory loading with the MsDoc reader); the crafted file must contain a sector chain that points back to an earlier sector to form a cycle. Limiting factors: the application must accept and process untrusted .doc uploads via this specific reader path (applications that only handle .docx or never ingest user-supplied documents are not exposed), and the practical blast radius is bounded by PHP's memory_limit and max_execution_time settings, which typically convert the infinite loop into a crash or timeout of the single handling worker/request rather than a full host outage - though repeated submissions can still degrade service.

Impact

This is a medium-severity denial-of-service issue (CVSS 4.0 base 6.9, vector AV:N/AC:L/AT:N/PR:N/UI:N with VA:L as the only impact). The vector indicates remote, low-complexity, unauthenticated triggering with no attack requirements, and PR:N confirms no authentication is needed to reach the vulnerable code. However, the real-world ceiling is bounded: confidentiality and integrity impact are both None (VC:N/VI:N), and availability impact is only Low (VA:L), consistent with CWE-835 (infinite loop) rather than memory corruption or code execution. The decision label is 'this_month' (not act_now/emergency), it is NOT listed in CISA KEV, and no EPSS score was supplied in the input. No working exploit code is referenced - the available references are the VulnCheck advisory and two source-code line ranges in OLERead.php, not a published PoC exploit. Net assessment: a legitimate but non-urgent availability bug. It becomes a priority only in deployments that actually parse attacker-supplied legacy .doc files through PHPWord's MsDoc reader; the overall priority signals (no KEV, this_month label, DoS-only impact) argue against treating this as a high-real-risk emergency despite the network/unauthenticated vector.

Exploit ScenarioDerived

An attacker uploads or submits a crafted legacy .doc (OLE compound) file to a PHP application that uses PHPWord's MsDoc reader to parse Word documents. The file contains a sector chain whose pointers form a cycle, so when OLERead's read()/getStream()/readData() follow the chain they loop indefinitely, pinning CPU and exhausting the worker's PHP memory. No public working exploit code is identified, but the VulnCheck advisory documents the flaw and the vulnerable code locations are public, lowering the barrier to reproduction.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.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

Denial of service in PHPOffice PHPWord through 1.4.0 is triggered when an application loads an attacker-supplied legacy .doc file through the MsDoc reader: a crafted OLE compound file whose sector chain points back to an earlier sector sends Shared\OLERead::read(), getStream() and readData() into a non-terminating loop that consumes PHP memory or CPU. The CVSS 4.0 vector is network-reachable, low complexity and unauthenticated (AV:N/AC:L/AT:N/PR:N/UI:N) with availability as the only impact (VA:L), consistent with the independent assessment's CVSS 3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L; exposure requires the target to parse untrusted .doc input, and PHP memory_limit and max_execution_time settings typically bound the effect to the handling request or worker. No CISA KEV entry or public exploit code was identified at time of analysis, and the priority label is this_month.

RemediationAI

No vendor-released patch or fixed version is identified in the available intelligence: the record covers PHPWord through 1.4.0 and points to code in the 1.4.0 tree, so track the PHPOffice PHPWord project for a release after 1.4.0 that corrects OLERead sector-chain handling and upgrade when one is published, using the VulnCheck advisory at https://www.vulncheck.com/advisories/phpword-through-1.4.0-denial-of-service-via-cyclic-ole-sector-chains-in-oleread as the reference. Until then, stop feeding untrusted legacy .doc files to the MsDoc reader: restrict uploads to .docx or otherwise allowlist document types at the application boundary and reject or quarantine OLE compound files, with the trade-off that legacy .doc support is lost. Where .doc must be processed, do it in an isolated worker with a hard max_execution_time and a low memory_limit so a cyclic sector chain ends as a failed request rather than consuming shared capacity; this converts the denial of service into a single-request failure and may reject large legitimate documents. Teams maintaining a fork can add OLE sector-chain validation before calling read()/getStream(), such as bounding chain hops and rejecting repeated sectors, at the cost of custom maintenance. The this_month priority label supports scheduling these changes in the current monthly cycle rather than an emergency response.

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's MsDoc reader relies on Shared\OLERead to parse OLE2/Compound File Binary containers used by legacy .doc files. In that format, data is held in sectors linked through a FAT chain, and OLERead follows the chain to locate and read the file's streams. The 1.4.0 code at src/PhpWord/Shared/OLERead.php lines 159-169 and 215-246 (read(), getStream(), readData()) does not detect a sector that points back to an earlier sector, so a cyclic chain makes the walk non-terminating - CWE-835, Infinite Loop. This is a parsing and validation failure in the OLE reader path rather than a memory-safety flaw; the supplied sources show no code execution, data disclosure or integrity impact, matching the CVSS 4.0 vector whose only impact metric is VA:L. The affected codebase is defined by CPE cpe:2.3:a:phpoffice:phpword:*:*:*:*:*:*:*:* and the EUVD range PHPWord 0 ≤1.4.0. How a given SAPI or deployment converts the loop into a request timeout versus a worker crash depends on PHP memory_limit and max_execution_time; that behavior is not verified in the available sources, and the trigger is the crafted cyclic sector chain described above.

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 6.9 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
vuln.today AI 5.3 MEDIUM

Remote unauthenticated submission of a crafted file triggers an infinite loop with no auth or interaction needed; only partial availability impact (worker CPU/memory exhaustion), so C:N/I:N/A:L.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/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
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

PHPOffice PHPWord through 1.4.0 contains an infinite loop vulnerability in Shared\OLERead that allows attackers to cause denial of service by supplying crafted legacy .doc files with cyclic sector chains. Attackers can submit an OLE compound file whose sector chain points back to an earlier sector, causing read(), getStream() and readData() to loop indefinitely and exhaust PHP memory or CPU when loaded by the MsDoc reader.

Threat Intelligence Overview

Prevalence
High
widely-used PHP library for Word document processing, large Composer footprint
Data Quality
4 sources
Confidence: Medium

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 MEDIUM
CISA KEV No
Public POC No
EPSS N/A
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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
Yes
Human Impact· derived
Medium

Priority Score

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

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

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