CVE-2026-87902
この脆弱性で確認すること
- 対象製品
- WordPress
- WATRIXで確認できる範囲
- 無料診断で製品とバージョンを取得できた場合に、診断ルールの影響範囲と照合します。 設定条件の追加確認が必要です。 バージョンが隠されているサイトや、侵害の有無は別途調査が必要です。
- 情報の作成方法
- 公開済みの診断ルールと出典に基づく日本語解説
- 診断ルールの確認日
- 2026/10/23
この診断ルールは CVE-2026-87902・GHSA-7hp8-65ch-5whp をまとめて扱います。個別の影響範囲と修正版は、それぞれの公式出典でも確認してください。
情報整理:WATRIX合同会社。影響の確定や侵害の有無は、実際の版・設定・ログ等を確認して判断します。
診断対応・サービス更新の履歴
診断へ追加した時点の記録です。現在の照合可否は製品・バージョンの取得状況と、上記の確認範囲によります。
対応追加日:
WordPress 本体の脆弱性照合を追加
WATRIX GUIDE
影響する 条件と、 次に できる こと
バージョンが分かれば無料診断で照合WordPress
ページテンプレートを選ぶ処理(get_page_template)に、ログインしていない攻撃者が、有効なテーマの外にあるサーバ上の PHP ファイルを読み込ませられる脆弱性があります(CVE-2026-87902 / GHSA-7hp8-65ch-5whp)。テーマとサーバの条件がそろうと、サーバ上でプログラムを実行されるおそれがあります。テーマの条件に当てはまるのは Twenty Twelve・Twenty Fourteen・Neve・Hestia・Sydney などで、サーバの条件には PHP 8.5 より前の cPanel の初期設定と、Docker の公式の php イメージが当てはまります。2026年9月25日には米国 CISA が実際の攻撃を確認した脆弱性の一覧(KEV)に加えました。
WATRIXが確認した関連解説です。公開元の原典とは区別して掲載しています。
日本語解説の確認:2026/10/23
影響を確かめるには
- 使っている製品・バージョンが、公開元の示す影響範囲に入るか確認してください。
- 有効なテーマ(子テーマなら親テーマも)の直下に page- で始まるフォルダ(page-templates など)がないかと、PHP の register_argc_argv が On になっていないかを調べてください
対処の進め方
- 至急、WordPress 本体を最新版へ更新してください。この脆弱性は 7.1.2 で修正され、古い系列にも 4.7 系まで修正版(7.0.6 / 6.9.9 / 6.8.10 など)が出ています。攻撃が始まっているため、更新のあとも、見覚えのない PHP ファイルや管理者アカウントが増えていないかを調べてください
WATRIXでの確認方法
無料診断で製品とバージョンを取得できた場合に、診断ルールの影響範囲と照合します。 設定条件の追加確認が必要です。 バージョンが隠されているサイトや、侵害の有無は別途調査が必要です。
無料診断は外から確認できる範囲が対象です。個別の調査・復旧は、状況と対応範囲を確認してご案内します。
このCVEを参照する公開記事
Patchstack・WPScanの公式ブログRSSから、見出し・URL・公表日などを記録しています。記事本文は保存・転載していません。記事中のCVE参照は、同じ脆弱性の別名とは分けて扱います。
Patchstack公式記事 · 公表 2026/09/23 · 取得 2026/11/01 9:22
出典・著作権・ライセンスを確認する
- CVSS
- 8.1
- 公開元の公表日時
- 2026/09/22 9:00
- 公開元の更新日時
- 2026/09/23 3:57
- 当サイトの収集処理
- 2026/11/01 16:01
原典の説明
公開元の記載です。上のWATRIXの日本語解説と併せて、最新の情報をご確認ください。
WordPress Core <= 7.1.1 - Unauthenticated Local File Inclusion via locate_template() Path Traversal
WordPress Core is vulnerable to Local File Inclusion via the locate_template() function in various versions up to, and including, 7.1.1. The function resolved a caller-supplied template name against the theme directories without verifying the result stayed within them, so a template name containing '..' could resolve to a readable PHP file outside the active theme and be included. The core-reachable vector is get_page_template(), which builds page-{$pagename}.php from the URL-derived, url-decoded 'pagename' query variable. This makes it possible for unauthenticated attackers to make page-template resolution include a chosen readable local .php file outside the theme directories, which under certain conditions can lead to remote code execution. Exploitation requires (1) the active parent or child theme to contain a top-level directory whose name begins with 'page-' (e.g. 'page-templates' in Twenty Twelve, Twenty Fourteen, Neve, Hestia, Sydney), and (2) a readable .php target on the server accessible to the web-server account (e.g. pearcmd.php with register_argc_argv=On, as in the official PHP Docker image and default cPanel setups on PHP < 8.5), which yields RCE.
公開元の対処情報
- Update to one of the following versions, or a newer patched version: 4.7.37, 4.8.32, 4.9.33, 5.0.29, 5.1.26, 5.2.28, 5.3.25, 5.4.23, 5.5.22, 5.6.21, 5.7.19, 5.8.17, 5.9.18, 6.0.16, 6.1.14, 6.2.13, 6.3.12, 6.4.12, 6.5.12, 6.6.9, 6.7.9, 6.8.10, 6.9.9, 7.0.6, 7.1.2
出典・著作権・ライセンスを確認する
- 権利表示
- 権利に関する説明
This record contains material that is subject to copyright
- Defiant
- 著作権表示
Copyright 2012-2026 Defiant Inc.
- 利用許諾
Defiant hereby grants you a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute this software vulnerability information. Any copy of the software vulnerability information you make for such purposes is authorized provided that you include a hyperlink to this vulnerability record and reproduce Defiant's copyright designation and this license in any such copy.
当サイトでの保存履歴
当サイトが取得した原本の履歴です。公開元での過去の改訂日時とは異なります。
初回保存のみです。訂正前の版はまだありません。
現在の保存内容2026/10/31 18:02
掲載中修正版あり
Wordfenceの改訂履歴は、当サイトでの保存開始以降が対象です。初回取得より前の版は含まれません。
このページは公表情報を確認するためのデータです。製品を使っているだけで被害や脆弱性への該当が確定するものではありません。現在のバージョン、設定条件、開発元の更新情報を確認してください。

