Security AffairsPierluigi Paganini
WordPress Patches Critical Flaw Enabling Conditional Code Execution
Part of the CVE-2026-87902 story · since 22 Sep
- Tue 22 Sep, 18:01 UTC. SecurityOnline, first report. WordPress Fixes High Risk Path Traversal Flaw Enabling Code Execution. Cites a CVE in CISA KEV.
- Wed 23 Sep, 08:47 UTC. Security Affairs, its first report on the story. WordPress Patches Critical Flaw Enabling Conditional Code Execution. Cites a CVE in CISA KEV. This article, 2nd of 10.
- Wed 23 Sep, 17:38 UTC. SecurityOnline. WordPress RCE Flaw Exploited in the Wild as PoC Goes Public. Cites a CVE in CISA KEV.
- Thu 24 Sep, 07:36 UTC. SecurityWeek, its first report on the story. WordPress Flaw Exploited Within Hours to Gain Remote Code Execution. Cites a CVE in CISA KEV.
- Thu 24 Sep, 08:47 UTC. The Hacker News, its first report on the story. Attackers Exploit Critical WordPress Flaw Hours After Disclosure. Cites a CVE in CISA KEV.
- Fri 25 Sep, 20:01 UTC. CISA, its first report on the story. CISA Warns of Actively Exploited WordPress Flaw Enabling Code Execution. Cites a CVE in CISA KEV.
- Sat 26 Sep, 08:26 UTC. Security Affairs. CISA Warns of Actively Exploited WordPress Flaw Enabling RCE. Cites a CVE in CISA KEV.
- Sun 27 Sep, 14:30 UTC. Security Affairs. OpenAI Agents Bypassed Controls on US and Australian Government Sites. Cites a CVE in CISA KEV.
- Mon 28 Sep, 02:30 UTC. SecurityOnline. Nine Flaws Exploited as Attackers Target Edge Products and WordPress. Cites a CVE in CISA KEV.
- Mon 28 Sep, 14:30 UTC. Check Point, its first report on the story. Check Point Warns of Active Exploits and AI-Powered Attacks. Cites a CVE in CISA KEV.
WordPress 7.1.2, released on 22 September 2026, fixes an unauthenticated local file inclusion vulnerability tracked as CVE-2026-87902, with a CVSS score of 9.2. The flaw affects versions from 4.7.0 onwards and arises in `get_page_template()`, which builds candidate template filenames using the URL’s `pagename` value.
Unlike a nearby filename check using `validate_file()`, this value was not properly validated, allowing an attacker to use URL decoding and directory traversal to influence which local file WordPress includes. Robert Ressl reported the vulnerability.
The inclusion does not automatically provide arbitrary code execution: it runs code already present in the selected PHP file. However, Patchstack says exploitation can lead to remote code execution when a suitable `page-` theme directory exists and PHP’s `register_argc_argv` setting is enabled. The report identifies PEAR’s `pearcmd.php` as a possible route and says the setting is enabled by default in official PHP Docker images and in cPanel environments using PHP versions below 8.5. The article describes this as a conditional exploitation chain, not confirmed widespread exploitation.
WordPress’s fix adds the missing `validate_file()` check and introduces `_wp_is_template_path_allowed()`, which validates resolved template paths more broadly. Administrators should update through the WordPress dashboard or WordPress.org; fixes are available for supported branches back to 4.7. If immediate patching is not possible, checking whether the active theme contains a directory beginning `page-` and whether `register_argc_argv` is enabled can help assess exposure, although neither check mitigates the flaw.
How the story developed
10 articles from 6 outlets since 22 Sep. Quiet since 28 Sep. This was the 2nd report, 15 hours after the first.
- Tue 22 Sep, 18:01 UTC. SecurityOnline, first report. WordPress Fixes High Risk Path Traversal Flaw Enabling Code Execution. Cites a CVE in CISA KEV.
- Wed 23 Sep, 08:47 UTC. Security Affairs, its first report on the story. WordPress Patches Critical Flaw Enabling Conditional Code Execution. Cites a CVE in CISA KEV. This article, 2nd of 10.
- Wed 23 Sep, 17:38 UTC. SecurityOnline. WordPress RCE Flaw Exploited in the Wild as PoC Goes Public. Cites a CVE in CISA KEV.
- Thu 24 Sep, 07:36 UTC. SecurityWeek, its first report on the story. WordPress Flaw Exploited Within Hours to Gain Remote Code Execution. Cites a CVE in CISA KEV.
- Thu 24 Sep, 08:47 UTC. The Hacker News, its first report on the story. Attackers Exploit Critical WordPress Flaw Hours After Disclosure. Cites a CVE in CISA KEV.
- Fri 25 Sep, 20:01 UTC. CISA, its first report on the story. CISA Warns of Actively Exploited WordPress Flaw Enabling Code Execution. Cites a CVE in CISA KEV.
- Sat 26 Sep, 08:26 UTC. Security Affairs. CISA Warns of Actively Exploited WordPress Flaw Enabling RCE. Cites a CVE in CISA KEV.
- Sun 27 Sep, 14:30 UTC. Security Affairs. OpenAI Agents Bypassed Controls on US and Australian Government Sites. Cites a CVE in CISA KEV.
- Mon 28 Sep, 02:30 UTC. SecurityOnline. Nine Flaws Exploited as Attackers Target Edge Products and WordPress. Cites a CVE in CISA KEV.
- Mon 28 Sep, 14:30 UTC. Check Point, its first report on the story. Check Point Warns of Active Exploits and AI-Powered Attacks. Cites a CVE in CISA KEV.
- Known exploited CVE
- No CVE
- Larger: an outlet’s first report
- Square: official source
- Coverage over time
- Quiet time, folded
Show all 10 articles as a listHide the list
- Tue 22 SepDay 01
- WordPress Fixes High Risk Path Traversal Flaw Enabling Code Execution18:01 · SecurityOnline · First report · Exploited CVE · Known exploited CVE
- Wed 23 SepDay 12
- WordPress Patches Critical Flaw Enabling Conditional Code Execution08:47 · Security Affairs · Known exploited CVE · This article, 2nd of 10
- WordPress RCE Flaw Exploited in the Wild as PoC Goes Public17:38 · SecurityOnline · Known exploited CVE
- Thu 24 SepDay 22
- WordPress Flaw Exploited Within Hours to Gain Remote Code Execution07:36 · SecurityWeek · Known exploited CVE
- Attackers Exploit Critical WordPress Flaw Hours After Disclosure08:47 · The Hacker News · Known exploited CVE
- Fri 25 SepDay 31
- CISA Warns of Actively Exploited WordPress Flaw Enabling Code Execution20:01 · CISA · official · CISA alert · Known exploited CVE
- Sat 26 SepDay 41
- CISA Warns of Actively Exploited WordPress Flaw Enabling RCE08:26 · Security Affairs · Known exploited CVE
- Sun 27 SepDay 51
- OpenAI Agents Bypassed Controls on US and Australian Government Sites14:30 · Security Affairs · Known exploited CVE
- Mon 28 SepDay 62
- Nine Flaws Exploited as Attackers Target Edge Products and WordPress02:30 · SecurityOnline · Known exploited CVE
- Check Point Warns of Active Exploits and AI-Powered Attacks14:30 · Check Point · Known exploited CVE