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.
Advisories
Source ID Title
Debian DSA Debian DSA DSA-6525-1 wordpress security update
Fixes

Solution

No solution given by the 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.

History

Thu, 08 Oct 2026 19:30:00 +0000

Type Values Removed Values Added
Title WordPress LFI via get_page_template() Enables Remote Code Execution

Fri, 02 Oct 2026 15:30:00 +0000

Type Values Removed Values Added
Title WordPress LFI via get_page_template() Enables Remote Code Execution

Thu, 01 Oct 2026 23:00:00 +0000

Type Values Removed Values Added
Title Unauthenticated File Inclusion Enables Remote Code Execution in WordPress

Tue, 29 Sep 2026 16:15:00 +0000

Type Values Removed Values Added
Title Unauthenticated File Inclusion Enables Remote Code Execution in WordPress

Mon, 28 Sep 2026 16:30:00 +0000

Type Values Removed Values Added
Title Local File Inclusion Leading to Remote Code Execution via get_page_template() in WordPress

Mon, 28 Sep 2026 12:30:00 +0000

Type Values Removed Values Added
CPEs cpe:2.3:a:wordpress:wordpress:*:*:*:*:*:*:*:*

Sat, 26 Sep 2026 15:30:00 +0000

Type Values Removed Values Added
Title Local File Inclusion Leading to Remote Code Execution via get_page_template() in WordPress

Fri, 25 Sep 2026 21:30:00 +0000

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'}


Fri, 25 Sep 2026 20:30:00 +0000


Fri, 25 Sep 2026 19:45:00 +0000

Type Values Removed Values Added
Metrics kev

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


Fri, 25 Sep 2026 01:30:00 +0000

Type Values Removed Values Added
Title Local File Inclusion in WordPress get_page_template() Leading to Remote Code Execution

Tue, 22 Sep 2026 18:00:00 +0000

Type Values Removed Values Added
Title Local File Inclusion in WordPress get_page_template() Leading to Remote Code Execution

Tue, 22 Sep 2026 17:45:00 +0000

Type Values Removed Values Added
First Time appeared Wordpress
Wordpress wordpress
Vendors & Products Wordpress
Wordpress wordpress

Tue, 22 Sep 2026 17:30:00 +0000

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'}


Tue, 22 Sep 2026 16:45:00 +0000

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

Projects

Sign in to view the affected projects.

cve-icon MITRE

Status: PUBLISHED

Assigner: hackerone

Published:

Updated: 2026-09-26T03:55:51.560Z

Reserved: 2026-09-09T15:00:00.574Z

Link: CVE-2026-87902

cve-icon Vulnrichment

Updated: 2026-09-22T16:57:19.735Z

cve-icon NVD

Status : Analyzed

Published: 2026-09-22T17:17:28.310

Modified: 2026-09-28T12:20:54.040

Link: CVE-2026-87902

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-25T20:15:14Z

Weaknesses