By using this site, you agree to the Privacy Policy and Terms of Use.
Accept

AceFortis

Cybersecurity Research

  • Home
  • Training
  • Compliance
  • Awareness
  • Research
    • Penetration Testing
    • CVE & Vulnerabilities
    • Hacking Tutorials
    • Tools & Reviews
    • Certifications
    • CTF
  • About
  • Contact
Search

Categories

  • Cybersecurity
  • Penetration Testing
  • Frameworks & Theory
  • CVE & Vulnerabilities
  • Hacking Tutorials
  • Tools & Reviews
  • CTF
  • Certifications
  • About AceFortis
  • Privacy Policy
  • Cybersecurity Training
  • Terms of Use

Tools & Platforms

  • TryHackMe vs HackTheBox: A Beginner’s Comparison
  • Burp Suite vs OWASP ZAP: Complete Pentesting Comparison
  • Kali vs Parrot OS: Best Pentesting Distro 2026 Comparison
  • Metasploit vs Cobalt Strike: Features, Pricing, Evasion
  • Nmap Network Scanning Tutorial for Beginners (2026)
  • Cookie Policy (EU)
  • About
  • Contact
  • Privacy Policy
  • Sitemap
  • Terms of Use
© 2026 AceFortis. All Rights Reserved.
Reading: wp2shell: The Critical WordPress RCE That Needed No Credentials
Share
Notification Show More
Font ResizerAa

AceFortis

Cybersecurity Research

Font ResizerAa
Search
Follow US
  • About
  • Contact
  • Privacy Policy
  • Sitemap
  • Terms of Use
© 2026 AceFortis. All Rights Reserved.
CVE & Vulnerabilities

wp2shell: The Critical WordPress RCE That Needed No Credentials

Akash Kumar
Last updated: October 13, 2026 11:18 pm
Akash Kumar
Share
SHARE

wp2shell: The WordPress Pre-Auth RCE That Let Attackers In Without Credentials

CVE-2026-63030 & CVE-2026-60137 | July 2026

Contents
What HappenedThe Two Flaws Behind wp2shellFlaw #1: REST API Route Confusion (CVE-2026-63030)Flaw #2: SQL Injection in WP_Query (CVE-2026-60137)How the Attack WorkedAffected VersionsRemediation StepsImmediate ActionsForensic ChecksLong-term HardeningWhy This MattersTimelineKey Takeaways

What Happened

In July 2026, security researchers dropped a bombshell. WordPress Core had a critical vulnerability that let attackers get a shell on your server. No login needed. No plugins required. No user interaction.

Just pure, unauthenticated remote code execution (RCE) on a default WordPress install.

The vulnerability chain got dubbed wp2shell, and it worked by chaining two separate flaws together. Let’s break it down.


The Two Flaws Behind wp2shell

Flaw #1: REST API Route Confusion (CVE-2026-63030)

WordPress 6.9 introduced a new batch processing feature for the REST API. The idea was solid – let developers send multiple API requests in one HTTP call to save overhead.

The implementation had a problem.

When WordPress processed batch requests, it could get confused about which route handler was supposed to run. A subrequest meant for one endpoint could execute under the context of a completely different route.

Think of it like this: you send a letter to your bank, but the postal service delivers it to your ex’s house, and they open it thinking it’s theirs. The routing got mixed up.

Flaw #2: SQL Injection in WP_Query (CVE-2026-60137)

Separately, WordPress had a SQL injection bug in the WP_Query class. Specifically, the author__not_in parameter wasn’t properly sanitizing input when it expected author IDs.

On its own, this was bad. SQL injection means attackers can mess with your database.

Combined with the REST API confusion? It became a full RCE.


How the Attack Worked

Here’s the chain in plain terms:

  1. Attacker sends a crafted batch request to the WordPress REST API
  2. Route confusion kicks in – the request gets processed under the wrong route context
  3. SQL injection payload executes – via the confused author__not_in parameter
  4. Attacker gains database access – they can now read and write to wp_options
  5. PHP code execution – by modifying certain options, attackers execute arbitrary PHP

No authentication required. The REST API batch endpoint is public by default.


Affected Versions

WordPress VersionImpact
6.9.0 – 6.9.4Full RCE via wp2shell
7.0.0 – 7.0.1Full RCE via wp2shell
6.8.0 – 6.8.5SQL injection only (no RCE)

Fixed versions: 6.8.6, 6.9.5, 7.0.2


Remediation Steps

Immediate Actions

  1. Update WordPress NOW
    “`bash
    # Check your version first
    wp core version

# Update via CLI
wp core update –version=7.0.2
“`

