Description
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.
Module options
To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':
msf > use exploit/multi/http/wp/batch_desync_rcemsf undefined(batch_desync_rce) > show actions ...actions...msf undefined(batch_desync_rce) > set ACTION < action-name >msf undefined(batch_desync_rce) > show options ...show and set options...msf undefined(batch_desync_rce) > runPrioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub