PHP2Shell & WordPress: What Every Site Owner Must Do Now
WordPress powers a huge share of the web, and it is confirmed vulnerable to PHP2Shell (researchers demonstrated unauthenticated RCE against WordPress 7.1.2). If you run WordPress, this is urgent.
The key thing to understand
PHP2Shell is a flaw in PHP itself, not in WordPress core or any plugin. That means:
- Updating WordPress, themes and plugins is good hygiene but does not fix this bug.
- A security plugin or “maintenance mode” won't stop it — the exploit runs in the PHP engine before WordPress loads.
- The fix is to update the PHP version your site runs on.
Your action plan
- Check your PHP version. Tools → Site Health → Info → Server, or our scanner.
- Update PHP via your host's dashboard (cPanel, Plesk, or a managed-host PHP switch) to 8.2.35 / 8.3.36 / 8.4.27 / 8.5.12 or newer. See the environment guide.
- Test your site afterward — a PHP point update rarely breaks WordPress, but check a staging copy if you're on an old branch and need a bigger jump.
- Keep backups and watch logs for suspicious multipart/form-data POSTs (the attack vector).
If your host still runs PHP 8.1 or older, that branch has no patch. Ask them to move you to 8.2+ immediately, or migrate to a host that offers it.
WooCommerce stores
WooCommerce runs on WordPress + PHP, so the same exposure applies — with the added stakes of customer and payment data. See PHP2Shell & e-commerce.