• Home  
  • WordPress WP2Shell exploit hits sites as patches roll out
- Cybersecurity

WordPress WP2Shell exploit hits sites as patches roll out

Two critical WordPress bugs dubbed WP2Shell are being exploited in the wild just hours after disclosure, prompting forced updates and new Cloudflare rules.

WordPress WP2Shell exploit hits sites as patches roll out

On July 19, 2026, WordPress released emergency updates for versions 6.9.5 and 7.0.2 after two flaws—CVE-2026-60137 and CVE-2026-63030—were confirmed to be under active exploitation. The bugs, collectively nicknamed WP2Shell, affect installations from 6.9.0 through 6.9.4 and 7.0.0 through 7.0.1. That’s the catch: you don’t need a plugin or a custom theme to be vulnerable.

Key Takeaways

  • WP2Shell comprises a high‑severity SQL injection (CVE‑2026‑60137) and a critical remote code execution flaw (CVE‑2026‑63030).
  • Both vulnerabilities can be chained for unauthenticated remote code execution on a stock WordPress install.
  • Patch releases on July 19 forced auto‑updates for affected sites; Cloudflare added detection rules.
  • Security firms like Patchstack, Hexastrike, and WatchTowr have already observed exploitation attempts.
  • Developers should assume any unpatched WordPress site is a potential entry point for attackers.

WordPress WP2Shell exploit: What happened and why it matters

Searchlight Cyber, the firm that discovered the flaws, warned that “the attack has no preconditions and can be exploited by an anonymous user in a stock install of WordPress with no plugins.” That means the attack surface is massive—hundreds of millions of sites run the vulnerable core. It’s not just a niche issue; it’s a systemic risk that could affect any WordPress host that hasn’t applied the updates.

The technical details: SQL injection and arbitrary code execution

At the heart of WP2Shell is a high‑severity SQL injection (CVE‑2026‑60137). The injection lets an attacker tamper with the database, enabling for the second bug—CVE‑2026‑63030, a critical arbitrary code execution flaw. When chained, the two give an attacker unauthenticated remote code execution capabilities. In plain English, a stranger can run whatever code they want on your server without ever logging in.

Why the chain matters

  • CVE‑2026‑60137 allows malicious SQL queries to bypass authentication.
  • CVE‑2026‑63030 turns that foothold into full‑blown code execution.
  • The combination eliminates any need for a compromised admin account.

Because the exploitation path requires no pre‑existing foothold, defenders can’t rely on traditional hardening that assumes an attacker already has a low‑level shell.

How quickly attackers moved: from disclosure to exploitation

Within hours of the vulnerabilities being disclosed, multiple security firms confirmed active exploitation. Hexastrike saw attempts in its honeypots over the weekend, and by Sunday it was already helping victims with incident response. WatchTowr reported similar activity, confirming that the exploit was spreading beyond isolated test cases.

“This is going to hurt,” Benjamin Harris, CEO of WatchTowr, told SecurityWeek. “WordPress runs on hundreds of millions of websites globally. Some of those will be auto‑patched by their hosting providers, but plenty will not, and that is where the damage will be done.”

Harris added, “This is also the latest example in a clear trend of vulnerabilities being surfaced by AI‑assisted tooling, representing a significant shift in both how our industry finds these issues and how quickly attackers weaponize them. We saw PoCs appear within hours of disclosure, where historically that would have taken 24 hours or more. The window between disclosure and exploitation has collapsed, and WordPress is simply today’s reminder of it.”

Response from WordPress and the ecosystem

WordPress reacted swiftly, releasing patches on July 19 and enabling forced updates via the auto‑update system for all sites running the affected versions. That forced‑update move is unusual; the core team essentially said, “you’re getting this patch whether you like it or not.” Cloudflare, a major CDN provider, also rolled out custom rules to detect and block exploitation attempts for customers who haven’t patched yet.

Patchstack, a WordPress‑focused security firm, confirmed the in‑the‑wild activity and urged site owners to apply the updates immediately. Their advisory stressed that the exploit works on a clean WordPress install—no plugins required—so even tightly curated sites aren’t safe.

Recommendations for operators and developers

First, verify that your site is running WordPress 6.9.5 or 7.0.2. If you’re on an older core version, you’ve got to update now. Second, check your auto‑update settings; make sure forced updates are enabled. Third, scan your logs for any signs of the SQL injection payloads described in public proofs of concept. Finally, consider adding Cloudflare’s custom WAF rules if you use their service, or implement similar rule sets on your own edge.

Immediate actions

  • Run wp core update or use the admin dashboard to apply the latest patches.
  • Enable forced auto‑updates in wp-config.php if they’re not already on.
  • Review access logs for suspicious SQL queries targeting the wp_options table.
  • Deploy Cloudflare’s WP2Shell detection rules or equivalent firewall policies.

Those steps won’t guarantee you’re safe forever, but they’ll dramatically reduce the window attackers have to hijack your site.

Historical Context: WordPress security and past incidents

WordPress has long been a favorite target for attackers because of its market share. Over the years, the platform has weathered several high‑profile vulnerabilities that forced emergency patches. The 2020 “WP‑Admin RCE” incident, for example, required a rapid response from the core team and led to the introduction of more aggressive auto‑update defaults. Earlier SQL injection bugs in the REST API prompted the community to adopt stricter input sanitization. Those moments shaped the expectations that now exist around emergency patching.

