CWE data temporarily unavailableCWE data is currently experiencing intermittent outages, which may cause incomplete section loading on CVE pages. We are actively working on a fix.

CVE-2026-87902

Description

A flaw was found in WordPress. An unauthenticated attacker can exploit a vulnerability in the get_page_template() function's page-template resolution. This allows the attacker to include a chosen readable local PHP file from outside the active theme directories. If specific server and active theme pre-conditions are met, this can lead to remote code execution (RCE), enabling the attacker to run arbitrary code on the affected system.

Statement

Red Hat Product Security has determined that this vulnerability does not affect any currently supported Red Hat product. This assessment may evolve based on further analysis and discovery. For more information about this vulnerability and the products it affects, please see the linked references.

Frequently Asked Questions

Want to get errata notifications? Sign up here.