Pre-auth SQL injection in WordPress batch API can be chained to remote code execution
A pre-authentication SQL injection in WordPress can be exploited to achieve remote code execution using a chain generated by GPT-5.6.
Security & privacy Assetnote / Searchlight 20 Jul 2026 Disclosure Real-world evidence
Published as “Exploit brokers pay $500,000 for a WordPress RCE. I found one with GPT5.6 Sol Ultra and $25”
Why it matters
Shows that advanced LLMs can autonomously discover and chain complex WordPress zero-days, raising the threat of AI-driven exploit generation.
Summary
The researchers prompted GPT-5.6 Sol Ultra to analyze WordPress source code and it discovered a pre-authentication SQL injection in the batch REST API validation logic. They verified the bug on a fresh WordPress install, then used recursive batch calls, cache-poisoning of oembed_cache rows, and a customize_changeset gadget to elevate to an administrator role and finally trigger code execution via a back-door plugin upload. The exploit was built and demonstrated in about ten hours on a real WordPress instance.
What they found 3
- Validation/handler mismatch in the batch API enables a pre-auth SQL injection
“This lets us validate one request and then execute it using the following request’s endpoint handler.”
- Recursive batch calls bypass the API’s lack of GET support
“We can use the desync bug! Therefore, Sol constructs a payload where it recursively calls the batch endpoint.”
- Cache-poisoned oembed_cache rows allow forging a customize_changeset that runs with admin privileges
“If the database row and the in-memory cache disagree, WordPress will prefer the in-memory fields, which we fully control.”
Caveats 3
- The batch API does not support GET requests, and the SQLi is only accessible via GET, which initially appeared to be a dead end.
- The exploit relies on specific WordPress version behavior (batch API validation bug) and may not apply to patched releases.
- The post_content field cannot be directly controlled in some steps, requiring additional gadget chaining.
What’s new here 4
- Discovery of a pre-auth SQL injection caused by a validation/handler desynchronisation in the WordPress batch API.
- Technique to bypass GET restrictions by recursively calling the batch endpoint.
- Cache-poisoning of in-memory and database oembed_cache posts to fabricate a customize_changeset that runs as admin.
- Full end-to-end remote code execution chain generated autonomously by an LLM.