Skip to main content
Mallory
← Back to News
internet-facing-service-vulnerabilitywidely-deployed-product-advisoryinitial-access-method

Critical WordPress Template Inclusion Flaw Enables Potential RCE

Vulnerability Disclosure · 41 sources · Updated 2mo ago · First seen Sep 22, 2026

Critical WordPress Template Inclusion Flaw Enables Potential RCE

WordPress released version 7.1.2 to fix critical vulnerability CVE-2026-87902 / GHSA-7hp8-65ch-5whp, an improper filename-validation flaw (CWE-98) in get_page_template(). Under specific server and active-theme conditions, an unauthenticated attacker can influence page-template resolution to include a readable local PHP file outside the active theme directory, potentially resulting in remote code execution.

Exploitation requires the top-level directory for the selected template to begin with page-, a condition reported in the Twenty Twelve and Twenty Fourteen themes as well as some third-party themes. The flaw carries a CVSS score of 9.2; administrators should update immediately to 7.1.2 or ensure automatic updates are enabled. Fixes are also being backported to security-supported WordPress releases from version 4.7 onward.

Do you run this?See affected versions and whether adversaries are exploiting it.
Check your exposure
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

21 events · Jul 20, 2026 – Sep 26, 2026
  1. Sep 26, 20262mo ago

    CISA adds WordPress CVE-2026-87902 to KEV catalog

    U.S. CISA added CVE-2026-87902, the actively exploited WordPress template-inclusion flaw, to its Known Exploited Vulnerabilities catalog. Under Binding Operational Directive 22-01, CISA directed U.S. federal civilian executive branch agencies to remediate the vulnerability by September 24, 2026.

    U.S. CISA adds WordPress flaw to its Known Exploited Vulnerabilities catalog
  2. Reported Sep 25, 20262mo ago

    Guyana National CIRT advises updating WordPress for CVE-2026-87902

    Guyana National CIRT advised WordPress users and administrators to review the vendor guidance and apply the WordPress 7.1.2-or-later update for the unauthenticated page-template path-traversal flaw, which can conditionally lead to remote code execution.

    CIRT.GY | WordPress Security Advisory (September 25th, 2026
  3. Reported Sep 24, 20262mo ago

    Dutch NCSC warns of active exploitation of WordPress CVE-2026-87902

    The Dutch National Cyber Security Centre (NCSC) warned that CVE-2026-87902 in WordPress is actively exploited and advised organizations to apply WordPress's security update promptly. It noted that unauthenticated exploitation can load files outside normal theme directories and, under certain conditions, enable server-side code execution.

    Kwetsbaarheid in WordPress wordt actief misbruikt: update nu | NCSC
  4. Reported Sep 24, 20262mo ago

    MKD-CIRT publishes advisory on exploited WordPress template flaw

    North Macedonia's MKD-CIRT published an advisory on CVE-2026-87902, urging updates to WordPress 7.1.2 or a supported patched branch and log reviews. It identified observed source IPs and payload filenames associated with PEAR-based file-write attempts, and noted that WordPress versions earlier than 4.6 will not receive a fix.

    Хакерите започнаа да ја искористуваат критичната ранливост во WordPress за извршување код | MKD-CIRT | Национален центар за одговор на компјутерски инциденти
  5. Reported Sep 24, 20262mo ago

    Uganda CERT urges WordPress administrators to patch CVE-2026-87902

    Uganda's National CERT and Coordination Center (CERT.UG/CC) issued guidance urging administrators, particularly those manually managing WordPress installations, to update against CVE-2026-87902. It noted that no configuration-based workaround exists and that fixes were backported to legacy WordPress releases.

    WordPress Core Unauthenticated Path Traversal Affects Every Version Since 2016, Can Enable Code Execution (CVE-2026-87902) | Uganda National Computer Emergency Response Team-National Cert
  6. Sep 24, 20262mo ago

    Singapore CSA issues active-exploitation alert for WordPress flaw

    Singapore’s Cyber Security Agency issued an alert stating that CVE-2026-87902 was under active exploitation and urged WordPress administrators to apply updates immediately.

    WordPress Flaw Under Active Attack: Hackers Target CVE-2026-87902 for Code Execution
  7. Reported Sep 23, 20262mo ago

    PEAR escalation conditions and patch validation details documented

    Technical reporting documented that local file inclusion through CVE-2026-87902 may be escalated via an accessible PEAR pearcmd.php file when PHP register_argc_argv is enabled. It also detailed that WordPress added validate_file() to the pagename-derived template branch and an additional _wp_is_template_path_allowed() allowlist check.

    CVE-2026-87902: how close is your WordPress to remote code execution? - Security Affairs
  8. Reported Sep 23, 20262mo ago

    Tenable releases Unix-agent check for unpatched Debian CVE-2026-87902

    Tenable published the unpatched_CVE_2026_87902.nasl Unix-agent plugin to identify potentially affected Debian 12.0, 13.0, and 14.0 systems when local checks and the vendor-unpatched setting are enabled. The plugin supports Nessus Agent and Nessus Risk Information sensors and states that no known exploits are available.

    Linux Distros Unpatched Vulnerability : CVE-2026-87902 | Tenable®
  9. Sep 23, 20262mo ago

    Metasploit module proposed for WordPress CVE-2026-87902 LFI-to-RCE

    A Rapid7 Metasploit Framework pull request proposed exploit/unix/webapp/wp_page_template_lfi_rce for unauthenticated exploitation of CVE-2026-87902. The module uses traversal to include PEAR pearcmd.php, writes a temporary PHP payload via config-create, and demonstrated a reverse shell as www-data against WordPress 7.1.1.

    Add WordPress page-template LFI to RCE module (CVE-2026-87902) by pwnVader · Pull Request #21943 · rapid7/metasploit-framework
  10. Sep 23, 20262mo ago

    Exploitation of WordPress flaw escalates to write-to-disk payloads

    By September 23, 2026, traffic exploiting CVE-2026-87902 had increased tenfold and attackers had progressed from reconnaissance to using PEAR pearcmd.php config-create to write attacker-controlled files to /tmp and /var/tmp. Observed payloads included PHP snippets intended to execute shell commands when accessed.

    Hackers start exploiting critical WordPress flaw for code execution
  11. Sep 23, 20262mo ago

    Canadian cyber agency issues advisory citing exploitation of WordPress flaw

    The Canadian Centre for Cyber Security published advisory AV26-952 for CVE-2026-87902 in WordPress versions before 7.1.2. The advisory cited open-source reporting that the unauthenticated path-traversal flaw was exploited in the wild as of September 22, 2026, and urged administrators to apply available updates.

    WordPress security advisory (AV26-952) - Malware News - Malware Analysis, News and Indicators
  12. Reported Sep 22, 20262mo ago

    WordPress releases 7.1.2 to fix critical template-inclusion flaw

    WordPress released version 7.1.2 to remediate CVE-2026-87902 (GHSA-7hp8-65ch-5whp), a critical improper filename-validation flaw in get_page_template() with a reported CVSS score of 9.2. Under required server and theme conditions, an unauthenticated attacker could include a readable local PHP file outside active theme directories, potentially enabling remote code execution; WordPress also began backporting fixes to supported branches through version 4.7.

    WordPress 7.1.2 Release - WordPress News
  13. Sep 22, 20262mo ago

    Tenable publishes Nessus detection plugin for WordPress 7.1.2 flaw

    Tenable published the wordpress_7_1_2.nasl Nessus CGI-abuse plugin to detect WordPress installations affected by the issue fixed in version 7.1.2. The check requires paranoid reporting, CGI scanning, and evidence of PHP and WordPress; Tenable stated that no known exploits were available.

    WordPress 7.0.0 < 7.1.2 | Tenable®
  14. Sep 22, 20262mo ago

    Wordfence deploys CVE-2026-87902 protection for paid customers

    Wordfence Premium, Care, and Response customers received firewall protection against attempts targeting CVE-2026-87902. The protection was deployed on September 22, 2026; availability for free users was only scheduled for a later date.

    PSA: Critical Unauthenticated Path Traversal Vulnerability Patched in WordPress Core - Malware News - Malware Analysis, News and Indicators
  15. Sep 22, 20262mo ago

    Nuclei template revised with pagename traversal detection details

    The CVE-2026-87902 Nuclei YAML template was revised to document and detect URL-encoded traversal through the WordPress pagename parameter, which can reach wp-links-opml.php via template resolution. The refactor improved the template's description, impact, remediation, flow, and matchers.

    Added CVE-2026-87902 - WordPress Core - Unauthenticated Page Template Path Traversal by FLX-0x00 · Pull Request #17302 · projectdiscovery/nuclei-templates
  16. Sep 22, 20262mo ago

    Nuclei template proposed for WordPress CVE-2026-87902

    A ProjectDiscovery Nuclei Templates pull request added a template for WordPress CVE-2026-87902, characterized as a path-traversal issue. GitHub Actions assigned DhiyaneshGeek and requested review from theamanrawat for commit abfe901.

    Add WordPress CVE-2026-87902 path traversal template by Mrs-Skelli · Pull Request #17300 · projectdiscovery/nuclei-templates
  17. Sep 22, 20262mo ago

    Attackers first attempt PEAR-based file writes against WordPress flaw

    At 15:34 UTC on September 22, 2026, attackers were observed using PEAR pearcmd.php's config-create function through CVE-2026-87902 to attempt writing attacker-controlled PHP files to /tmp and /var/tmp. The activity followed reconnaissance requests and included payloads intended to confirm execution capability or run shell commands.

    CVE-2026-87902: Attackers Started Probing WordPress Sites Hours After the Patch - Patchstack
  18. Sep 22, 20262mo ago

    Active probing begins for WordPress CVE-2026-87902

    Active probing of internet-facing WordPress sites targeting CVE-2026-87902 was observed within hours of the patch release. The observed requests used payloads derived from the published fix.

    Critical Vulnerability in WordPress Disclosed (CVE-2026-87902)
  19. Sep 22, 20262mo ago

    Robert Ressl releases public PoC for WordPress template flaw

    On September 22, 2026, researcher Robert Ressl released a public proof of concept and reproducible laboratory environment for CVE-2026-87902, following his earlier private report to WordPress. The published research demonstrated exploit prerequisites and an RCE path involving PEAR pearcmd.php when register_argc_argv is enabled.

    CVE-2026-87902 in WordPress Enables Conditional RCE
  20. Sep 2026

    CrowdSec reports mass exploitation and post-compromise activity

    CrowdSec recorded 322,680 CVE-2026-87902 exploitation signals from 30,813 unique source IP addresses between September 23 and 27, 2026, with daily volume rising to 124,154 signals and 95% classified as infrastructure takeover. Reporting also identified web-shell uploaders following exploitation and warned that compromised servers could expose wp-config.php credentials and be used for phishing or payment-card skimming.

    CVE-2026-87902 : 30 000 IP ciblent WordPress en 5 jours via une faille LFI critique | CyberVeille
  21. Jul 20, 20264mo ago

    Robert Ressl privately reports WordPress template flaw

    Security researcher Robert Ressl privately reported CVE-2026-87902 to WordPress through its HackerOne program. WordPress acknowledged the vulnerability report on July 21, 2026.

    CVE-2026-87902: Critical WordPress Core RCE Flaw
Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, breaches, and observables Mallory has linked to this story. Indicator values are masked here and available in full in the app.

Open in app →

Affected products

1 linked
Wordpress

Observables

11 linked

Indicator values are masked on this page. View all 11 in Mallory Domains, IPs, hashes, and URLs are exportable to your SIEM.

Do you run this?See whether adversaries are exploiting this yet, and where the affected versions run in your environment.
Check Your Exposure
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.