PHP file inclusion in WordPress - CVE-2026-87902
Published: September 23, 2026 / Updated: September 25, 2026
Vulnerability details
The vulnerability allows a remote attacker to execute arbitrary code.
The vulnerability exists due to improper control of the filename for a PHP include statement in get_page_template() page-template resolution when resolving a page template. A remote attacker can cause a chosen readable local PHP file outside the active theme directories to be included to execute arbitrary code.
Exploitation requires an active child or parent theme with a top-level directory whose name begins with "page-" and a chosen local PHP file that is readable by the web server account.
Affected software
Fedora
wordpress
How to mitigate CVE-2026-87902
wordpress - addressed in versions 6.9.9-1.el9, 6.9.9-1.el10_2, 6.9.9-1.fc43, 6.9.9-1.fc44, 7.1.2-1.el10_3, 7.1.2-1.el10_4, 7.1.2-1.fc45