WordPress Core "wp2shell" Remote Code Execution Vulnerability
First seen Jul 19, 2026 · Updated Jul 19, 2026 · CVSS 9.8
Public exploit code has been released for critical remote code execution vulnerabilities dubbed "wp2shell" affecting WordPress Core, significantly increasing the risk of widespread exploitation. Administrators are urged to patch immediately as attackers can now leverage readily available exploit tooling to compromise unpatched sites.
Technical Analysis
The "wp2shell" flaws are critical RCE vulnerabilities in WordPress Core that allow attackers to achieve arbitrary code execution on affected servers, likely via unsafe deserialization, file upload, or template injection vectors common to WordPress plugin/core exploitation chains. With public proof-of-concept exploits now circulating, opportunistic mass scanning and automated exploitation attempts are expected imminently, mirroring historical WordPress RCE exploitation patterns. Successful exploitation grants attackers webshell access, enabling data exfiltration, malware deployment, defacement, or use of the compromised host as a pivot point into internal networks. Organizations hosting WordPress-based sites that also run AI agent frameworks, chatbots, RAG pipelines, or automation tooling on the same host or network segment risk credential theft (API keys, database secrets) and lateral movement into agent infrastructure if the web server and agent components share credentials, environment variables, or network trust boundaries.
Affected Systems
WordPress Core installations (versions prior to the patched release addressing wp2shell); self-hosted and managed WordPress sites with exposed admin or plugin upload functionality
Indicators of Compromise
- No specific hashes, IPs, or domains published at time of disclosure; monitor for suspicious webshell files, unexpected PHP files in wp-content/uploads, and anomalous outbound connections from WordPress hosts
Remediation Steps
- 1
Patch WordPress Core immediately
Update to the latest patched WordPress Core version addressing the wp2shell vulnerabilities without delay.
- 2
Audit for compromise
Scan wp-content/uploads and theme/plugin directories for unauthorized PHP files, webshells, or recently modified files.
- 3
Restrict file upload and execution
Disable PHP execution in uploads directories and enforce strict file type validation on upload functionality.
- 4
Isolate WordPress hosts
Ensure WordPress servers are segmented from internal systems, including any AI agent, automation, or credential stores, to prevent lateral movement if compromised.
- 5
Rotate credentials and API keys
If compromise is suspected, rotate all database credentials, API keys, and secrets accessible from the affected host, especially those shared with automation or agent systems.
- 6
Enable WAF rules
Deploy virtual patching via a web application firewall to block known wp2shell exploit patterns until full patching is verified.
Industries Most Exposed
Respond to this threat
Pro subscribers get a full AI-generated incident-response playbook for this threat — detection, containment, eradication, and recovery steps — plus an unlimited AI Threat Advisor for questions about your environment.