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.
No summary for this CVE yet.
CVSS Vector Breakdown
Exploitability
AV:NAttack VectorNetwork
AC:HAttack ComplexityHigh
PR:NPrivileges RequiredNone
UI:NUser InteractionNone
Scope
S:UScopeUnchanged
Impact
C:HConfidentialityHigh
I:HIntegrityHigh
A:HAvailabilityHigh
Weaknesses
Affected Products
WordPress
oss-project·USaka wordpress.org, wordpress mu, wp
Exploitability
Workaround Available
References
News mentions
5- Hackers start exploiting critical WordPress flaw for code executionen-us·BleepingComputer·
- WordPress 7.1.2 fixes critical unauthenticated path traversal vulnerability (CVE-2026-87902)en-us·Help Net Security· Patch WordPress web-app
- CVE-2026-87902: Attackers Started Probing WordPress Sites Hours After the Patchen·Patchstack· Exploited WordPress Core rce
- WordPress Issues Patch for Critical Flaw That Can Enable Code Execution on Some Serversen·The Hacker News· Patch WordPress rce
- WordPress 7.1.2 Security Release: Unauthenticated LFI to RCEen·Patchstack· Research WordPress web-app
Unlock Complete Vulnerability Intelligence
Get the full picture for CVE-2026-87902 and every CVE in our database. Create a free account — no credit card required.
Create Free AccountPlain-language analysis
Impact assessment and exploitation scenario in plain English
Attack graph visualization
Interactive attack path and kill chain mapping
Exploit details & PoC links
ExploitDB, Metasploit, GitHub PoCs with direct links
Nuclei scanner templates
Ready-to-use vulnerability scanner templates
Full remediation guide
Patch instructions, workarounds, and compliance impact
Interactive AI chat
Ask questions about this vulnerability in natural language
Related vulnerabilities
Semantically similar CVEs and attack patterns
REST API & MCP access
Integrate vulnerability data into your workflows
