Optimole 4.2.19以下 - 添付ファイルの名前変更時の'comment_content'/'comment_agent'パラメーターを介した、認証不要のPHPオブジェクトインジェクションによる任意のファイル削除
元情報の公開:2026/11/14 00:51 / 元情報の更新:2026/11/14 13:46(日本時間)
日本語訳
WordPress用プラグイン「Optimole – Optimize Images | Convert WebP & AVIF | CDN & Lazy Load | Image Optimization」の4.2.19以下のすべてのバージョンには、replace_urls_in_value関数でファイルパスの検証が不十分なため、任意のファイル削除の脆弱性があります。これにより、認証されていない攻撃者はサーバー上の任意のファイルを削除でき、wp-config.phpなど特定のファイルが削除された場合には、容易にリモートコード実行につながる可能性があります。
悪用が成功するには、ホスト上にPEARのArchive_Tarライブラリが存在し、読み込み可能である必要があります。これは、公式WordPress Dockerイメージや多くのPHPディストリビューションで一般的な構成です。また、攻撃者がコメントに悪意あるペイロードを仕込んだ後、管理者がいずれかの添付ファイルに対してプラグインのRename操作を行う必要があります。悪用の成功には管理者による操作も必要であり、攻撃者だけではこの脆弱性を発動できません。
原文(英語)
Optimole <= 4.2.19 - Unauthenticated PHP Object Injection to Arbitrary File Deletion via 'comment_content'/'comment_agent' Parameter during Attachment Rename
The Optimole – Optimize Images | Convert WebP & AVIF | CDN & Lazy Load | Image Optimization plugin for WordPress is vulnerable to arbitrary file deletion due to insufficient file path validation in the replace_urls_in_value function in all versions up to, and including, 4.2.19. This makes it possible for unauthenticated attackers to delete arbitrary files on the server, which can easily lead to remote code execution when the right file is deleted (such as wp-config.php). Successful exploitation requires PEAR's Archive_Tar library to be present and loadable on the host (common in official WordPress Docker images and many PHP distributions), and an administrator must subsequently use the plugin's Rename control on any attachment after the attacker has staged a malicious payload in a comment. Successful exploitation additionally requires an action by an administrator — the attacker cannot trigger the vulnerability on their own.
引用元:Wordfence
確認と対応の進め方
WordPress管理画面の「プラグイン」→「インストール済みプラグイン」で、対象製品の名前とバージョンを確認してください。
影響バージョンに該当する場合は、バックアップを確認し、「ダッシュボード」→「更新」から対象製品を更新してください。更新後は、記事に記載した修正版になっていることと、サイトの表示・機能を確認してください。
更新が表示されない場合は、製品の提供元で更新情報と更新方法を確認してください。