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_inparameter ofWP_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.
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
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_COREset tofalse,DISALLOW_FILE_MODSorAUTOMATIC_UPDATER_DISABLEDinwp-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.
- endpoint
/wp-json/batch/v1POSTrequests from 17 July onward. - endpoint
?rest_route=/batch/v1The query form of the same route.
- http status
207 Multi-StatusOn the batch endpoint. Elastic: "supporting evidence, not standalone".
- user-agent
wp2shellSeen in public tooling (Elastic).
- user-agent
cve-2026-63030/1.0Seen in public tooling (Elastic).
- user-agent
rezwp2shellSeen 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
wp core verify-checksumscompares core files with the official release.wp plugin verify-checksums --alldoes 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 examplefind wp-content -name '*.php' -newermt 2026-07-17. Pay particular attention toplugins/,uploads/andcache/: Elastic cites a variant, documented by SANS, that writes files underwp-content/cache/through the SQL injection. PHP should never be inuploads.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
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:
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, ProcessCommandLineStep 4: if you find something
Response
01Isolate the site
Maintenance mode or take it offline. Keep the logs, database dump and filesystem snapshot.
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.
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).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.
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
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+5ShowHide
- 01wordpress.org
WordPress.org, WordPress 7.0.2 Release, 17 July 2026.
- 02wordpress.org
WordPress.org, WordPress 7.1.2 Release, 22 September 2026, and WordPress 7.1.3 Maintenance and Security Release, 6 October 2026.
- 03nvd.nist.gov
NVD, CVE-2026-63030, CVE-2026-60137 and CVE-2026-87902.
- 04cisa.gov
CISA, Known Exploited Vulnerabilities catalog, checked 20 October 2026 (catalog version 2026.10.16), and BOD 26-04.
- 05slcyber.io
Searchlight Cyber (Adam Kues), wp2shell: Pre Authentication RCE in WordPress Core, 17 July 2026, and the follow-up write-up, 20 July 2026.
- 06wiz.io
Wiz Research, Exploitation in the Wild of wp2shell, 20 July 2026 (IOC list updated 22 July).
- 07elastic.co
Elastic Security Labs, wp2shell: detecting WordPress pre-auth RCE end-to-end, 23 July 2026.
- 08github.com
WordPress security advisory GHSA-7hp8-65ch-5whp (CVE-2026-87902).
- 09attack.mitre.org