Each major incident reinforced a pattern: a flaw is discovered, a proof‑of‑concept spreads, and the community rallies around a coordinated patch. The WP2Shell chain follows that same trajectory, but the speed of weaponization was record. The timeline from public disclosure to active exploitation compressed to a matter of hours, a shift that the WordPress security team acknowledged when they chose forced updates.

That history matters because it shows how the platform’s governance has evolved. Early on, core contributors relied on voluntary updates; later, they embraced automatic delivery for critical fixes. The forced‑update decision for WP2Shell reflects the lessons learned from previous crises, where delayed adoption cost sites millions in downtime and data loss.

What This Means For You: concrete scenarios

Understanding the abstract risk is one thing; seeing how it plays out in real‑world settings makes the urgency clearer. Below are three typical environments that illustrate the impact of an unpatched WP2Shell vulnerability.

Scenario 1 – A boutique e‑commerce store

The site runs a clean WordPress core with a handful of lightweight payment plugins. No custom theme is present, and the owner relies on a managed host that respects auto‑updates. If the host’s forced‑update mechanism fails—perhaps due to a misconfigured cron—the store remains on version 6.9.3. An attacker discovers the open SQL injection, injects a payload that writes a web shell into the wp_content directory, and then uses the second flaw to execute arbitrary PHP. The result? Credit‑card details are exfiltrated, and the storefront goes dark for hours while the breach is remediated.

Scenario 2 – A SaaS platform built on WordPress Multisite

Developers use WordPress as a framework for a multi‑tenant application. Each tenant shares the same core files but has isolated databases. The platform’s CI pipeline automatically tests against the latest core release, but a manual override prevented the latest patch from rolling out to production. An anonymous actor exploits the injection, creates a malicious entry in the wp_options table for every tenant, and then uses the remote code execution to gain shell access to the underlying server. Because the breach spans multiple tenants, the provider faces a cascade of data‑privacy complaints and a potential breach of service‑level agreements.

Scenario 3 – A personal blog with manual updates

An individual blogger prefers to update WordPress only when a new major version is announced. The blog runs version 7.0.1 and has no plugins. A search engine crawler inadvertently triggers the SQL injection while indexing the site. The attacker’s payload silently writes a backdoor into the theme directory. By the time the blogger notices a strange admin login, the attacker has already installed a persistent web shell and harvested the site’s comment data. The compromise is limited in scope, but it still illustrates how even low‑traffic sites are not immune.

All three cases share a common thread: the vulnerability bypasses any reliance on plugins or custom code. The only defense is a timely core update and strong monitoring. Ignoring forced updates, or assuming a clean install is safe, leaves the door wide open.

Competitive Landscape: How other platforms handle core vulnerabilities

WordPress isn’t alone in the battle against rapid exploitation. Competing content management systems have taken different approaches to core security. Some, like Drupal, have long required manual patching for critical fixes, relying on the community to push updates through a release‑candidate process. Others, such as Joomla, have introduced a “quick‑fix” channel that delivers emergency patches within days of discovery.

What sets WordPress apart is its auto‑update infrastructure, which can be toggled on a per‑site basis. The forced‑update option used for WP2Shell demonstrates the platform’s willingness to override user preference when a risk crosses a severity threshold. That capability is not universally available; many smaller CMS projects still depend on manual intervention, which can leave sites exposed for longer periods.

In the broader ecosystem, CDN providers and WAF vendors have begun to offer out‑of‑the‑box detection rules for newly disclosed exploits. Cloudflare’s rapid rollout of custom WP2Shell rules mirrors similar moves by Akamai and Fastly, where edge‑level protection serves as a stop‑gap until sites apply the underlying patches. This trend underscores a shift toward shared responsibility: platform maintainers provide the fix, while infrastructure partners mitigate exposure in the interim.

Key Questions Remaining

  • Will forced updates become the default for all future critical WordPress patches?
  • How can managed hosts guarantee that forced updates don’t disrupt custom workflows?
  • What role will AI‑assisted vulnerability discovery play in shortening the disclosure‑to‑exploit window?
  • Can edge‑level detection keep pace with the speed at which attackers weaponize new flaws?
  • What additional hardening steps can developers add without compromising the simplicity of a stock install?

Answers to these questions will shape the next wave of security practices across the entire CMS market.

Sources: SecurityWeek, Patchstack

About the Author

— AI & Technology Reporter

Halil Kale is an AI and technology reporter at AI Post Daily, where he covers artificial intelligence, machine learning, cybersecurity, and the business of tech. With a background in computer science and over five years of experience tracking the AI industry, Halil specializes in translating complex technical developments into clear, actionable insights for developers, founders, and technology professionals. He has reported on breakthroughs from Anthropic, OpenAI, Google DeepMind, and NVIDIA, as well as critical cybersecurity incidents and emerging robotics applications. Halil believes that understanding AI is no longer optional — it's essential for anyone working in or around technology. At AI Post Daily, he applies rigorous editorial standards to ensure every story is accurate, sourced, and genuinely useful to readers.

About AI Post Daily

Independent coverage of artificial intelligence, machine learning, cybersecurity, and the technology shaping our future.

Contact: Get in touch

We use cookies to personalize content and ads, and to analyze traffic. By using this site, you agree to our Privacy Policy.