Skip to content
Advisorycritical severityCVE-2026-63030

Advisory: wp2shell (CVE-2026-63030), three months on. Patched does not mean clean

wp2shell gave anonymous attackers code execution on default WordPress installs and was exploited within days. Most sites are now patched. Here is how to confirm yours is, and how to check it was not backdoored first.

Shadow Labs · Offensive Research Team

9 min read

Key takeaways

TL;DR
  1. 01

    wp2shell chains two WordPress core flaws, CVE-2026-63030 and CVE-2026-60137, into unauthenticated remote code execution on default installs. No plugin required.

  2. 02

    Affected: 6.9.0 to 6.9.4 and 7.0.0 to 7.0.1, first fixed in 6.9.5 and 7.0.2 (17 July 2026). Both CVEs are in CISA's KEV catalog, and CISA flags CVE-2026-63030 for forensic triage, not just patching.

  3. 03

    A second exploited core flaw, CVE-2026-87902, was fixed on 22 September 2026 and is also in KEV. Every site should be on the latest release of its branch (7.1.3 as of 20 October 2026).

  4. 04

    An update does not remove a webshell or a rogue administrator planted before it. If a site was exposed, check logs, files and accounts.

Summary

[Confirmed] On 17 July 2026 WordPress released 7.0.2 and 6.9.5 to fix two core vulnerabilities that, chained together, form a pre-authentication remote code execution path. According to the researcher who reported it, the chain works against an unmodified install with no plugins and no account. Because of the severity, the WordPress.org team enabled forced updates through the auto-update system for affected versions.

wp2shell at a glance

Critical
CVE-2026-63030
REST API batch-route confusion (CWE-436). CVSS 3.1 9.8, scored by WPScan (NVD). Reported by Adam Kues (Assetnote / Searchlight Cyber).
CVE-2026-60137
SQL injection in the author__not_in parameter of WP_Query (CWE-89). CVSS 3.1 5.9 on its own, scored by WPScan (NVD). Reported by TF1T, dtro and haongo.
Full RCE chain
WordPress 6.9.0 to 6.9.4 and 7.0.0 to 7.0.1
SQL injection only
WordPress 6.8.0 to 6.8.5
Not affected
Versions before 6.8
First fixed in
7.0.2, 6.9.5, 6.8.6 (and 7.1 beta 2)
CISA KEV
Both added 21 July 2026. CISA marks CVE-2026-63030 for forensic triage, not just patching

Searchlight Cyber published its advisory the same day and withheld the technical details "to give defenders time to patch". Its later write-up (20 July) says the full exploit was produced with an AI model in "just over 10 hours". We do not reproduce the exploitation mechanics here, and we do not link to public exploit code.

Why we are writing about it now

Most WordPress sites updated themselves within days. The risk now is not the unpatched site. It is the site that was compromised before it was patched and still looks healthy. An update replaces core files. It does not remove a plugin the attacker installed, an administrator account they created, or a PHP file dropped into wp-content.

An update replaces core files. It does not remove what the attacker left behind.

CISA makes the same point in its own catalog. The Known Exploited Vulnerabilities entry for CVE-2026-63030 carries a "forensic triage" flag. Under BOD 26-04 and its implementation guidance, that means US federal agencies must assess whether their systems were already affected, not only patch. The same logic applies to everyone else.

[Confirmed] Exploitation followed quickly. Elastic Security Labs reports that public proof-of-concept code reached GitHub within hours. On 20 July, three days after the release, Wiz Research reported multiple threat actors exploiting WordPress instances self-hosted in the cloud. Post-exploitation included malicious plugin uploads, user enumeration, admin-panel access and attempts to read wp-config.php. Wiz describes three backdoors: a one-line PHP shell, a roughly 150 KB plugin presented as "CMSmap" with a graphical file and database manager, and a plugin that registers a custom REST endpoint for command execution. Wiz also said that 60% of organizations using WordPress in its data initially had at least one vulnerable instance and 25% exposed one to the internet, falling to 50% and 10% within 24 hours. Those figures describe Wiz's own visibility, not the whole internet.

wp2shell and CVE-2026-87902: what happened between July and October 2026July 17, 2026: WordPress 6.9.5 and 7.0.2 fix wp2shell with forced updates. July 20: exploitation in the wild reported by Wiz. July 21: both CVEs added to CISA KEV with a forensic-triage flag. September 22: 7.1.2 fixes CVE-2026-87902. September 25: it is added to KEV. October 6: 7.1.3. A site compromised before its update can still carry backdoors today.6.9.5 / 7.0.2 shipJul 17 · forced updatesExploited in the wildJul 20 · Wiz ResearchBoth CVEs in KEVJul 21 · forensic triage7.1.2 fixes CVE-2026-87902Sep 22 · backported to 4.7CVE-2026-87902 in KEVSep 25 · forensic triage7.1.3 releasedOct 6 · latestOct 20 · today■ fix to KEV in 4 days ■ backdoors can persist
Fig. 1From fix to KEV listing in four days, then a second exploited core flaw in September. Dates from WordPress.org, Wiz Research and CISA's KEV catalog.

