Impact
Unauthenticated attackers can exploit WordPress's get_page_template() function to include a user‑chosen readable .php file located outside the active theme directories. When the server and the theme meet the required pre‑conditions this inclusion can be leveraged to execute arbitrary code on the host, making this flaw a local file inclusion vulnerability (CWE‑98).
Affected Systems
All WordPress installations on branches back to 4.7 that have not applied the backported fix introduced in WordPress 7.1.2 are affected. Installations on older branches are also at risk if the fix has not been applied.
Risk and Exploitability
The vulnerability allows unauthenticated remote code execution and can be triggered through crafted requests to get_page_template(). It is scored 8.1 on the CVSS scale, indicating high severity. It is listed in the CISA KE catalog, and the EPSS score of 40% indicates a moderate probability of exploitation, though risk remains significant if the server and theme pre‑conditions are satisfied.
OpenCVE Enrichment
Debian DSA