Hackers Exploit Critical WordPress Flaws to Execute Remote Code Without Authentication

A critical WordPress exploit chain dubbed WP2Shell lets unauthenticated attackers run arbitrary code on vulnerable websites by combining REST API route confusion with SQL injection.

Seqrite researcher Amruta Wagh describes the chain as a WordPress Core security issue disclosed in July 2026 that eliminates the need for attackers to obtain credentials before exploiting.

The analysis details a demonstrated exploitation workflow, not widespread attacks. Successful exploitation progresses from publicly accessible endpoints to creating an administrator account and deploying a malicious plugin that provides server command execution.

Hackers Exploit Critical WordPress Flaws

The first vulnerability, CVE-2026-63030, affects the REST API batch controller exposed through /wp-json/batch/v1. This functionality processes multiple API requests submitted within a single JSON payload.

According to the security team, nesting an inner batch structure inside an outer request can confuse route resolution, allowing an unauthenticated attacker to reach handlers that would ordinarily require authentication. The vulnerability supplies an entry path, but does not independently deliver remote code execution.

Wp2shell Exploit Flow (Source: seqrite)
Wp2shell Exploit Flow (Source: seqrite)

The second flaw, CVE-2026-60137, involves SQL injection through the REST API posts endpoint. Its public author_exclude parameter maps internally to the author__not_in argument in WP_Query. Insufficient input handling allows crafted values to influence database queries.

Chaining these weaknesses exposes the vulnerable query functionality without prior authentication. The demonstrated workflow then establishes an administrator foothold before installing a plugin-based web shell.

Remote code execution therefore follows several exploitation stages, rather than arising directly from route confusion alone.

The reported staging sequence begins with temporary files matching temp-write-test-* under wp-content/, apparently testing directory writability before removing those files.

 target directory (Source: seqrite)
 target directory (Source: seqrite)

A ZIP archive, such as wp2shell_4e9b3641.zip, is subsequently written beneath wp-content/uploads/2026/10/. Extraction creates PHP payloads inside wp-content/upgrade/wp2shell_<hex>/, after which the directory moves into wp-content/plugins/wp2shell_<hex>/.

In the observed environment, httpd.exe performed these filesystem operations. Although web server activity during plugin installation can be legitimate, WP2Shell-specific filenames, unexpected PHP changes, and newly created administrator accounts provide investigation leads.

Defenders should correlate these artifacts with suspicious batch endpoint requests and application changes occurring during the same suspected exploitation window.

Affected Versions and Remediation

The supplied report identifies WordPress 6.9.0 through 6.9.4 and 7.0.0 through 7.0.1 as vulnerable to the complete chain. Versions 6.8.0 through 6.8.5 are listed as affected by the SQL injection vulnerability.

Administrators should prioritize the reported fixed releases, 6.8.6, 6.9.5, or 7.0.2, or an appropriate later supported version.

Where operationally feasible, restricting unauthenticated access to sensitive REST API functionality can reduce exposure. Investigations should examine suspicious plugin directories, unexpected administrator accounts, and recently modified PHP files.

Quick Heal reports behavioral detection for suspicious plugin PHP modifications and network signatures targeting CVE-2026-63030, providing additional monitoring alongside patching and investigation.

Join 16,000+ SOC teams using ANY.RUN to streamline threat investigations and reduce manual effort. Explore for your team 

Tamilselvan
Tamilselvanhttps://cyberpress.org/
Tamilselvan is an Investigative cybersecurity journalist dedicated to breaking stories on ransomware cartels, data breaches, and state-sponsored espionage.

Trending News

Related Stories