WordPress published the patch for CVE-2026-87902 on 22 September 2026. The first exploitation attempt against it was logged at 11:49 UTC that same day, and attempts to write files to disk followed within hours. By the following day there was a named Nuclei template for it in circulation.
That is the real story here. The vulnerability is serious but conditional; the speed is not conditional at all. If your plan for critical WordPress updates is "we will look at it at the next maintenance window", the window closed before the meeting.
What the flaw actually is
CVE-2026-87902 is an unauthenticated path traversal in WordPress core's page-template resolution, scored CVSS 9.2. An attacker can make get_page_template() include a readable local .php file from outside the active theme directories. The primitive is local file inclusion — it becomes remote code execution only when the environment cooperates.
Affected versions are 4.7.0 through 7.1.1. The fix shipped in 7.1.2, 7.0.6, 6.9.9 and 6.8.10, and was backported across older branches, so an old site can take a patched release without a major version jump.
Two preconditions decide whether a site is exploitable:
- The active parent or child theme contains a top-level directory whose name starts with
page-—page-templatesbeing the obvious one, and the one attackers are guessing. - A readable local
.phpfile exists on the server that is useful to include. In practice this means PEAR'spearcmd.php, typically at/usr/local/lib/php/pearcmd.php,/usr/share/php/pearcmd.phpor/usr/share/pear/pearcmd.php.
Neither precondition is exotic. page-templates is a conventional theme layout, and PEAR ships in a lot of distribution and container PHP builds without anyone choosing it.
How the attack chain escalates
The traffic Patchstack described moved through three distinct stages in under a day.
Stage one — is the inclusion live. The request points the traversal at a harmless core file so the response reveals whether the host is vulnerable. wp-links-opml.php is the most common target, with wp-includes/feed-rss2.php, wp-cron.php, wp-login.php and install.php behind it. If a normal page URL returns OPML or RSS output, the inclusion ran.
Stage two — is pearcmd reachable. The inclusion is pointed at pearcmd.php with +config-show appended to the query string. When PHP runs with register_argc_argv enabled, the query string is handed to the included script as $argv, so pearcmd treats it as a command. A successful response confirms both that PEAR is present and that the argv trick works.
Stage three — writing files. Swapping config-show for config-create makes pearcmd write a file wherever it is told, with attacker-controlled content. Observed drops land in /tmp and /var/tmp under names including wp-pear-rce-flag.php, poc87902.php, luci_ and zeta_ followed by a random suffix. Some payloads write a harmless marker — someone building a list of vulnerable hosts — and some write a tag that executes a shell command when accessed.
A file in /tmp is not usually reachable over the web, so stage three on its own is proof of execution rather than a persistent backdoor. It still means the host is compromised: the same primitive writes somewhere more useful whenever the operator decides to.
Two of the user agents in the traffic were cve-2026-87902-poc/1.0 and nuclei-cve-2026-87902/1.0. Most of the rest spoofed ordinary browsers, so user agent is not a filter.
Who is exploiting it, and how much
The two public telemetry sets say different things, and the difference is worth keeping straight.
Previdian recorded 68 exploitation attempts against its honeypot network starting 23 September 2026, with requests from a US address in New Jersey (104.194.9.227) that included /usr/local/lib/php/pearcmd.php, wrote to /tmp/, and then pulled a PHP upload script hosted on GitHub. Some attempts came from an Indonesia-based address. Previdian's founder Ryan Dewhurst made the fair point that because WordPress enables auto-updates by default, mass exploitation attempts are likely but actual compromises relatively few.
Patchstack saw a wider picture: a small cluster of source addresses on the first evening spreading to a few hundred within a day, with volume peaking around midday UTC on 23 September at more than ten times the first evening's rate. Blocklisting individual sources stopped being a strategy almost immediately.
CISA added CVE-2026-87902 to the Known Exploited Vulnerabilities catalogue on 25 September 2026, giving federal civilian agencies until 28 September to fix it.
How to check your own site
Three questions, in order.
- What version are you on? The admin dashboard shows it, and so does the generator meta tag on the public site unless a plugin removes it. Anything below 7.1.2 / 7.0.6 / 6.9.9 / 6.8.10 on its branch needs the update now. If auto-update did not fire — and it frequently does not on sites with modified core, file permissions locked down,
DISALLOW_FILE_MODSset, or a version pinned by a host or a deployment pipeline — nobody will tell you. Check rather than assume. - Does your active theme have a top-level
page-directory? Look in the active theme folder underwp-content/themes/for anything starting withpage-, and check the parent theme too if you run a child. - Is
register_argc_argvon? Your host's PHP info page or a one-lineini_get()will say. Turning it off does not fix the inclusion, but it breaks the pearcmd chain — the difference between an information leak and code execution.
Hunting in logs you already have
The traversal always arrives percent-encoded, because WordPress sanitises the slug before the template candidate is built and a plain ../../ does not survive that. That makes the encoding itself a high-signal search term.
- A
pagenameparameter containing%2e%2eor%252e%252e, in the query string or the POST body — POST overtook GET as the more common method. - A
pagenamevalue beginning withtemplates%2f, or anotherpage-directory name. pagenameandpage_idappearing together on the site root or/index.php. Thepage_idis not padding: without a page id resolving to a real page, WordPress serves a 404 and the vulnerable code never runs. The pair rarely appears in ordinary traffic.- Any request containing
pearcmd,+config-showor+config-create. - Unexpected
.phpfiles in/tmpand/var/tmp.
A 200 response carrying OPML or RSS content from a normal page URL is the one to act on. It means the inclusion executed on your host, which is a confirmed vulnerable window, not a blocked attempt. Anything in /tmp means a stage-three attempt succeeded and the host should be treated as compromised rather than merely scanned.
What this costs you if you are on shared hosting
The uncomfortable part of this CVE is that most of its preconditions are set by somebody else. Whether PEAR is installed, whether register_argc_argv is on, whether /tmp is shared across accounts — those are hosting decisions, and the person running the site usually cannot see them, let alone change them.
What you can control is the gap between release and patch. A few hours is not a maintenance window; what closes that gap is a configuration decision made months earlier. For a WordPress estate the practical version of that decision is: core auto-updates left on and verified as actually firing, a weekly check that reported versions match expected versions, and one named person who can push an out-of-band update on a Saturday without a change board.
If you are not certain what your own domains publish — which sites exist, which versions they report, which of them nobody remembers owning — that part is answerable without a project. A ClickScan external scan enumerates what responds from the outside, and what it checks covers the exposure that surrounds a CMS as much as the CMS itself. Where the answer needs a person rather than a scan, ClickSecure AI's expert services cover that.
Sources: Patchstack: attackers started probing within hours · The Hacker News, 24 September 2026 · CISA KEV addition, 25 September 2026 · WordPress advisory GHSA-7hp8-65ch-5whp
The 68-attempt figure is Previdian honeypot telemetry and the timing and staging detail is Patchstack firewall telemetry; neither is a count of compromised sites, and we have not independently verified either dataset.

