InfraGuard

CVE-2026-87902

8.1 CVSS 3.1 Exploited in the wildEPSS 95.8%

What is wrong

An unauthenticated attacker can cause `get_page_template()` resolution to include a readable local `.php` file outside active theme directories. If specific preconditions for both the server and the active theme are met, this vulnerability can lead to remote code execution.

Who is affected

This vulnerability affects WordPress versions prior to 7.1.2.

What to do

Upgrade WordPress to version 7.1.2.

Original 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.

Known exploited (CISA KEV)

Added to KEV
2026-09-25
Remediation due (US federal)
2026-09-28
Ransomware use
Unknown
Required action
Apply mitigations in accordance with vendor instructions, ensuring compliance with CISA’s BOD 26-04 Prioritizing Security Updates Based on Risk (see URL in Notes) guidance and CISA’s “Forensics Triage Requirements” (see URL in Notes). Follow applicable BOD 26-04 guidance for cloud services or discontinue use of the product if mitigations are unavailable. Stakeholders are responsible for evaluating each asset's internet exposure and ensuring adherence to BOD 26-04 patching guidelines.

Affected software

Details

Published
2026-09-22
Last modified
2026-09-28
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
CWE
CWE-98
EPSS (30-day exploit probability)
95.77% (percentile 100)

References

Track these versions on your own servers

InfraGuard collects installed software versions from every server and flags the ones with known vulnerabilities. Self-hosted — nothing leaves your network.

Weekly exploited-vulnerability digest

The KEV additions that matter for self-hosted servers, once a week. No other mail.

This product uses data from the NVD API but is not endorsed or certified by the NVD. CVE® is a registered trademark of The MITRE Corporation; CVE records are used under the CVE Program Terms of Use.