PHPWordに経路トラバーサルの脆弱性、細工したdocxでサーバー上のファイルを読み取り・削除される
Summary
PHPWordの1.4.0以前には、画像処理で経路トラバーサルの脆弱性が見つかりました。細工したdocxを読み込ませると、サーバー上の任意のファイルを読み取られたり、Webサーバーが書き込める場合は削除されたりするおそれがあります。CVSSv3は8.3、CVSSv4は7.2で、修正版の情報は確認できていないため、最新の情報を確認してください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
PHPWordの1.4.0以前には、画像処理で経路トラバーサルの脆弱性が見つかりました。細工したdocxを読み込ませると、サーバー上の任意のファイルを読み取られたり、Webサーバーが書き込める場合は削除されたりするおそれがあります。CVSSv3は8.3、CVSSv4は7.2で、修正版の情報は確認できていないため、最新の情報を確認してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| PHPOfficePHPWord |
≤ 1.4.0→ Not listed |
Not listed |
This record does not list fixed versions. Check the article or the vendor advisory in the references for whether and where it is fixed.
Original description The description as published by the source.
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.
Source: CVE.org (CVE Program・cvelistV5) NVD