Hackers start exploiting critical WordPress flaw for code execution
At a glance
- Severity
- HighCVSS 8.1
- Used in attacks
- Not on CISA’s list
- Flaws named
- CVE-2026-87902
- Vendors and products
- WordPress
- Reported by
- 1 outlet
Threat actors have moved from probing WordPress sites vulnerable to CVE-2026-87902 to exploiting the flaw to write files to disk that execute shell commands when accessed.
Initial attack traffic was only for reconnaissance and started less than five hours after the patch was released in WordPress 7.1.2. Malicious activity increased by ten times, and attackers are now trying to deliver payloads.
WordPress security firm Patchstack reports that it observed the first malicious requests at 17:44 UTC on September 22 from a small group of IP addresses targeting multiple sites under its protection.
Discovered by security researcher Robert Ressl, the issue is an unauthenticated path traversal bug that can lead to remote code execution (RCE) under certain conditions.
The WordPress security team assesses that CVE-2026-87902 has critical severity, assigning a score of 9.2 out of 10.
"An unauthenticated attacker can make get_page_template() page-template resolution include a chosen readable local .php file outside the active theme directories," reads the official advisory.
For RCE to be possible, the following conditions are required:
- Active parent or child theme must have a top-level directory with a name starting with page-, such as page-templates. The attacker must also target a local .PHP file that exists and is readable by the web server
- The included file must be readable by the web server account. The advisory gives pearcmd.php as an example when PHP’s register_argc_argv setting is active.
The WordPress advisory notes that the official PHP image for Docker is affected, and so is the default cPanel configuration when a PHP version before 8.5 is used.
WordPress addressed CVE-2026-87902 yesterday with the release of version 7.1.2, and fixes have also been backported to all branches down to 4.7 because of the critical severity of the flaw. Releases before 4.6 will not be getting a fix for this flaw.
Patchstack reports that in the observed reconnaissance activity, the attackers attempted to include ordinary WordPress core files, apparently to identify vulnerable sites.
Starting today, the researchers noticed that traffic related to the vulnerability increased tenfold and includes a writing to disk stage.
"The third stage swaps config-show for config-create, which pearcmd will happily use to write a file wherever it is told, with content the attacker controls."
Some of the payloads only write a string that marks the host as exploitable via CVE-2026-87902. However, the researchers also saw payloads that "write a short tag that executes a shell command on access," which indicates malicious activity.
The files are delivered to /tmp and /var/tmp and have names like wp-pear-rce-flag.php, poc87902.php, luci_<random>.php, and zeta_<random>.php.
Although the security firm did not publish a working request example, it warned that the observed probes use double-encoded traversal sequences in ‘pagename’ alongside a valid ‘page_id.’
The source IPs that should be added to a blocklist are 169.58.48.193, 169.58.48.195, and 2001:df1:e8c0::106b.
Given the active exploitation of CVE-2026-87902, website administrators should update to WordPress version 7.1.2 as soon as possible and review the logs for malicious activity.
Build your security blueprint for AI-powered attacks
Join Mikko Hyppönen and security leaders from the NFL, CHANEL, and Atlassian for a two-hour digital summit on what AI-speed attacks change, what defenders should stop doing, and how to validate, decide, fix, and re-validate at machine speed.
Reproduced in full under licence from BleepingComputer. © BleepingComputer. Written by Bill Toulas.
Vulnerabilities referenced
- CVE-2026-879028.1High
Product not named yet
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.
Full record →
Coverage
One outlet has carried this so far.
2026-09-23 18:31 UTC
Related stories
- Check Point warns of hackers exploiting Security Gateway VPN RCE flaw
BleepingComputer · 2026-09-23 · exploited
- Someone's attacking a critical 0-day RCE in F5 BIG-IP APM
The Register · 2026-09-23
- Attackers Use Malicious Terraform Providers to Deliver Go Malware via HashiCorp Registry
The Hacker News · 2026-09-23
- A Leaked GitLab Issue Email Address Lets Anyone Push Code and Run CI Jobs as You
The Hacker News · 2026-09-23
- Malicious AI agents steal 600K credit cards, infect 100+ sites with skimmers
BleepingComputer · 2026-09-23