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.
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
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.
Hackers started exploiting CVE-2026-87902, a critical WordPress flaw leading to RCE, within hours of public disclosure.
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β¦
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β¦
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β¦
Attackers are exploiting WordPress CVE-2026-87902 to include pearcmd.php and write PHP files when specific theme and server conditions are ...