Or use wp-admin → Dashboard → Updates

  1. Verify the update actually happened
  2. Don’t assume automatic updates worked
  3. Check wp-admin dashboard shows current version
  4. Manual installs can fail silently

  5. Rotate all credentials

  6. Database passwords
  7. WordPress salts and keys
  8. Admin passwords
  9. FTP/SFTP access
  10. SSH keys if server-level access was possible

Forensic Checks

If you were running vulnerable versions:

# Check access logs for suspicious REST API batch requests
grep -r "wp-json/wp/v2/posts" /var/log/nginx/*.log | grep -i "batch"

# Look for unusual wp_options changes
wp option list --search="*" | grep -E "php|exec|base64"

# Check for unexpected admin users
wp user list --role=administrator

Long-term Hardening

  1. Block REST API batch requests at WAF level (if you don’t use batch operations)
  2. Monitor wp_options table changes – set up alerts
  3. Enable two-factor authentication for all admin accounts
  4. Use Web Application Firewall (WAF) with WordPress-specific rules
  5. Implement file integrity monitoring on core WordPress files

Why This Matters

wp2shell represents a shift in how we think about WordPress security.

Before this, most critical WordPress vulnerabilities required:
– A compromised plugin
– Admin-level access
– User interaction (phishing, social engineering)

wp2shell needed none of that.

It targeted WordPress Core directly. It worked on fresh installs. It required zero authentication.

The lesson? Core software updates aren’t optional.


Timeline

DateEvent
July 17, 2026WordPress releases 7.0.2 with forced auto-update
July 18, 2026Public proof-of-concept exploit published
July 18, 2026Mass scanning of vulnerable sites begins

The gap between patch availability and public exploit was less than 24 hours.


Key Takeaways

  1. Update immediately when security releases drop – the exploit window is tiny
  2. Verify updates – don’t trust auto-update without checking
  3. Layer your defenses – WAF, monitoring, least-privilege access
  4. Assume breach if you ran vulnerable versions uncovered

wp2shell proved that even mature platforms like WordPress can have critical flaws in Core. Stay patched. Stay vigilant.

You Might Also Like

Shellshock: The 22-Year-Old Bash Bug (CVE-2014-6271)
Linux Kernel Copy Fail: The Most Researched CVE of 2026
EternalBlue: The Vulnerability Behind WannaCry and NotPetya
TONTOU: New CPU Attack Steals Passwords from Your Processor
Log4Shell: The Vulnerability That Changed Everything

Sign Up For Daily Newsletter

Be keep up! Get the latest breaking news delivered straight to your inbox.
[mc4wp_form]
By signing up, you agree to our Terms of Use and acknowledge the data practices in our Privacy Policy. You may unsubscribe at any time.
Share This Article
Facebook Copy Link Print
Share
ByAkash Kumar
Follow:
Akash Kumar, founder of AceFortis. Penetration tester and cybersecurity trainer based in Milan, and cybersecurity instructor at DEMOS Fondazione ITS. Expertise: penetration testing, red teaming and Active Directory security. I offer security awareness training, phishing simulations and courses on NIS2, DORA and ISO 27001 for companies and institutions, in English and Italian. Certifications: CPENT, CRTA, eJPT, PT1.
Previous Article What is Ethical Hacking? A Beginner’s Guide
Next Article ChainDrop: The npm Worm That Infected 444 Packages in 4 Hours
Leave a Comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Latest News

EU AI Act: What Businesses Must Do Now (2026 Update)
Compliance
Password Policy in 2026: What NIST SP 800-63B Recommends
Compliance
How to Run a Cyber Tabletop Exercise: Ransomware Scenario
Security Awareness & Training
30-Day Security Awareness Training Plan
Security Awareness & Training

You Might also Like

Citrix NetScaler Zero-Days: Why Patching Isn’t Enough

Akash Kumar
Akash Kumar
7 Min Read

PrintNightmare: When Printing Became a Nightmare

Akash Kumar
Akash Kumar
123 Min Read
CVE & Vulnerabilities

What is a CVE? A Complete Beginner’s Guide to Vulnerabilities

Akash Kumar
Akash Kumar
30 Min Read
//

Sharing knowledge that keeps the digital world a little safer.

Sign Up for Our Newsletter

Subscribe to our newsletter to get our newest articles instantly!

[mc4wp_form id=”1616″]

AceFortisAceFortis
Follow US
© 2026 AceFortis. All Rights Reserved.
Manage Consent
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Functional Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes. The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
  • Manage options
  • Manage services
  • Manage {vendor_count} vendors
  • Read more about these purposes
View preferences
  • {title}
  • {title}
  • {title}
Welcome Back!

Sign in to your account

Username or Email Address
Password

Lost your password?