WordPress Core File Inclusion Flaw Draws Exploit Attempts From Over 30,000 IPs
Active Exploitation · 2 sources · Updated 2mo ago · First seen Oct 9, 2026
WordPress released version 7.1.2 and security backports through the 4.7 branch on September 22, 2026, to fix CVE-2026-87902, an unauthenticated path traversal and local PHP file inclusion vulnerability affecting core versions 4.7.0 through 7.1.1. Crafted page requests using double-encoded traversal in the pagename parameter can cause template resolution to include readable PHP files outside the active theme directory. The flaw can enable remote code execution and complete site compromise, but exploitation requires a compatible top-level page-* directory in the active parent or child theme and suitable local PHP files and configuration; not every vulnerable installation permits code execution. A public exploitation chain uses PEAR to write a PHP payload.
Exploitation attempts reportedly began on the patch release date. CrowdSec recorded 322,680 matching signals during September 23–27 and 30,813 unique source IP addresses by September 28, indicating widespread targeting rather than confirmed compromises. Administrators should install and verify the appropriate fixed release, investigate suspicious pagename requests, and inspect previously exposed sites for malicious PHP files. Firewall protection should supplement patching, not replace it.
Why it matters
CVE-2026-87902 exposes unpatched WordPress sites to unauthenticated PHP file inclusion and, when theme and PHP prerequisites are met, remote code execution and complete site compromise. Internet-facing commerce sites, hosting environments, and small businesses face credential theft, customer-data exposure, malicious content hosting, and service disruption. Exploitation attempts are widespread; reported web-shell deployment indicates successful exploitation, but CrowdSec's request counts do not establish how many sites were compromised.
- CrowdSec reference: Recorded 322,680 matching signals during September 23–27, 2026, and 30,813 unique source IP addresses by September 28. These figures reflect participating sensors, not a global census or distinct attacker count.
- Observed exposure: Hosting providers received approximately 69% of signals with known sector attribution. CrowdSec categorized 58% of targeted organizations as commerce and 38% as small offices/home offices.
- Exploitation reporting: CrowdSec cites Patchstack's first observed attempt on September 22 and reports of attackers dropping web-shell uploaders into
/tmp/. Wordfence's September 22 reference does not independently report confirmed exploitation. - Business consequences: Server compromise can expose database credentials in
wp-config.php, user and customer records, and the site's infrastructure for phishing or payment-card skimming. - Residual exposure: Disabled updates, pinned deployments, stale container images, exposed staging sites, and failed updates can leave installations vulnerable. An incompatible theme or PHP configuration reduces current exploitability but does not fix the vulnerability.


