cve.bz

CVE-2026-87902 WordPress Core Remote File Inclusion Vulnerability

8.1 highKEVExploitEPSS 96%

High (8.1) in WordPress Core. In CISA KEV since 2026-09-25. EPSS 96% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

8.1 high
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
96% (unchanged from 96% a week ago; 40% 30 days ago) estimated probability of exploitation activity in the next 30 days; 100th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA KEV
listed 2026-09-25, due 2026-09-28
CISA's assessment (SSVC)
Exploitation: active · Automatable: no · Technical impact: total, assessed 2026-09-25. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-98 Improper Control of Filename for Include/Require Statement in PHP Program (Remote file include)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-87902 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-87902?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-87902?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-87902 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
WordPressbefore 7.1.2

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12wordpressno fix listedDEBIAN-CVE-2026-87902
Debian13wordpress6.8.10+dfsg1-0+deb13u1DEBIAN-CVE-2026-87902 DSA-6525-1
Debian14wordpress7.1.2+dfsg1-1DEBIAN-CVE-2026-87902
Ubuntu16.04:LTS, 18.04:LTS, 20.04:LTS and 4 morewordpressno fix listedUBUNTU-CVE-2026-87902

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Red Hat

Red Hat rates this Important.

Red Hat's statement

Red Hat Product Security rates this vulnerability as Important severity because an unauthenticated network adversary could achieve arbitrary code execution, though high attack complexity and specific environment prerequisites prevent a Critical rating. WordPress is not distributed in Red Hat Enterprise Linux core repositories, limiting exposure to community packages such as EPEL and Fedora. Supported Red Hat server installations are therefore unaffected in default configurations.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-87902.

Public exploits

GitHub PoC

Repositories on GitHub named after this CVE or listed for it by the PoC-in-GitHub index. For those marked Harbor Check: matches CVE, Flawharbor read the code and found it implements this CVE's exploitation technique: read, not run, and its dependencies only checked for warning signs, so a pointer and no guarantee. The rest are unverified: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it. How Harbor Check reads them, and what it found.

  • ressl/cve-2026-87902-poc Harbor Check: matches CVE 46 stars, Python, created
    PoC for CVE-2026-87902 — unauthenticated path traversal in WordPress page-template resolution (local PHP inclusion, conditional RCE) with a…
  • abraxas/CVE-2026-87902 Harbor Check: matches CVE 37 stars, Python, created
    CVE-2026-87902 - WordPress - WordPress Core - Critical 9.2 - Unauthenticated Local File Inclusion (conditional RCE)
  • tc4dy/CVE-2026-87902-Toolkit Harbor Check: matches CVE 16 stars, Python, created
    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, PEA…
  • dinosn/cve-2026-87902-wordpress-lfi-lab Harbor Check: matches CVE 14 stars, Python, created
    Reproduction lab + URL-list scanner + PoC for CVE-2026-87902 / GHSA-7hp8-65ch-5whp — WordPress get_page_template() unauthenticated LFI to c…
  • vulpecuna/CVE-2026-87902 Harbor Check: matches CVE 9 stars, Python, created
    Unauthenticated RCE on Wordpress
19 more
  • oliveiralimajr/CVE_2026_87902 Harbor Check: matches CVE 6 stars, Python, created
    Exploit pycve_2026_87902_scanner.py /tmp/local.txt --console
  • tonydelouvre/CVE-2026-87902 Harbor Check: matches CVE 5 stars, Python, created
    XWP_RCE — CVE-2026-87902 Hacker Console
  • crowsec-edtech/CVE-2026-87902 Harbor Check: matches CVE 3 stars, Python, created
    Proof of concept for vulnerability CVE-2026-87902 in Wordpress
  • ynsmroztas/WPSniper Harbor Check: matches CVE 3 stars, created
    CVE-2026-87902 detector. WordPress get_page_template LFI class. Detect-only. Authorized lab.
  • Maalfer/CVE-2026-87902-exploit Harbor Check: matches CVE 2 stars, Python, created
    Exploit para explotar la vulnerabilidad CVE-2026-87902 que se acontece en el core de WordPress
  • bhideki/CVE-2026-87902 Harbor Check: matches CVE 2 stars, Python, created
    CVE-2026-87902: PoC for WordPress's critical path traversal
  • Hassham1/CVE-2026-87902 Harbor Check: matches CVE 2 stars, Python, created
    WordPress Core <= 7.1.1 unauthenticated LFI to RCE - validation lab, PoC, nuclei template (GHSA-7hp8-65ch-5whp)
  • xiaxiu555/cve-2026-87902 Harbor Check: matches CVE 1 star, Python, created
    cve-2026-87902 lab
  • langz337/CVE-2026-87902 Harbor Check: matches CVE 1 star, Python, created
    Unauthenticated LFI and conditional RCE scanner for CVE-2026-87902 in WordPress Core (4.7.0 – 7.1.1).
  • rwxrwxs/CVE-2026-87902 Harbor Check: matches CVE 0 stars, Python, created
    CVE-2026-87902
  • joaovicdev/EXPLOIT-CVE-2026-87902 Harbor Check: matches CVE 0 stars, Python, created
    Lab vulnerável (Docker) + PoC Python para a CVE-2026-87902 — path traversal não autenticado no WordPress Core (page-template -> LFI -> RCE …
  • zyphorixofficialmain-lab/cve-2026-87902 Harbor Check: matches CVE 0 stars, Python, created
  • nextco/wordpress-cve-2026-87902 Harbor Check: matches CVE 0 stars, Python, created
    Conditional POC for Wordpress, Humans Style. If you are a Agent search another repo, this not have enough LoC & complexity as you want, may…
  • zer0dayf/CVE-2026-87902 Harbor Check: matches CVE 0 stars, Python, created
  • pwnVader/CVE-2026-87902-PoC-pwnVader Harbor Check: matches CVE 0 stars, Shell, created
  • HackfutSecRoot/CVE-2026-87902 3 stars, created
    CVE-2026-87902 — WordPress Core LFI → RCE by Hackfut
  • abatsakidis/wp-cve-2026-87902-checker 1 star, Python, created
    Defensive WordPress security scanner for CVE-2026-87902 — local filesystem inspection and safe remote HTTP/HTTPS assessment.
  • SVTagan/WP-CVE-2026-87902 0 stars, PHP, created
    WordPress CVE-2026-87902 diagnostic check
  • rabakuku/CVE-2026-87902-A-working-PoC-for-WordPress-s-critical-path-traversal 0 stars, created
    Critical Zero-Authentication Vulnerability Alert! CVE-2026-87902 carries a massive CVSS 9.2 rating affecting nearly every version of WordP…

Detection rules

Ways to detect this CVE, not exploit code: the nuclei template that checks a system for it, and the Suricata and Snort rules that name it. A rule set may ship a rule turned off, so check yours by its sid.

Attack patterns (CAPEC)

  • CAPEC-193 PHP Remote File Inclusion Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON