{"id":"MSF-multi--http--wp_batch_desync_rce","name":"WordPress WP2Shell REST API Batch Route Confusion SQLi to RCE","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.","cves":["CVE-2026-63030","CVE-2026-60137"],"author":"Adam Kues, TF1T, dtro, haongo, Crypto-Cat","published":"2026-07-17","platform":"Linux,PHP,Unix","type":"remote","language":"Ruby","source":"metasploit","sourceUrl":"https://github.com/rapid7/metasploit-framework/blob/90dfbaa741421d0179f9f371109c215d49400444/modules/exploits/multi/http/wp_batch_desync_rce.rb","path":"modules/exploits/multi/http/wp_batch_desync_rce.rb","revision":"90dfbaa741421d0179f9f371109c215d49400444","filename":"wp_batch_desync_rce.rb","vulnerabilities":[{"id":"CVE-2026-63030","state":"PUBLISHED","title":"WordPress < 7.0.2 - REST API batch-route confusion and SQL injection issue leading to Remote Code Execution","titleSource":"CVE Program","description":"WordPress 6.9.x before 6.9.5 and 7.0.x before 7.0.2 is affected by a REST API batch endpoint route confusion issue which, combined with the author__not_in WP_Query SQL Injection (CVE-2026-60137), could allow an attacker to perform SQL Injection and achieve Remote Code Execution.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2026-63030","cvss":{"version":"3.1","baseScore":9.8,"severity":"critical","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"WPScan","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-63030"},"updatedAt":"2026-10-07T18:26:30.478Z","retrievedAt":"2026-11-25T16:13:47.387Z","stale":false,"error":null},{"id":"CVE-2026-60137","state":"PUBLISHED","title":"WordPress < 7.0.2 - Facilitated SQL Injection via author__not_in in WP_Query","titleSource":"CVE Program","description":"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.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2026-60137","cvss":{"version":"3.1","baseScore":5.9,"severity":"medium","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","source":"WPScan","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-60137"},"updatedAt":"2026-10-07T18:16:21.040Z","retrievedAt":"2026-11-25T16:13:47.343Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/MSF-multi--http--wp_batch_desync_rce.png?v=2","url":"https://exploitbin.com/exploits/MSF-multi--http--wp_batch_desync_rce","downloadUrl":"https://exploitbin.com/api/v1/exploits/MSF-multi--http--wp_batch_desync_rce/download","codeUrl":"https://exploitbin.com/api/v1/exploits/MSF-multi--http--wp_batch_desync_rce/code","licenseUrl":"https://exploitbin.com/sources#metasploit"}