Back to Feed
VulnerabilitiesSep 23, 2026

Hackers start exploiting critical WordPress flaw for code execution

Hackers exploit critical WordPress flaw CVE-2026-87902 for remote code execution.

Summary

Threat actors are actively exploiting a critical vulnerability, CVE-2026-87902, in WordPress, allowing for remote code execution. Initially used for reconnaissance, the attacks have escalated to delivering payloads that write malicious files to disk, which execute shell commands upon access. The flaw, an unauthenticated path traversal bug, has a critical severity score of 9.2 and affects WordPress versions prior to 7.1.2, with fixes backported to version 4.7.

Full text

Hackers start exploiting critical WordPress flaw for code execution By Bill Toulas September 23, 2026 02:31 PM 0 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. Save your seat Related Articles: Critical Elementor Pro flaw exploited to take over WordPress sitesWordPress backup plugin flaw exposes millions of sites to takeover attacksHackers exploit Sangoma Switchvox flaw to deploy reverse shellsCritical Langflow flaw exploited to steal OpenAI and AWS keysCritical Avada WordPress theme flaw enables zero-click RCE

Indicators of Compromise

  • cve — CVE-2026-87902
  • ip — 169.58.48.193
  • ip — 169.58.48.195
  • ip — 2001:df1:e8c0::106b

Entities

WordPress (product)PHP (technology)cPanel (product)