CVE DatabaseCVE-2026-87902
한국어 권고문 →
CVE-2026-879028.1/HIGHCISA KEVCWE-98

WordPress Core get_page_template() Local File Inclusion (LFI) and Remote Code Execution (RCE) (CVE-2026-87902)

Affected Vendors
WordPress
Affected Components
WordPress Core
Published Date
2026-09-22

Executive & SecOps Summary

SECOPS ASSESSMENT
Affected Scope

All WordPress installations running vulnerable core versions and specific themes.

Impact

Unauthenticated attackers can include and execute arbitrary local PHP files, leading to full server compromise.

Mitigation

Immediate update to the latest WordPress security release and deployment of WAF filtering rules.

Affected Products & Version Scope

All WordPress sites using vulnerable versions of the core software are at high risk, especially those with publicly accessible upload directories or verbose logging.

Remediation & Live Workaround Commands

PATCH & WORKAROUND
  • Update WordPress: Apply the latest security patches immediately via the dashboard or CLI.
bash
wp core update
  • WAF Configuration: Implement rules to detect and block directory traversal sequences (../) in URL parameters related to page templates.
  • Hardening: Restrict file system permissions and disable PHP execution in the /wp-content/uploads/ directory using .htaccess or Nginx configuration.
Recommended Security Control & Mitigation Partner
Cloudflare Enterprise & Pro WAF
Apply the official WordPress security patch immediately and monitor for suspicious template resolution requests in access logs.

Block Exploits Instantly with Managed Virtual Patching Rules

Can't patch production immediately? Deploy managed WAF rules at the edge to intercept RCE, SQLi, and deserialization payloads before they hit your origin server.

3-min setup · Automated Zero-Day Managed Rules
Practice Exploiting & Patching This Web Vulnerability in an Interactive Lab
Launch Hands-On Security Lab

Technical Root Cause & Exploitation Mechanics

The vulnerability stems from an improper path resolution logic within the get_page_template() function. An unauthenticated attacker can manipulate template resolution to include arbitrary .php files located outside the active theme's directory (CWE-98). If the attacker can influence the content of any local PHP file (e.g., via log poisoning or media uploads), this LFI can be escalated to Remote Code Execution (RCE). With an EPSS score of 0.94 and inclusion in the CISA KEV catalog, this flaw is being actively exploited in the wild.

Official Vendor Advisories & References

SecOps Advisory Dispatch & RSS Feed

Subscribe to Daily Vulnerability Briefings & KEV Alerts

Concise morning briefings for SecOps, DevSecOps, and SRE teams covering newly exploited CVEs and mitigation priorities.

Slack / Teams / RSS Feed: