Description
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 products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| PHPOffice | PHPWord | ≤ 1.4.0 | — |
References
- https://github.com/PHPOffice/PHPWord/blob/1.4.0/src/PhpWord/Shared/OLERead.php#L159-L169 technical-description
- https://github.com/PHPOffice/PHPWord/blob/1.4.0/src/PhpWord/Shared/OLERead.php#L215-L246 technical-description
- VulnCheck Advisory: PHPWord through 1.4.0 Denial of Service via Cyclic OLE Sector Chains in OLERead third-party-advisory