修正版ありGravity Forms

Gravity Forms 3.2.1以下 - 分割アップロードを介した認証不要の限定的ファイルアップロードによるリモートコード実行

元情報の公開:2026/11/11 09:00 / 元情報の更新:2026/11/21 03:55(日本時間)

日本語訳

WordPress用プラグイン「Gravity Forms」は、3.2.1以下のすべてのバージョンで、限定的なファイルアップロードの脆弱性があります。GFAsyncUpload::upload()の分割アップロードハンドラーが、拡張子をWordPressの許可されたファイル種類と照合する前に途中のチャンクをディスクへ書き込み、最後のチャンクまで最終的な種類チェックを延期することが原因です。認証されていない攻撃者が、.shtmlなどのプラグインの拒否リストにない拡張子のファイルを、フォームの一時アップロードディレクトリへ残せます。

Server-Side Includes(SSI)が有効なApacheサーバーでは、これを利用して機密ファイルを読み取ることができ、SSIのコマンド実行が許可されている環境では、サーバー上の任意のコマンドを実行できます。悪用には、許可する拡張子を制限していない複数ファイルアップロードフィールドを持つフォームと、フォームのアップロードディレクトリ名についての知識が必要です。このディレクトリ名はデフォルト設定では公開されません。

原文(英語)

Gravity Forms <= 3.2.1 - Unauthenticated Limited File Upload to Remote Code Execution via Chunked Uploads

The Gravity Forms plugin for WordPress is vulnerable to Limited File Upload in all versions up to, and including, 3.2.1. This is due to the chunked upload handler in GFAsyncUpload::upload() writing intermediate chunks to disk before validating the file extension against WordPress’s allowed file types, with the final type check deferred until the last chunk. This makes it possible for unauthenticated attackers to leave files with extensions absent from the plugin’s deny-list, such as .shtml, in the form’s temporary upload directory. On Apache servers with Server-Side Includes enabled, this can be leveraged to read sensitive files and, in environments where SSI command execution is permitted, to execute arbitrary commands on the server. Exploitation requires a form with a multi-file upload field that does not restrict allowed extensions, and knowledge of the form’s upload directory name, which is not exposed in default configurations.

引用元:Wordfence

確認と対応の進め方

WordPress管理画面の「プラグイン」→「インストール済みプラグイン」で、対象製品の名前とバージョンを確認してください。

影響バージョンに該当する場合は、バックアップを確認し、「ダッシュボード」→「更新」から対象製品を更新してください。更新後は、記事に記載した修正版になっていることと、サイトの表示・機能を確認してください。

更新が表示されない場合は、製品の提供元で更新情報と更新方法を確認してください。

プラグインの管理・更新方法(WordPress公式・日本語)

運営元KanriPressのサービス案内

サイトを守る備えを、今日から始めませんか。

「KanriPress WP Sakimori」は、ファイアウォールと仮想パッチで攻撃に備え、マルウェア検査と継続監視でサイトの異変を捉えます。毎日のバックアップで万一に備え、月次レポートで保護・監視の状況も確認。日々の管理負担を抑えながらWordPressを守る仕組みを、月額2,200円(税込)で導入できます。

サービス内容・料金を見る