CVE-2026-87902: WordPress Core Remote File Inclusion Vulnerability

Published Sep 22, 2026
·
Updated

An unauthenticated attacker can make getpagetemplate() page-template resolution include a chosen readable local .php file outside the active theme directories. If relevant pre-conditions for both the server and the active theme are met, this can lead to RCE.

Other sources

WordPress Core contains a remote file inclusion vulnerability which could allow an unauthenticated attacker to make page-template resolution include a chosen readable local .php file outside the active theme directories, leading to remote code execution.

— CISA

Affected Software

27 affected components
WordPress WordPress
WordPress Core
WordPress WordPress<4.7.37
WordPress WordPress>=4.8<4.8.32
WordPress WordPress>=4.9<4.9.33
WordPress WordPress>=5.0<5.0.29
WordPress WordPress>=5.1<5.1.26
WordPress WordPress>=5.2<5.2.28
WordPress WordPress>=5.3<5.3.25
WordPress WordPress>=5.4<5.4.23
WordPress WordPress>=5.5<5.5.22
WordPress WordPress>=5.6<5.6.21
WordPress WordPress>=5.7<5.7.19
WordPress WordPress>=5.8<5.8.17
WordPress WordPress>=5.9<5.9.18
WordPress WordPress>=6.0<6.0.16
WordPress WordPress>=6.1<6.1.14
WordPress WordPress>=6.2<6.2.13
WordPress WordPress>=6.3<6.3.12
WordPress WordPress>=6.4<6.4.12
WordPress WordPress>=6.5<6.5.12
WordPress WordPress>=6.6<6.6.9
WordPress WordPress>=6.7<6.7.9
WordPress WordPress>=6.8<6.8.10
WordPress WordPress>=6.9<6.9.9
WordPress WordPress>=7.0<7.0.6
WordPress WordPress>=7.1<7.1.2

Event History

Sep 22, 2026
CVE Published
via MITRE·04:44 PM
Data Sourced
via MITRE·04:44 PM
DescriptionWeakness
Data Sourced
via NVD·05:17 PM
DescriptionSeverityWeaknessAffected Software
Sep 25, 2026
Kev Listed
via CISA·12:00 AM
Known Exploited
via CISA·12:00 AM
Data Sourced
via CISA·12:00 AM
RemedyDescriptionAffected Software
Oct 1, 2026
Exploit Published
via ExploitDB·12:00 AM

Frequently Asked Questions

1

Is authentication required to exploit this issue?

No. The issue can be triggered by an unauthenticated attacker.

2

Does successful exploitation always result in remote code execution?

No. Remote code execution is possible only when relevant preconditions in both the server environment and the active theme are met.

3

What part of the WordPress installation is relevant to exposure?

Exposure involves page-template resolution and the active theme directories. The impact depends on whether the server and active theme meet the necessary preconditions.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203