Attackers exploit WP Rocket flaw CVE-2026-125812 to run PHP on WordPress
High · BleepingComputer ·
WordPress
Key points
- CVE-2026-125812 affects the WP Rocket plugin on WordPress.
- Attackers are already abusing the weakness in ongoing campaigns.
- Successful abuse can let an intruder run PHP and seize control of a site.
- High severity: prioritize verification, patching, and detection.
Reports that cybercriminals are actively exploiting a vulnerability identified as CVE-2026-125812 mean owners of WordPress sites running the WP Rocket plugin confront a severe threat. The weakness allows an intruder to run PHP instructions on a vulnerable installation, which can lead to full website takeover.
Because WP Rocket is a performance plugin, it often sits on production sites that serve public traffic. That makes the exposure operationally significant: a compromised site can be used for defacement, malware delivery, SEO poisoning, or as a foothold into adjacent systems. The issue is not theoretical; exploitation is already underway.
WordPress itself is not the vulnerable component in this case, but the plugin extends the CMS and inherits its trust boundary. Administrators should treat any site running the affected plugin as potentially exposed until they verify version status and review logs for suspicious PHP activity.
Context matters: plugin vulnerabilities remain a common entry point for mass scanning and opportunistic attacks. The CVE identifier gives defenders a shared reference for threat intelligence, WAF rules, and vendor advisories. Watch for vendor guidance, updated plugin releases, and signs of webshell placement or unexpected administrative changes.
What to do now
- Inventory every WordPress instance running WP Rocket and confirm the plugin version against vendor guidance.
- Apply the vendor's fixed release as soon as it is available; if no patch exists, disable or remove the plugin until mitigation is confirmed.
- Deploy WAF or virtual patching rules targeting CVE-2026-125812 and block known exploit patterns.
- Review web server and WordPress logs for unexpected PHP file creation, POST requests to plugin endpoints, and new admin users.
- Scan for webshells and compare core and plugin files against known-good hashes.
- Rotate WordPress admin, database, and hosting credentials if compromise is suspected.
- Restrict plugin management to trusted roles and enforce MFA on administrative accounts.
CVE references
- CVE-2026-125812
Original source
Original AI-assisted analysis, sources cited. Verify with the vendor advisory before acting.