Skip to content
SQL injection Write-up Advanced

wp2shell: Breaking Down the Critical WordPress RCE (CVE-2026–60

A SQL injection in the author__not_in parameter of WP_Query could be reached without authentication through a REST API batch-route confusion flaw, and the chain allowed an attacker to create an administrator account and upload a malicious plugin to run commands. The full exploit was time-based and slow, taking tens of seconds.

ஜெய் Follow

Published on medium.com

On July 17, 2026, a critical pre-authentication RCE in WordPress Core was disclosed. No plugins required.

ஜெய், on medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely a combination of unsanitised input in the author__not_in query parameter and a batch API that processes requests out of order, bypassing authentication checks.

Impact

An unauthenticated attacker could create an administrator account and then run arbitrary commands on the server, though the time-based extraction made the full chain take roughly 35 to 70 seconds.

What the attacker needed

Stock WordPress 6.9.0–6.9.4 or 7.0.0–7.0.1; no authentication needed; network access to the site

The fix

The issue was fixed by updating to WordPress 7.0.2, 6.9.5, or 6.8.6; if updating is not possible, block access to the batch API endpoints at a WAF.

How it was found

  1. Trick the batch API into processing requests out of order to bypass authentication.
  2. Inject a time-based blind SQL injection through the author_exclude parameter.
  3. Use UNION injection to insert fake oEmbed cache entries that look like customizer changesets.
  4. Let the forged changeset publish with admin authorship, creating a new administrator account.
  5. Upload a malicious plugin that registers a command execution endpoint, run a command, and let the plugin remove itself.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

WordPress is a popular website-building tool. A SQL injection is when a website accidentally lets a visitor slip database commands into a normal request, so the visitor can read or change data they should not. Here, a second bug in a bulk-request feature let outsiders reach that database flaw without logging in, and from there they could make themselves an admin and run their own code on the server.

What is SQL injection?

Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.

Similar reports

View all

Same bug class and techniques, clearest first.

SQL injection

The lesson behind this report.

Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.