πŸ”΄ CVE-2026-87902

CVE-2026-87902 is a critical unauthenticated Local File Inclusion (LFI) vulnerability in WordPress Core (versions 4.7 through 7.1.1) that allows attackers to manipulate the page-template resolution mechanism to include arbitrary local PHP files outside the active theme directory. Under server conditions where exploitable PHP files (e.g., pearcmd.php) are accessible, this LFI can be chained to achieve full Remote Code Execution on the server. Active exploitation in the wild has been confirmed within hours of public disclosure, with working PoC code publicly available.

← Back to Overview
HIGH_RISK
Risk Level
8.1
CVSS Score
NETWORK
Attack Vector
Initial Access
ATT&CK Tactic
T1190 β€” Exploit Public-Facing Application
ATT&CK Technique
VERY_HIGH
Deployment Risk
No
Ransomware

πŸ“‹ Vulnerability Details

Data Source: CIRCL

Confidence: HIGH

Exploitation Method: DIRECT_NETWORK

CVE Published: 2026-09-22

Added to CISA KEV: 2026-09-25 3 DAYS BETWEEN CVE AND KEV

🎯 Recommendations:

πŸ” Web Intelligence (Kagi Β· 2026-09-25)

Summary

CVE-2026-87902 is a critical unauthenticated path traversal and local file inclusion (LFI) vulnerability within the WordPress Core component. By exploiting a flaw in the page-template resolution mechanism, specifically through double-encoded path traversal, an unauthenticated attacker can force the server to include and execute arbitrary local PHP files outside of intended theme directories. This is a severe vulnerability because it can lead to remote code execution (RCE) and full site compromise on servers that meet specific configuration conditions.

Exploitation

  • Active Exploitation: The vulnerability is currently being actively exploited in the wild, with reports of malicious activity occurring within hours of public disclosure [1][4].
  • Threat Actors: Attackers have been observed using this flaw to include files such as `pearcmd.php` to write and execute arbitrary PHP files [5].
  • PoC Availability: Working proof-of-concept (PoC) exploit code is publicly available on platforms like GitHub [3].
  • Attack Prerequisites: The attack is network-exploitable, does not require authentication, and does not require user interaction [2][7]. Successful execution depends on the specific theme layout and the underlying server environment [2].

Affected Products & Patches

  • Affected Versions: All WordPress Core versions from 4.7.0 through 7.1.1 are vulnerable [4][8].
  • Patches: WordPress released security updates in version 7.1.2 to address this vulnerability [6].
  • Mitigations/Workarounds: Users are strongly advised to update to the latest patched version immediately. No specific manual workarounds are recommended over updating the software.

Impact

  • Access/Capability: Successful exploitation grants an attacker the ability to perform local file inclusion, which can be chained to achieve remote code execution, potentially leading to a complete compromise of the WordPress site [2][3].
  • Business Risk: Internet-facing deployments are at extreme risk of unauthorized access, data theft, and site defacement, especially given the active exploitation campaigns currently targeting this vulnerability [1].

Sources

  1. Critical WordPress Vulnerability Exploited Immediately ...

    Hackers started exploiting CVE-2026-87902, a critical WordPress flaw leading to RCE, within hours of public disclosure.

  2. PSA: Critical Unauthenticated Path Traversal Vulnerability ...

    WordPress has released security updates for a critical unauthenticated path traversal vulnerability that can lead to local PHP file ... Conclusion. CVE-2026-87902 is a serious WordPress Core vulnerability because it is reachable without authentication and can cross a theme-directory boundary to incl…

  3. GitHub - rabakuku/CVE-2026-87902-A-working...

    CVE-2026-87902 affects WordPress Core versions from 4.7.0 through 7.1.1. It allows an unauthenticated remote attacker to perform path traversal and Local File Inclusion (LFI) via theme template resolution functions (locate_template / get_page_template), which can be chained with environments like pe…

  4. CVE-2026-87902: Critical Vulnerability in WordPress

    CVE-2026-87902, a new critical vulnerability in the WordPress core, is already being actively exploited in real-world attacks.WordPress versions affected by CVE-2026-87902. According to data published by WordPress on GitHub, all versions of the CMS from 4.7.0 through 7.1.1 are vulnerable. The compan…

  5. Attackers Exploit WordPress CVE-2026-87902 Within ...

    Attackers are exploiting WordPress CVE-2026-87902 to include pearcmd.php and write PHP files when specific theme and server conditions are ...