2084AI Security Observatory

CVE

CVE-2026-87902

CVE-2026-87902HIGH 8.1KEVEPSS 100%

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

Affected versions

All WordPress vulnerabilities →

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

Distribution packages (Debian, Ubuntu, Red Hat…) backport fixes without changing the upstream version: check your distribution’s advisory as well.

Data: NVD (public domain), CISA KEV (CC0), FIRST EPSS, OSV.dev / GitHub Advisory Database (CC-BY 4.0) · This database lists affected versions and fixes only. It never hosts or links exploit code.