It was not the last core bug: update to the current release

Since July, WordPress has shipped several more security releases. The one that matters most for this advisory is 7.1.2 (22 September 2026), which fixed CVE-2026-87902: under certain server and theme conditions, an unauthenticated attacker can make page-template resolution include a chosen local PHP file, which can lead to code execution. [Confirmed] CISA added it to KEV on 25 September 2026, also with the forensic-triage flag. The fix was backported to every branch that still receives security fixes, back to 4.7 (GHSA-7hp8-65ch-5whp).

The latest releases, as of 20 October 2026, are 7.1.3 (6 October 2026) and the matching security releases on older branches, such as 7.0.7, 6.9.10 and 6.8.11. 7.1 is the current major version. If a site is on anything older than the latest release of its branch, treat it as exposed to at least one exploited core vulnerability.

Step 1: confirm the version on every site, not just the main one

Checklist

Version check

3 items
  • Inventory every WordPress install you own, including microsites, staging copies and sites an agency runs for you. Staging and forgotten subdomains are where old versions survive.

  • On each one, check the version. With WP-CLI: wp core version. In the dashboard: Dashboard › Updates.

  • Move every site to the current release of its branch, and preferably to 7.1.x. Then find out why any forced update did not land. Common causes are WP_AUTO_UPDATE_CORE set to false, DISALLOW_FILE_MODS or AUTOMATIC_UPDATER_DISABLED in wp-config.php, a host that pins versions, or a read-only filesystem without a deployment pipeline.

Step 2: decide whether you need to investigate

Treat a site as potentially compromised if it was internet-facing on 6.9.0 to 6.9.4 or 7.0.0 to 7.0.1 at any point after 17 July 2026, or on a release older than the 22 September security releases at any point after that date. For most sites the exposure window was short. For sites where the update failed, it may still be open.

Step 3: look for what the update would not have removed

Work on a copy of the logs and a snapshot of the site if you can, so you keep evidence.

Web access logs. Search for POST requests to /wp-json/batch/v1 or rest_route=/batch/v1 from 17 July onward. Elastic notes that HTTP 207 Multi-Status responses on the batch endpoint are a useful signal, though it calls them "supporting evidence, not standalone", and Wiz calls 207/200 responses to batch requests "relatively high-fidelity". Elastic also lists User-Agent strings seen in public tooling (wp2shell, cve-2026-63030/1.0, rezwp2shell). Attackers can change those trivially, so a clean result proves nothing.

Hunting signals · from Elastic and Wiz
  • endpoint
    /wp-json/batch/v1

    POST requests from 17 July onward.

  • endpoint
    ?rest_route=/batch/v1

    The query form of the same route.

  • http status
    207 Multi-Status

    On the batch endpoint. Elastic: "supporting evidence, not standalone".

  • user-agent
    wp2shell

    Seen in public tooling (Elastic).

  • user-agent
    cve-2026-63030/1.0

    Seen in public tooling (Elastic).

  • user-agent
    rezwp2shell

    Seen in public tooling (Elastic).

  • plugin dir
    wp-content/plugins/wp2shell_<hex>

    Directory pattern from public tooling (Elastic).

→ Signals to hunt with, not proof: attackers change User-Agents and directory names trivially.

Files.

Detection

Files

4 items
  • wp core verify-checksums compares core files with the official release.

  • wp plugin verify-checksums --all does the same for plugins from the WordPress.org directory. Premium and custom plugins will not verify; compare them with a known-good copy instead.

  • List PHP files created or modified anywhere under wp-content/ since 17 July, for example find wp-content -name '*.php' -newermt 2026-07-17. Pay particular attention to plugins/, uploads/ and cache/: Elastic cites a variant, documented by SANS, that writes files under wp-content/cache/ through the SQL injection. PHP should never be in uploads.

  • Elastic reports plugin directories named wp2shell_<hex> from public tooling. Look for those, and for any plugin directory nobody on your team recognizes.

Detection

Accounts and configuration

2 items
  • wp user list --role=administrator, then check every account against your list of people who should have admin. Look at registration dates after 17 July.

  • Review application passwords, active plugins, must-use plugins (wp-content/mu-plugins/) and scheduled events (wp cron event list) for anything unexpected.

