<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/hackers-exploited-a-critical-wordpress-flaw-within-hours-of-the-patch-gepwlzwhr" -->

---
title: Hackers exploited a critical WordPress flaw within hours...
description: A critical WordPress vulnerability, CVE-2026-87902, was actively exploited within hours of its patch release. The flaw in get_page_template() lets an...
canonical: https://daily.dev/posts/hackers-exploited-a-critical-wordpress-flaw-within-hours-of-the-patch-gepwlzwhr
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Hackers exploited a critical WordPress flaw within hours of the patch | daily.dev
og:description: A critical WordPress vulnerability, CVE-2026-87902, was actively exploited within hours of its patch release. The flaw in get_page_template() lets an...
og:url: https://daily.dev/posts/hackers-exploited-a-critical-wordpress-flaw-within-hours-of-the-patch-gepwlzwhr
og:image: https://api.daily.dev/og/posts/GEpWlZwHR.png
og:image:alt: Hackers exploited a critical WordPress flaw within hours of the patch
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Hackers exploited a critical WordPress flaw within hours of the patch

**[The Next Web](https://daily.dev/sources/tnw)** · 2 min read · 0 upvotes · 0 comments

## Summary

A critical WordPress vulnerability, CVE-2026-87902, was actively exploited within hours of its patch release. The flaw in get_page_template() lets an unauthenticated attacker load a readable PHP file outside the active theme's folders, but only when the theme has a top-level folder starting with 'page-' and the server has an exploitable PHP file, typically pearcmd.php from the PEAR package manager. WordPress fixed the issue in version 7.1.2 on 22 September, patching every branch back to 4.7, with a CVSS score of 9.2. Patchstack observed the first attacks at 11:49 UTC that day, with traffic peaking more than tenfold by midday the next day. Security firm Previdian logged 68 exploitation attempts; its CEO Ryan Dewhurst noted that WordPress's default auto-updates should limit actual compromises despite mass probing. Mitigations include updating to 7.1.2, blocking '..' sequences in the pagename parameter, or disabling PHP's register_argc_argv setting. The disclosure follows a string of quickly exploited flaws this month, including a Cisco ISE zero-day, Microsoft's 974-flaw Patch Tuesday, and a Chrome V8 zero-day.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://thenextweb.com/news/wordpress-flaw-cve-2026-87902-exploited>

## Questions this post answers

### What is CVE-2026-87902 in WordPress and how does the exploit work?

CVE-2026-87902 is a critical WordPress vulnerability in the get_page_template() function that lets an unauthenticated attacker load a readable PHP file from outside the active theme's folders. It requires the active theme to have a top-level folder starting with 'page-' and a usable PHP file on the server, typically pearcmd.php from the PEAR package manager, which attackers use to write files into /tmp and /var/tmp. It carries a CVSS score of 9.2.

_Teams patching WordPress sites can track fast-moving CVEs like this one on daily.dev._

### Which WordPress version fixes CVE-2026-87902 and what should site owners do?

WordPress fixed CVE-2026-87902 in version 7.1.2, released 22 September, with patches backported to every branch as far back as 4.7. Site owners should update to 7.1.2 or their branch's patched release, block '..' sequences in the pagename parameter, and disable PHP's register_argc_argv setting to break the pearcmd exploitation step.

_Developers tracking urgent WordPress patches can follow security advisories on daily.dev._

### How quickly was the WordPress CVE-2026-87902 flaw exploited after patching?

Attackers began probing within hours of the fix, with the first attacks recorded at 11:49 UTC on 22 September, the same day WordPress shipped version 7.1.2. Exploitation traffic climbed steadily and peaked around midday UTC on 23 September at more than ten times the volume seen the first evening, according to security firm Patchstack.

_Security engineers monitoring rapid post-disclosure exploits can follow incident timelines on daily.dev._

## Similar posts on daily.dev

- [CISA flags WordPress RCE flaw as actively exploited in attacks](https://daily.dev/posts/cisa-flags-wordpress-rce-flaw-as-actively-exploited-in-attacks-ttytuolnc) · BleepingComputer · 2 upvotes · 0 comments
- [wp2shell: WordPress Patches a Pre-Auth RCE That Needed No Plugins](https://daily.dev/posts/wp2shell-wordpress-patches-a-pre-auth-rce-that-needed-no-plugins-pmh9adxqu) · Latest Hacking News · 2 upvotes · 0 comments
- [PHP2Shell: Why One PHP Vulnerability Put Much of the Web on Emergency Patch Mode](https://daily.dev/posts/php2shell-why-one-php-vulnerability-put-much-of-the-web-on-emergency-patch-mode-gllstobba) · Medium · 0 upvotes · 0 comments

---

Tags: [#security](https://daily.dev/tags/security), [#php](https://daily.dev/tags/php), [#wordpress](https://daily.dev/tags/wordpress)

[View this post on daily.dev](https://daily.dev/posts/hackers-exploited-a-critical-wordpress-flaw-within-hours-of-the-patch-gepwlzwhr)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Hackers exploited a critical WordPress flaw within hours of the patch","url":"https://daily.dev/posts/hackers-exploited-a-critical-wordpress-flaw-within-hours-of-the-patch-gepwlzwhr","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/hackers-exploited-a-critical-wordpress-flaw-within-hours-of-the-patch-gepwlzwhr"},"datePublished":"2026-09-28T11:39:41.556Z","dateModified":"2026-09-28T12:55:50.005Z","description":"A critical WordPress vulnerability, CVE-2026-87902, was actively exploited within hours of its patch release. The flaw in get_page_template() lets an...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/5a9a7b61f69a0cbd646fb398803c14c1?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/5a9a7b61f69a0cbd646fb398803c14c1?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"The Next Web","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"The Next Web","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/tnw","url":"https://daily.dev/sources/tnw"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/hackers-exploited-a-critical-wordpress-flaw-within-hours-of-the-patch-gepwlzwhr","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"security,php,wordpress","timeRequired":"PT2M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"The Next Web","item":"https://daily.dev/sources/tnw"},{"@type":"ListItem","position":3,"name":"Hackers exploited a critical WordPress flaw within hours of the patch"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/hackers-exploited-a-critical-wordpress-flaw-within-hours-of-the-patch-gepwlzwhr#faq","mainEntity":[{"@type":"Question","name":"What is CVE-2026-87902 in WordPress and how does the exploit work?","acceptedAnswer":{"@type":"Answer","text":"CVE-2026-87902 is a critical WordPress vulnerability in the get_page_template() function that lets an unauthenticated attacker load a readable PHP file from outside the active theme's folders. It requires the active theme to have a top-level folder starting with 'page-' and a usable PHP file on the server, typically pearcmd.php from the PEAR package manager, which attackers use to write files into /tmp and /var/tmp. It carries a CVSS score of 9.2. Teams patching WordPress sites can track fast-moving CVEs like this one on daily.dev."}},{"@type":"Question","name":"Which WordPress version fixes CVE-2026-87902 and what should site owners do?","acceptedAnswer":{"@type":"Answer","text":"WordPress fixed CVE-2026-87902 in version 7.1.2, released 22 September, with patches backported to every branch as far back as 4.7. Site owners should update to 7.1.2 or their branch's patched release, block '..' sequences in the pagename parameter, and disable PHP's register_argc_argv setting to break the pearcmd exploitation step. Developers tracking urgent WordPress patches can follow security advisories on daily.dev."}},{"@type":"Question","name":"How quickly was the WordPress CVE-2026-87902 flaw exploited after patching?","acceptedAnswer":{"@type":"Answer","text":"Attackers began probing within hours of the fix, with the first attacks recorded at 11:49 UTC on 22 September, the same day WordPress shipped version 7.1.2. Exploitation traffic climbed steadily and peaked around midday UTC on 23 September at more than ten times the volume seen the first evening, according to security firm Patchstack. Security engineers monitoring rapid post-disclosure exploits can follow incident timelines on daily.dev."}}]}
```

