Updated 29 Sep 2026: CISA added CVE-2026-87902 to KEV on Sep 25, formally confirming exploitation and setting a Sep 28 federal remediation deadline; this was an explicit watch item in the dossier.

Key details

  1. WordPress 7.1.2 was released September 22, 2026 with the CVE-2026-87902 security fix.
  2. CVE-2026-87902 can let an unauthenticated attacker make page-template resolution include a chosen readable local PHP file outside active theme directories.
  3. Remote code execution is conditional on theme structure and server environment; it is not automatic on every affected installation.
  4. Patchstack observed initial probing within hours of disclosure, then payload-bearing exploitation attempts by September 23.
  5. Observed exploitation attempts include pearcmd.php to write attacker-controlled PHP files into /tmp and /var/tmp.
  6. Previdian reported 68 exploitation attempts beginning September 23, 2026.
  7. A site that updated to WordPress 7.1.1 still needs the newer security fix.
  8. CISA added CVE-2026-87902 to the Known Exploited Vulnerabilities catalog on September 25, 2026.
  9. CISA set September 28, 2026 as the federal remediation deadline for covered agencies.

What builders should take away

  1. Update to WordPress 7.1.2 or the patched release for your maintained branch immediately, and verify the update actually completed.
  2. Do not treat the lack of a known exploitable theme/server combination as a durable mitigation; the vulnerable Core behaviour remains until patched.
  3. Review access logs from September 22 onward for double-encoded traversal in pagename, especially when paired with page_id, and look specifically for pearcmd.php inclusion attempts.
  4. Inspect /tmp, /var/tmp, web roots and other writable locations for unexpected PHP files and correlate filesystem changes with suspicious requests.
  5. If evidence shows successful file writes or execution, handle the site as potentially compromised rather than merely exposed.

What changed

WordPress released 7.1.2 on September 22 to fix CVE-2026-87902. An unauthenticated attacker can influence page-template resolution so WordPress includes a chosen readable local PHP file outside the active theme directories. Early telemetry showed probing within hours. By September 23, Patchstack and Previdian were observing active exploitation attempts that included pearcmd.php and used it to write attacker-controlled PHP files to /tmp or /var/tmp. Previdian recorded 68 exploitation attempts beginning September 23. WordPress is backporting the fix across security-eligible branches through 4.7. On September 25, CISA added CVE-2026-87902 to its Known Exploited Vulnerabilities catalog based on evidence of active exploitation and set September 28, 2026 as the federal remediation deadline.

Why it matters

This is a WordPress Core exposure rather than a vulnerable optional plugin, and it needs no account or victim interaction to reach the vulnerable path. The RCE outcome remains conditional on theme and server configuration, but the threat has progressed beyond scanners merely testing the vulnerable route: attackers are now attempting file writes and payload execution. Sites updated to 7.1.1 only days earlier are still affected, making immediate version verification, patching and compromise hunting important. CISA's KEV listing materially strengthens the exploitation evidence and makes the flaw a formal remediation priority for covered U.S. federal civilian agencies; CISA also urges other organizations to prioritize KEV vulnerabilities.

The bug lets page-template resolution escape the theme

The vulnerable path is WordPress Core's get_page_template() resolution. Crafted input can survive sanitisation in encoded form, later decode into traversal sequences and cause WordPress to include a readable local PHP file outside the active theme directories. WordPress describes the flaw as critical and recommends immediate updating.

Remote code execution depends on the host and theme

Local file inclusion does not automatically mean attacker-supplied code executes on every installation. The documented RCE path needs an active theme with a suitable top-level page-* directory and a server-side PHP file whose behaviour is useful when included. Hosting configuration, filesystem contents, PHP settings and theme structure therefore materially affect exploitability, but operators should patch rather than relying on assumed environmental safety.

Attackers have moved from probing to payload-bearing exploitation attempts

Patchstack first saw reconnaissance on September 22 using the encoded traversal and page_id combination needed to reach the vulnerable path. Fresh September 23 telemetry shows escalation: attackers are including pearcmd.php and attempting to write attacker-controlled PHP files into locations such as /tmp and /var/tmp. Previdian reported 68 exploitation attempts beginning September 23, while Patchstack independently observed the same shift. These are active exploitation attempts; public telemetry still does not establish how many sites, if any, were successfully compromised.

The patch reaches old branches, but 7.1.2 is the clean current boundary

WordPress 7.1.2 contains the fix for the current release. Security fixes were also backported to maintained older branches, including 7.0.6, 6.9.9 and 6.8.10 and continuing through 4.7.37. Sites should install the patched build for their branch immediately, while recognising that WordPress actively supports only the latest release.

CISA has now formally confirmed exploitation

On September 25, CISA added CVE-2026-87902 to the Known Exploited Vulnerabilities catalog based on evidence of active exploitation. The catalog sets September 28 as the remediation deadline for covered federal civilian agencies and points agencies to BOD 26-04 risk-based remediation and forensic-triage requirements. The deadline is federal, but the KEV designation is a stronger exploitation signal for other operators too.

What to watch next

  • Confirmed compromises or broader mass exploitation of CVE-2026-87902.
  • Additional theme or hosting configurations shown to satisfy the RCE preconditions.
  • Indicators, payload families and infrastructure associated with exploitation campaigns.
  • Further CISA, WordPress or incident-response evidence about successful compromises and post-exploitation activity.
  • Additional theme or hosting configurations shown to satisfy the RCE preconditions.
  • Indicators, payload families and infrastructure associated with exploitation campaigns.

Still unclear

  • Public telemetry confirms active exploitation attempts but does not establish the number of successfully compromised sites.
  • The proportion of WordPress installations satisfying the documented theme and server preconditions is not established.
  • Observed attacker techniques may evolve beyond the currently documented pearcmd.php route.

Sources

Direct reading behind this dossier.

6 sources
WordPress 7.1.2 Release
WordPress.org primary/vendor

Official release, vulnerability description, immediate-update guidance and backport policy.

Discussion

Discussion is reader-contributed. Comments are not part of the BTN dossier or its editorial evidence.

0 visible comments

Join the discussion

Keep comments useful and relevant. Reader contributions may be moderated and are not BTN editorial evidence.

Sign in to comment