Blog

PHP2Shell: what it is and what to do now

22 October 2026

A laptop showing PHP code breaking apart around a red skull, with a blue padlock shield in front and Tewkesbury Abbey in the background

On 21 October the PHP team released emergency fixes for two critical vulnerabilities, known together as PHP2Shell (CVE-2026-109618 and CVE-2026-109619).

Why it matters

The flaw is in PHP itself, not in a particular plugin or theme. That means WordPress, Joomla, Drupal, Magento and custom PHP sites are all exposed if the server runs an unpatched version of PHP.

Attackers can run code on the server without logging in, and exploitation attempts are already being seen.

What to do now

  1. Check your PHP version. The fixed releases are 8.5.12, 8.4.27, 8.3.36 and 8.2.35. Most hosting control panels (cPanel, Plesk and so on) show this under “PHP version” or “Select PHP version”. Your host should already have installed the patch, but don’t assume - check.

  2. If you’re on PHP 8.1 or older, upgrade. Those versions are no longer supported, so there’s no official update for them. Some hosts may apply their own fix, so ask yours, but the safest option is to move to a supported version. Test the site on a newer version first, or ask your developer to.

  3. Put the site behind Cloudflare. Cloudflare has rolled out firewall rules that block the known attack methods, and they’re included on the free plan too. The rules only work if your traffic actually goes through Cloudflare, so a correctly set up DNS record matters. They’re a safety net, not a replacement for updating PHP.

  4. Change passwords if you were exposed. Anyone who manages to run code on your server can read what’s stored there, including passwords and keys. If your site ran an unpatched version, change your hosting, database and admin passwords once you’ve updated.

If you’d like help checking your site, setting up Cloudflare or protecting it against this and other common attacks, get in touch with us at hello@uk-it.uk or 0330 223 0005.

See also our website hosting and protecting your business pages.

← Back to all posts

Get in Touch