CVE-2026-87902
WordPress Core Remote File Inclusion Vulnerability
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.
Description as published by the source, in English.
Key facts
- Published
- 2026-09-22
- Last modified
- 2026-09-28
- Assigned by
- support@hackerone.com
- CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H- Scored by
- 134c704f-9b21-4f2e-91b3-4a467353bcc0
- Fix available
- Not registered in the sources
Actively exploited
CISA added this vulnerability to the Known Exploited Vulnerabilities catalogue on 2026-09-25, with a remediation deadline of 2026-09-28 for US federal agencies.
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 products
| Vendor | Product | Versions | Status |
|---|---|---|---|
| Wordpress | Wordpress | < 4.7.37 | Affected |
| Wordpress | Wordpress | ≥ 4.8, < 4.8.32 | Affected |
| Wordpress | Wordpress | ≥ 4.9, < 4.9.33 | Affected |
| Wordpress | Wordpress | ≥ 5.0, < 5.0.29 | Affected |
| Wordpress | Wordpress | ≥ 5.1, < 5.1.26 | Affected |
| Wordpress | Wordpress | ≥ 5.2, < 5.2.28 | Affected |
| Wordpress | Wordpress | ≥ 5.3, < 5.3.25 | Affected |
| Wordpress | Wordpress | ≥ 5.4, < 5.4.23 | Affected |
| Wordpress | Wordpress | ≥ 5.5, < 5.5.22 | Affected |
| Wordpress | Wordpress | ≥ 5.6, < 5.6.21 | Affected |
| Wordpress | Wordpress | ≥ 5.7, < 5.7.19 | Affected |
| Wordpress | Wordpress | ≥ 5.8, < 5.8.17 | Affected |
| Wordpress | Wordpress | ≥ 5.9, < 5.9.18 | Affected |
| Wordpress | Wordpress | ≥ 6.0, < 6.0.16 | Affected |
| Wordpress | Wordpress | ≥ 6.1, < 6.1.14 | Affected |
| Wordpress | Wordpress | ≥ 6.2, < 6.2.13 | Affected |
| Wordpress | Wordpress | ≥ 6.3, < 6.3.12 | Affected |
| Wordpress | Wordpress | ≥ 6.4, < 6.4.12 | Affected |
| Wordpress | Wordpress | ≥ 6.5, < 6.5.12 | Affected |
| Wordpress | Wordpress | ≥ 6.6, < 6.6.9 | Affected |
| Wordpress | Wordpress | ≥ 6.7, < 6.7.9 | Affected |
| Wordpress | Wordpress | ≥ 6.8, < 6.8.10 | Affected |
| Wordpress | Wordpress | ≥ 6.9, < 6.9.9 | Affected |
| Wordpress | Wordpress | ≥ 7.0, < 7.0.6 | Affected |
| Wordpress | Wordpress | ≥ 7.1, < 7.1.2 | Affected |
Weakness type
-
CWE-98: Improper Control of Filename for Include/Require Statement in PHP Program
The PHP application receives input from an upstream component, but it does not restrict or incorrectly restricts the input before its usage in "require," "include," or similar functions.
References
- https://github.com/WordPress/wordpress-develop/security/advisories/GHSA-7hp8-65ch-5whp
- https://patchstack.com/articles/cve-2026-87902-attackers-started-probing-wordpress-sites-…
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-87902
Related at Berigo
Articles
-
Almost a third of this week's listed vulnerabilities have no severity score
Same product
2026-08-25
The weekly vulnerability summary from CISA lists 3882 vulnerabilities for the week beginning 10 August. 1184 of them have no calculated severity scor…
-
A fake job offer ended with a rootkit in the Windows kernel
Same product
2026-08-12
Check Point Research attributes a new wave of Operation Dream Job to Lazarus, where fake job offers in the defence and aviation industries ended in e…
-
The WordPress login screen let anyone inject code
Same product
2026-08-08
WordPress released version 7.0.3 on 6 August, fixing a vulnerability on the login screen that requires no sign-in. The finders show how the flaw can,…
-
Europol-led operation disrupts three malware networks
Same product
2026-06-24
Europol and Eurojust coordinated an international operation that took down over 200 domains and IP addresses tied to SocGholish, Amadey and StealC.
Does this affect you?
A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.