CVE-2026-87902

Published Sep 22, 2026 CVSS 3.1 · 8.1 High EPSS 95.8% KEV · Listed
Description
An unauthenticated attacker can make `get_page_template()` 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.

Remediation

Vendor Workaround

WordPress 7.1.2 has been released containing a fix for the vulnerability, and as a courtesy to users on older branches the fix has been backported to all branches back to 4.7.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DSA Debian DSA DSA-6525-1 wordpress security update
History
Type Values Removed Values Added
Title WordPress LFI via get_page_template() Enables Remote Code Execution
Type Values Removed Values Added
Title WordPress LFI via get_page_template() Enables Remote Code Execution
Type Values Removed Values Added
Title Unauthenticated File Inclusion Enables Remote Code Execution in WordPress
Type Values Removed Values Added
Title Unauthenticated File Inclusion Enables Remote Code Execution in WordPress
Type Values Removed Values Added
Title Local File Inclusion Leading to Remote Code Execution via get_page_template() in WordPress
Type Values Removed Values Added
CPEs cpe:2.3:a:wordpress:wordpress:*:*:*:*:*:*:*:*
Type Values Removed Values Added
Title Local File Inclusion Leading to Remote Code Execution via get_page_template() in WordPress
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'active', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Metrics kev

{'dateAdded': '2026-09-25T00:00:00+00:00', 'dueDate': '2026-09-28T00:00:00+00:00'}

Type Values Removed Values Added
Title Local File Inclusion in WordPress get_page_template() Leading to Remote Code Execution
Type Values Removed Values Added
Title Local File Inclusion in WordPress get_page_template() Leading to Remote Code Execution
Type Values Removed Values Added
First Time appeared Wordpress
Wordpress wordpress
Vendors & Products Wordpress
Wordpress wordpress
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 8.1, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description An unauthenticated attacker can make `get_page_template()` 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.
Weaknesses CWE-98
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
hackerone
Published
Updated
Sep 26, 2026, 3:55 AM
Reserved
Sep 9, 2026, 3:00 PM
Status
Analyzed
Published
Sep 22, 2026, 5:17 PM
Modified
Sep 28, 2026, 12:20 PM