Exploit database

Vulnerability

CVE-2026-87902

Vulnerability details

Score
8.1
Severity
high

CVSS 3.1 · CISA-ADP

Vector string

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

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.

CVE Program

Exploit source choices

16 sources
ressl/cve-2026-87902-poc
GH-a445dcf02d441e19ddf794b25553af59GitHubUnofficial GitHub source

PoC for CVE-2026-87902 — unauthenticated path traversal in WordPress page-template resolution (local PHP inclusion, conditional RCE) with a pinned vulnerable lab

2026-09-229 files · 46 stars
abraxas/cve-2026-87902
GH-6b17802cf573202d03fffaa324324fb7GitHubUnofficial GitHub source

CVE-2026-87902 - WordPress - WordPress Core - Critical 9.2 - Unauthenticated Local File Inclusion (conditional RCE)

2026-09-2213 files · 38 stars
tc4dy/cve-2026-87902-toolkit
GH-eaab83c08479ee103f4472a935c41cafGitHubUnofficial GitHub source

CVE-2026-87902 – WordPress Core LFI→RCE Toolkit (CVSS 9.2) - Red/Blue Team suite for WordPress 4.7–7.1.1. | 2 tools: Full Exploit (LFI, PEAR RCE, admin create, webshell, reverse shell, loot, mass scan, stealth) & SafeChecker (version detect, risk audit, JSON report). Use Ethically & Authorized Enviorement, Stay Legal <3

2026-09-237 files · 16 stars
dinosn/cve-2026-87902-wordpress-lfi-lab
GH-93deac1f50d07a925c0ccab418105504GitHubUnofficial GitHub source

Reproduction lab + URL-list scanner + PoC for CVE-2026-87902 / GHSA-7hp8-65ch-5whp — WordPress get_page_template() unauthenticated LFI to conditional RCE (WP 4.7.0-7.1.1, fixed 7.1.2). Authorized/defensive testing.

2026-09-2316 files · 14 stars
vulpecuna/cve-2026-87902
GH-ee13c92a8082cc1f7ec7f7f240773733GitHubUnofficial GitHub source

Unauthenticated RCE on Wordpress

2026-09-2223 files · 9 stars
tonydelouvre/cve-2026-87902
GH-bc0d7dadf0b8786380fdcc713aa6ee79GitHubUnofficial GitHub source

XWP_RCE — CVE-2026-87902 Hacker Console

2026-09-295 files · 5 stars
crowsec-edtech/cve-2026-87902
GH-8e7d4b89fd8fe6f0c125560abc805c44GitHubUnofficial GitHub source

Proof of concept for vulnerability CVE-2026-87902 in Wordpress

2026-09-253 files · 3 stars
ynsmroztas/wpsniper
GH-42e141d84d75b0bdeb5b2a681a3ecb14GitHubUnofficial GitHub source

CVE-2026-87902 detector. WordPress get_page_template LFI class. Detect-only. Authorized lab.

2026-09-238 files · 3 stars
bhideki/cve-2026-87902
GH-c578ab2499ebeffc3ee0cc0e33a62dd9GitHubUnofficial GitHub source

CVE-2026-87902: PoC for WordPress's critical path traversal

2026-09-232 files · 2 stars
hassham1/cve-2026-87902
GH-57c538fd19a4b309b1bf68f0f7b21163GitHubUnofficial GitHub source

WordPress Core <= 7.1.1 unauthenticated LFI to RCE - validation lab, PoC, nuclei template (GHSA-7hp8-65ch-5whp)

2026-09-2311 files · 2 stars
maalfer/cve-2026-87902-exploit
GH-38208bea53bdf86373cc220da3e258dfGitHubUnofficial GitHub source

Exploit para explotar la vulnerabilidad CVE-2026-87902 que se acontece en el core de WordPress

2026-09-275 files · 2 stars
abatsakidis/wp-cve-2026-87902-checker
GH-f94d8bfcd17b8c61fd03586eae936aa0GitHubUnofficial GitHub source

Defensive WordPress security scanner for CVE-2026-87902 — local filesystem inspection and safe remote HTTP/HTTPS assessment.

2026-09-273 files · 1 stars
cveforge/cve-2026-87902
GH-a858697961429243e487be2af01e9322GitHubUnofficial GitHub source

WordPress get_page_template() path traversal -> LFI -> RCE (4.7.0-7.1.1)

2026-11-234 files · 1 stars
langz337/cve-2026-87902
GH-41c8e9893dfa25aff722d176f414c048GitHubUnofficial GitHub source

Unauthenticated LFI and conditional RCE scanner for CVE-2026-87902 in WordPress Core (4.7.0 – 7.1.1).

2026-09-272 files · 1 stars
xiaxiu555/cve-2026-87902
GH-1b702c12d81d89f05ee6bfbf84a73affGitHubUnofficial GitHub source

cve-2026-87902 lab

2026-10-079 files · 1 stars