CVE-2026-87902
Description
An unauthenticated attacker can make `get_page_template()` page-template resolution include a chosen readable local `.php` file outside the active theme directories. If relevant pre-conditions for both the server and the active theme are met, this can lead to RCE.
How to fix
Apply mitigations in accordance with vendor instructions, ensuring compliance with CISA’s BOD 26-04 Prioritizing Security Updates Based on Risk (see URL in Notes) guidance and CISA’s “Forensics Triage Requirements” (see URL in Notes). Follow applicable BOD 26-04 guidance for cloud services or discontinue use of the product if mitigations are unavailable. Stakeholders are responsible for evaluating each asset's internet exposure and ensuring adherence to BOD 26-04 patching guidelines.
CISA due date: Sep 28, 2026- wordpress wordpress4.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 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| wordpress wordpress | v < 4.7.37, 4.8 ≤ v < 4.8.32, 4.9 ≤ v < 4.9.33, 5.0 ≤ v < 5.0.29, 5.1 ≤ v < 5.1.26, 5.2 ≤ v < 5.2.28, 5.3 ≤ v < 5.3.25, 5.4 ≤ v < 5.4.23, 5.5 ≤ v < 5.5.22, 5.6 ≤ v < 5.6.21, 5.7 ≤ v < 5.7.19, 5.8 ≤ v < 5.8.17, 5.9 ≤ v < 5.9.18, 6.0 ≤ v < 6.0.16, 6.1 ≤ v < 6.1.14, 6.2 ≤ v < 6.2.13, 6.3 ≤ v < 6.3.12, 6.4 ≤ v < 6.4.12, 6.5 ≤ v < 6.5.12, 6.6 ≤ v < 6.6.9, 6.7 ≤ v < 6.7.9, 6.8 ≤ v < 6.8.10, 6.9 ≤ v < 6.9.9, 7.0 ≤ v < 7.0.6, 7.1 ≤ v < 7.1.2 | 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 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.