Skip to content
StratQuad

Threats

WordPress Core page template file inclusion vulnerability

CVE-2026-87902Known exploitedHigh

WordPress Core contains a flaw in the `get_page_template()` function that allows an unauthenticated attacker to include a chosen readable PHP file from outside the active theme directories. An attacker can exploit this to include arbitrary local PHP files on the server. If certain conditions are met on both the server and the active theme, this can lead to remote code execution.

Plain English summary of the NVD and CISA text, checked by machine against both.

Scores and dates

CVSS 3.1
8.1
HIGH
EPSS score
0.96
Probability of exploitation in 30 days
EPSS percentile
99th
Share of scored CVEs at or below this one
Added to KEV
25 Sept
CISA due date
28 Sept
Applies to US federal agencies

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Daily EPSS score, 3 Nov to 15 Nov, source FIRST

Detail

WordPress Core. CISA required action: Apply mitigations in accordance with vendor instructions, ensuring compliance with CISA’s BOD 26-04 Prioritizing Security Updates Based on Risk guidance and CISA’s “Forensics Triage Requirements”. 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.

Weakness: CWE-98 (opens in a new tab)

Affected versions

  • wordpress wordpress: before 4.7.37
  • wordpress wordpress: from 4.8, before 4.8.32
  • wordpress wordpress: from 4.9, before 4.9.33
  • wordpress wordpress: from 5.0, before 5.0.29
  • wordpress wordpress: from 5.1, before 5.1.26
  • wordpress wordpress: from 5.2, before 5.2.28
  • wordpress wordpress: from 5.3, before 5.3.25
  • wordpress wordpress: from 5.4, before 5.4.23
  • wordpress wordpress: from 5.5, before 5.5.22
  • wordpress wordpress: from 5.6, before 5.6.21
  • wordpress wordpress: from 5.7, before 5.7.19
  • wordpress wordpress: from 5.8, before 5.8.17
  • wordpress wordpress: from 5.9, before 5.9.18
  • wordpress wordpress: from 6.0, before 6.0.16
  • wordpress wordpress: from 6.1, before 6.1.14
  • wordpress wordpress: from 6.2, before 6.2.13
  • wordpress wordpress: from 6.3, before 6.3.12
  • wordpress wordpress: from 6.4, before 6.4.12
  • wordpress wordpress: from 6.5, before 6.5.12
  • wordpress wordpress: from 6.6, before 6.6.9
  • wordpress wordpress: from 6.7, before 6.7.9
  • wordpress wordpress: from 6.8, before 6.8.10
  • wordpress wordpress: from 6.9, before 6.9.9
  • wordpress wordpress: from 7.0, before 7.0.6
  • wordpress wordpress: from 7.1, before 7.1.2