This module chains two WordPress core vulnerabilities, together known as WP2Shell, to gain unauthenticated remote code execution against default installs of WordPress 6.9.0-6.9.4 and 7.0.0-7.0.1. The vulnerabilities are fixed in WordPress 6.9.5 and 7.0.2. CVE-2026-60137 is an SQL injection in WP_Query's author__not_in parameter, and CVE-2026-63030 is a REST API batch endpoint route-confusion bug that lets an unauthenticated request reach that injection. The module uses the injection to read the database table prefix and the administrator user ID, poisons WordPress' object cache to publish a crafted customizer changeset, and re-enters the REST API with administrator privileges to create a new administrator account. It then logs in as that account, uploads a plugin containing a Metasploit payload, and executes it for a session. Once a session is obtained the uploaded plugin is removed, and the created administrator account is removed as well unless KeepAdmin is set.
Exploit database
Vulnerability
CVE-2026-60137
WordPress < 7.0.2 - Facilitated SQL Injection via author__not_in in WP_Query
Vulnerability details
- Score
- 5.9
- Severity
- medium
CVSS 3.1 · WPScan
Vector string
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:NDescription
WordPress 6.8.x before 6.8.6, 6.9.x before 6.9.5, and 7.0.x before 7.0.2 does not properly sanitise the author__not_in parameter of WP_Query, which could allow SQL Injection when a plugin or theme passes untrusted input to the parameter.
CVE ProgramExploit source choices
4 sourcesWordPress WP2Shell REST API Batch Route Confusion SQLi to RCE
2026-07-17wp_batch_desync_rce.rb
colere-sys/wp2shell-poc
Analysis and end-to-end implementation of the patched wordpress RCE vulnerability - CVE-2026-60137 and CVE-2026-63030
2026-07-2117 files · 4 stars
abdullahmaqbool22/cve-2026-60137-wordpress-core-sql-injection-poc
Non-destructive proof-of-concept and verification harness for CVE-2026-60137, a blind SQL injection in WordPress core (`WP_Query::author__not_in`), reachable via the REST API's `author_exclude` parameter.
2026-08-053 files · 0 stars
adarshthakur14777-cyber/cve-2026-60137
wpsqli full SQLi extractor + dumper for CVE-2026-60137
2026-08-032 files · 0 stars