Local File Inclusion in WordPress Leading to Remote Code Execution
CVE-2026-87902

8.1HIGH

Key Information:

Vendor

WordPress

Status
Vendor
CVE Published:
22 September 2026

What is CVE-2026-87902?

An unauthenticated attacker can exploit a vulnerability in WordPress that allows get_page_template() to inadvertently resolve and include a chosen local .php file located outside of the active theme directories. When specific server conditions and configurations of the active theme are met, this can facilitate remote code execution, posing significant security risks.

Affected Version(s)

WordPress 0 < 7.1.2

References

CVSS V3.1

Score:
8.1
Severity:
HIGH
Confidentiality:
High
Integrity:
High
Availability:
High
Attack Vector:
Network
Attack Complexity:
High
Privileges Required:
None
User Interaction:
None
Scope:
Unchanged

Timeline

  • Vulnerability published

  • Vulnerability Reserved

Credit

Robert (ressl)
.