CVE-2026-142204: PHPWord through 1.4.0 Denial of Service via Cyclic OLE Sector Chains in OLERead
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.
Affected Software
Event History
Frequently Asked Questions
Who is exposed to this issue?
Applications using composer/phpoffice/phpword through 1.4.0 are exposed when they load attacker-controlled legacy .doc files through the MsDoc reader. This is especially relevant where users or external systems can submit documents for processing.
What does an attacker need to exploit it?
An attacker only needs to provide a crafted OLE compound .doc file containing a cyclic sector chain. No authentication or user interaction is required according to the supplied severity vector.
Are default deployments affected?
The issue is triggered when the MsDoc reader loads a crafted legacy .doc file. The provided data does not establish whether that reader is enabled or invoked by default in a particular application.
How can I tell whether an application may be affected?
Identify whether the application uses PHPWord through version 1.4.0 and processes legacy .doc files with the MsDoc reader. Affected processing may hang in OLERead read(), getStream(), or readData() and consume excessive CPU or PHP memory.