Host telemetry, if you have EDR or auditd on the server. Elastic's guidance, which we agree with, is to alert on the web server or PHP process (apache2, nginx, php-fpm) spawning a shell (sh, bash, dash) or download tools (curl, wget). On a normal WordPress host that should almost never happen. The query below, for Microsoft Defender for Endpoint on Linux, is illustrative and needs tuning before you alert on it:

KQL
DeviceProcessEvents
| where Timestamp > datetime(2026-07-17)
| where InitiatingProcessFileName in~ ("php-fpm","php","apache2","httpd","nginx")
| where FileName in~ ("sh","bash","dash","curl","wget","python3","perl")
| project Timestamp, DeviceName, InitiatingProcessFileName, FileName, ProcessCommandLine

Step 4: if you find something

Response

  1. 01Isolate the site

    Maintenance mode or take it offline. Keep the logs, database dump and filesystem snapshot.

  2. 02Rebuild rather than clean

    Restore from a backup taken before the first malicious request, or reinstall core and plugins from trusted sources and migrate only the content after reviewing it.

  3. 03Rotate everything the site could reach

    WordPress admin passwords and application passwords, the database password, the authentication keys and salts in wp-config.php, hosting panel and SFTP credentials, and any API keys stored in plugins (payment, email, CRM).

  4. 04Check what sits next to it

    On shared hosting or a server with several sites, assume the attacker could reach the neighbors and check them too.

  5. 05Consider notification duties

    If the site processed personal data, such as forms, accounts or payments, a compromise may trigger obligations under your country's data-protection law. In Peru that means Law 29733. Talk to your legal team early.

Hardening so the next one hurts less

Mitigation

Hardening

5 items
  • Keep core automatic updates on. For sites where you must control updates, have a pipeline that ships a security release the same day.

  • Make the code directories read-only to the web server user and deploy changes through your pipeline, not through the dashboard.

  • Block PHP execution in wp-content/uploads/ at the web-server level.

  • Send web and PHP logs off the host so an attacker on the box cannot erase them.

  • Keep a current inventory of every WordPress site and who is responsible for it.

If you need a compromise assessment of your WordPress estate, our compromise assessment and incident response teams can help. You can carry out every check above yourself.

Sources

9 sourceswordpress.org+7
  1. 01

    WordPress.org, WordPress 7.0.2 Release, 17 July 2026.

    wordpress.org
  2. 02

    WordPress.org, WordPress 7.1.2 Release, 22 September 2026, and WordPress 7.1.3 Maintenance and Security Release, 6 October 2026.

    wordpress.org
  3. 03nvd.nist.gov
  4. 04

    CISA, Known Exploited Vulnerabilities catalog, checked 20 October 2026 (catalog version 2026.10.16), and BOD 26-04.

    cisa.gov
  5. 05

    Searchlight Cyber (Adam Kues), wp2shell: Pre Authentication RCE in WordPress Core, 17 July 2026, and the follow-up write-up, 20 July 2026.

    slcyber.io
  6. 06

    Wiz Research, Exploitation in the Wild of wp2shell, 20 July 2026 (IOC list updated 22 July).

    wiz.io
  7. 07

    Elastic Security Labs, wp2shell: detecting WordPress pre-auth RCE end-to-end, 23 July 2026.

    elastic.co
  8. 08

    WordPress security advisory GHSA-7hp8-65ch-5whp (CVE-2026-87902).

    github.com
  9. 09attack.mitre.org

If you want a second pair of hands

Curious what our deliverables look like? Read a sample report.

Written by

Shadow Labs · Offensive Research Team

Shadow Labs is the research team behind Shadow Corp's penetration tests and incident response. We track the threats that reach Latin America and write guides that defenders can act on, with sources you can check.

Drafted with AI assistance and checked line by line against the primary sources cited here by a Shadow Labs editor before it went out, on October 20, 2026. The cover image was generated with AI. Read our editorial standards.

Spotted an error? Write to contact@sh4dowcorp.com and we will correct it publicly on this page.

From advisory to answer

Make sure no one is already inside.

A compromise assessment answers the question a patch cannot: was anyone already inside? Tell us what you run; we agree on scope on a short call. After the call, you get a written proposal within one business day.

Book a scoping call

Active incident right now?

Call the priority incident line +1 917 262 7017 or email ir@sh4dowcorp.com.

Shadow Digest · Free preview

The blog explains. The Digest keeps you current.

This blog is public and evergreen: guides you can come back to. The Shadow Digest is our curated briefing for security teams. Every other Monday, Shadow Labs tells you what happened, whether it reaches Latin America, and what to do this week. Free during the preview; a paid plan for teams is coming.

By subscribing, you agree to receive the Shadow Digest by email (every other Monday, plus rare flash alerts). We email a confirmation link first. We store your address with our providers in the United States, and every email has a one-click unsubscribe link. See our privacy policy.