Hackers Actively Exploiting WordPress Vulnerability to Execute Malicious Code
Attackers are exploiting WordPress LFI CVE-2026-87902 to write malicious PHP and seek remote code execution.
Unauthenticated Local File Inclusion to RCE in WordPress Core (fixed in 7.1.2)
CISA: WordPress Core Remote File Inclusion Vulnerability
WordPress core's page-template resolution in get_page_template() contains an unauthenticated local file inclusion flaw (CWE-98): a remote attacker with no account can influence which template file WordPress includes, causing it to load a chosen readable local .php file from outside the active theme directories. If certain pre-conditions hold on both the server and the active theme — most notably the existence of an attacker-readable .php file on disk, such as content in an uploads directory — the included file's code executes, escalating the LFI to full remote code execution over the site (CVSS 8.1, high impact to confidentiality, integrity, and availability). The high attack-complexity rating reflects these pre-conditions, but successful exploitation requires no privileges and no user interaction. All sites running WordPress core versions prior to the 7.1.2 security release are affected and should treat this as a priority patch. The issue is fixed in WordPress 7.1.2; there is no public proof of concept, it is not in the CISA KEV catalog, and no exploitation in the wild is currently known.
What to do: Update to WordPress 7.1.2 immediately via Dashboard → Updates (or WP-CLI), and enable automatic updates for security releases so future fixes land without delay. As defense-in-depth against the LFI-to-RCE path, block PHP execution in wp-content/uploads and any other web-writable directories at the web-server level, since RCE depends on including a readable .php file. Afterwards, audit uploads and web logs for unexpected .php files and anomalous template-selection requests.
| Product | Affected |
|---|---|
| WordPress (WordPress.org) WordPress core | All versions prior to 7.1.2 |
Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.
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.
Attackers are exploiting WordPress LFI CVE-2026-87902 to write malicious PHP and seek remote code execution.
WordPress patched critical unauthenticated RCE CVE-2026-87902 in 7.1.2; attackers weaponized pearcmd.php within hours of disclosure.
Threat actors actively exploit critical WordPress CVE-2026-87902 (RCE) shortly after its disclosure, with confirmed exploitation attempts.
Attackers are exploiting critical WordPress flaw CVE-2026-87902 for unauthenticated code execution.
Attackers began exploiting critical WordPress path-traversal CVE-2026-87902 for remote code execution within hours of disclosure.
WordPress before 7.1.2 is under active attack via CVE-2026-87902, an unauthenticated path traversal that can yield remote code execution.
Attackers probed unauthenticated WordPress LFI CVE-2026-87902 within hours of the 7.1.2 patch.
WordPress 7.1.2 patches a critical CVSS 9.2 path traversal flaw (CVE-2026-87902) that could allow unauthenticated RCE under specific theme and server configurations.
WordPress 7.1.2 patches a critical unauthenticated remote code execution flaw (CVE-2026-87902) in the core template resolution mechanism.
CISA added actively exploited WordPress Core flaw CVE-2026-87902 to the Known Exploited Vulnerabilities catalog.
Check Point's weekly report covers ShinyHunters' FBI jobs-site breach, Bitget's $351.6M wallet theft, and actively exploited critical RCEs in Check Point and F5 products.
WordPress 7.1.2 fixes a critical unauthenticated path traversal flaw (CVE-2026-87902) that could allow remote code execution.
Critical WordPress file inclusion flaw (CVE-2026-87902) allows RCE and has been present since version 4.7.0.
WordPress 7.1.2 patches critical unauthenticated local file inclusion that can lead to remote code execution.
CISA added actively exploited WordPress Core remote file inclusion CVE-2026-87902 to the KEV catalog.
WordPress patched critical CVE-2026-87902 (CVSS 9.2), an unauthenticated flaw that can execute code on some servers.
WordPress 7.1.2 fixes unauthenticated LFI CVE-2026-87902 that can reach remote code execution.
WordPress patches CVE-2026-87902, an unauthenticated path traversal that can enable conditional remote code execution.
WordPress 7.1.3 patches seven flaws, including unauthenticated comment leaks and stored XSS, and is not an emergency.
Today 1.6K readers · 2.5K views · 778 reads · all time 189K views