A critical WordPress core vulnerability, CVE-2026-87902, went from patch to active attack in less than five hours. WordPress fixed the flaw on September 22, and by that evening researchers were already seeing automated scans for vulnerable sites. Three days later the US cybersecurity agency CISA confirmed that it was being exploited in the wild. For anyone who runs a WordPress site, which covers a large share of the web, the case shows how little time is left between a fix and an attack.
What the flaw is
According to the WordPress 7.1.2 release notes, the bug is “an unauthenticated path traversal issue in page-template resolution leading to conditional remote code execution”, reported by researcher Robert Ressl. Two terms need explaining:
- Path traversal means tricking a program into opening files outside the folder it is supposed to use, typically with sequences like
../. Here an attacker can make WordPress load a local file it should never load, without logging in. - Remote code execution (RCE) means the attacker can run their own commands on the server, which usually amounts to full control of the site.
The RCE part is conditional, BleepingComputer reported. The active theme must contain a top-level folder whose name starts with page-, and a suitable PHP file must be readable on the server. The documented route uses pearcmd.php, a tool that ships with PHP’s PEAR package and needs PHP’s register_argc_argv setting to be enabled, as it is in the official PHP Docker image and in default cPanel setups with PHP versions before 8.5. The flaw is rated 9.2 out of 10 (CVSS v4.0) and affects WordPress versions 4.7 through 7.1.1.

How fast attackers moved
Researchers saw attempts to find vulnerable sites less than five hours after the fix was released. Security firm Patchstack described three phases: checking whether a server is vulnerable, checking whether pearcmd.php can be included, and then abusing it to write PHP code that runs on request. Traffic later rose to more than ten times the volume of the first evening. Security firm Previdian, The Hacker News reported, recorded attackers writing files to /tmp/ with names such as wp-pear-rce-flag.php, poc87902.php, luci_<random>.php and zeta_<random>.php. Some only mark a host as vulnerable; others run shell commands when opened.
On September 25 CISA added the flaw to its Known Exploited Vulnerabilities catalog, the official US list of bugs confirmed to be used in real attacks, as noted in Canada’s Cyber Centre advisory.
Previdian’s CEO expected many exploitation attempts but relatively few real compromises, because of the preconditions and because most sites receive security updates automatically. That is an important nuance: the bug is critical, but not every WordPress site was exploitable.
Patches reach back to 2016
WordPress fixed the flaw in 7.1.2 and backported it to older branches, from 7.0.6 and 6.9.9 down to 4.7, a version released in 2016. Versions older than that get no fix. On October 6 WordPress released version 7.1.3 with seven more security fixes, several of them reported by AI companies Anthropic and OpenAI together with Trail of Bits. Fast AI-assisted bug hunting is one reason the time between disclosure and attack keeps shrinking, a theme we also covered in our report on a 16-year-old Broadcom router flaw.
What site owners should do
- Update to WordPress 7.1.3, or the latest patched release of your branch, and make sure automatic background updates are enabled.
- If a site ran an affected version after September 22, check
/tmpand/var/tmpfor new PHP files matching the names above. - Search web server logs for requests with double-encoded traversal sequences such as
%252e%252e%252fcombined with thepagenameparameter. - Where possible, disable
register_argc_argvand remove PEAR from production PHP images that do not need it.
Stolen access often ends up with extortion groups; see our report on how the N0n group scaled its claims.
Our take
The five-hour window is the real headline: a security release is now a public map for attackers, so update speed matters more than any single fix. The good news is that the conditions for full takeover limited the damage, and automatic updates protected most sites before attackers arrived. The weak points are hosts that disable auto-updates and container images that ship PHP tools nobody uses. For businesses that run WordPress, the cheapest defence is boring: automatic updates on, unused server tools removed, and someone checking logs when a critical advisory lands.

