WordPress の PHP2Shell 対策には PHP 実行環境の修正が必要です。アプリのバージョンは互換性の調査に役立ちますが、悪用の可否や両 CVE の修正を証明するものではありません。
WordPress - PHP2Shell 修正に必要な PHP 互換性
| 対象リリース例 | 宣言されたPHP要件 | 宣言に一致する修正候補 | 原典 |
|---|---|---|---|
| 6.9 | >=7.2.24 | raw.githubusercontent.com ↗ | |
| 6.8 | >=7.2.24 | raw.githubusercontent.com ↗ | |
| 6.7 | >=7.2.24 | raw.githubusercontent.com ↗ | |
| 6.6 | >=7.2.24 | raw.githubusercontent.com ↗ | |
| 6.5 | >=7.0.0 | raw.githubusercontent.com ↗ | |
| 6.4 | >=7.0.0 | raw.githubusercontent.com ↗ | |
| 6.3 | >=7.0.0 | raw.githubusercontent.com ↗ | |
| 6.2 | >=5.6.20 | raw.githubusercontent.com ↗ | |
| 5.9 | >=5.6.20 | raw.githubusercontent.com ↗ | |
| 5.8 | >=5.6.20 | raw.githubusercontent.com ↗ | |
| 4.9 | >=5.2.4 | raw.githubusercontent.com ↗ |
候補は、この宣言とサポート対象ブランチの最初の PHP2Shell 修正版を照合しただけです。動作確認、ベンダーのサポート、全依存関係の適合を保証しません。 PHP2Shell 修正に必要な PHP 互換性 ↗
PHP2Shell 対策の対象を確認
ファイルとパッケージ識別
wp-includes/version.phpwp-content/plugins/wp-content/themes/
WordPress - PHP2Shell 修正を妨げる互換性の問題
WordPress 本体、テーマ、プラグインには別々の PHP 要件があります。サイトヘルスや version.php で版を確認し、子テーマ、mu-plugins、drop-ins も調査します。コピーを更新してから Web PHP を変更してください。古い最低条件はサポート終了 PHP の推奨ではありません。
依存関係と独自コード
公式更新ドキュメント ↗WordPress - PHP2Shell 修正に必要な PHP 互換性 ↗PHP2Shell 修正後の業務機能テスト
PHP2Shell 修正前の読み取り専用調査
コマンド例
php -v
php --ini
php -mWordPress - PHP2Shell修正の確認
実際にこのサイトを処理する PHP で両方の修正を確認し、古い Web・キューのプロセスと全レプリカを交換または再起動します。トップページの表示や CLI の更新だけでは不十分です。
3. 全環境を再起動して検証 ↗