Local File Inclusion in WordPress Leading to Remote Code Execution
CVE-2026-87902
Key Information:
- Vendor
WordPress
- Status
- CVE ID
- CVE ID:
- CVE-2026-87902
- Vendor
- CVE Published:
- 22 September 2026
- Fixed in
- Fixed in:
- 7.1.2
Timeline
Exploit known 1 day after it was published
- 🦅
CISA Reported
- 📈
Vulnerability started trending
- 🟡
Public PoC available
- 👾
Exploit known to exist
- 📰
First article discovered by Help Net Security
Vulnerability published
Vulnerability Reserved
Badges
How risky is it?
- Yes: Works over the network, no login needed
- Yes: Public exploit code (13 proof-of-concepts)
- Yes: Attacked in the wild (on CISA's KEV list)
- No: No ransomware use seen
Our verdict
Patch now
Attackers are using it. Patch or mitigate today.
What to do
1Update to a fixed version
2Follow CISA's required action
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.
3Can't patch yet? Reduce exposure
It can be reached over the network, so limit who can reach WordPress. Block it from the internet, allow only trusted hosts or a VPN, and turn off the affected feature if you don't use it, until you can update.
4Look for signs of compromise
It is being exploited in the wild, so check logs on exposed WordPress systems for unusual requests or new processes from before you patched. The 13 public proof-of-concepts show what an attack looks like.
5Why it's rated "Patch now"
- CISA lists it as a Known Exploited Vulnerability, so it is being attacked in the wild.
- Exploit code is public, so attacks are easy to copy.
- It can be exploited remotely without credentials.
- EPSS gives it a 26.7% chance of exploitation in the next 30 days.
- Its CVSS severity is high (8.1).
What is CVE-2026-87902?
CVE-2026-87902 is a vulnerability in WordPress that allows an unauthenticated attacker to exploit the get_page_template() function. This function can be manipulated to include a chosen readable local .php file located outside the active theme directories. If certain preconditions related to the server environment and active theme are met, this can lead to remote code execution (RCE) on the affected WordPress site.
WordPress versions 7.1.2, 7.0.6, 6.9.9, and 6.8.10 contain patches for this vulnerability. Exploitation attempts were recorded starting on September 22, 2026, just hours after the patch was released.
Potential Impact of CVE-2026-87902
- Remote Code Execution: An attacker can execute arbitrary PHP code on the server by including a malicious local file, potentially leading to full control over the affected WordPress site.
CISA has reported CVE-2026-87902
CISA provides regional cyber and physical services to support security and resilience across the United States. CISA monitor the most dangerous vulnerabilities and have identified CVE-2026-87902 as being exploited . Neither CISA nor our sources have linked it to ransomware campaigns so far.
The CISA's recommendation is: 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.
Exploit Proof of Concept (PoC)
PoC code is written by security researchers to demonstrate the vulnerability can be exploited. PoC code is also a key component for weaponization which could lead to ransomware.
News Articles
The patch is out — and attackers are already racing to exploit it - Spiceworks
Public patch disclosures give attackers a head start. Modern patching requires risk-based deployment speed over rigid calendars
Attackers Exploit WordPress CVE-2026-87902 Within Hours of Disclosure - SwapUpdate
Ravie LakshmananSep 24, 2026Vulnerability / Web Security
Critical Contact Form 7 Vulnerability CVE-2026-87902 Actively Exploited in WordPress 6.6
WordPress sites face active exploitation of critical CVE-2026-87902 in Contact Form 7 (v5.9.2–5.9.5) on WordPress 6.6.x, enabling unauthenticated attackers to upload PHP backdoors via directory traversal and gain full control. Immediate patching to plugin 5.9.6+ and core 6.6.2 is essential.
References
More WordPress Vulnerabilities
SQL Injection Vulnerability in Hello Clever Gateway for WooCommerce by Hello Clever Pty
Object Injection in Ultimate Member
Unauthorized Password Reset in User Registration Aide Plugin for WordPress
Facts on this page come from the sources listed above; the writeup is AI-assisted. How we rate vulnerabilities · Report a correction