Security

PHP2Shell: is your business website at risk from the October 2026 PHP flaw?

On 21 October 2026, PHP released emergency fixes for two critical flaws that can let an attacker take over a web server without logging in. PHP runs most small business websites, including WordPress. Here's what it means in plain English, and what to do today.

What happened

PHP is the programming language behind a huge share of the web, including WordPress, Joomla, Drupal and Magento. Two serious flaws were found in PHP itself, tracked as CVE-2026-109618 and CVE-2026-109619 and nicknamed PHP2Shell.

  • No login needed: an attacker can run their own code on an unpatched server just by sending it web requests.
  • Very widespread: every PHP version from 5.4 to 8.5 is affected, in every common setup that serves web pages.
  • Confirmed in real attacks: attempts were seen before the fix was even published, and on 26 October CISA added both flaws to its list of vulnerabilities known to be exploited by attackers.
  • It's not about plugins: the flaw is in PHP, so a fully up-to-date WordPress site can still be exposed if the server's PHP isn't patched.

The UK's National Cyber Security Centre (NCSC) is urging organisations to take immediate action, and the US cyber agency CISA says to patch immediately, or take PHP systems offline if they can't be patched.

Is my website affected?

If your website runs on PHP and its hosting hasn't been updated since 21 October 2026, assume it's at risk. The safe versions are:

  • PHP 8.5.12 or later
  • PHP 8.4.27 or later
  • PHP 8.3.36 or later
  • PHP 8.2.35 or later

PHP 8.1 and older are out of support and get no normal fix. If your site is still on one of these, it needs upgrading, not just patching.

How to check

  1. WordPress: go to Tools → Site Health → Info → Server to see the PHP version.
  2. Hosting control panel (cPanel, Plesk and similar): look for "PHP version" or "Select PHP version".
  3. Not sure who hosts it? Ask whoever built your website, or check who you pay for hosting.

What to do today

  1. Email your hosting company: “Has our server been patched for PHP2Shell, CVE-2026-109618 and CVE-2026-109619? Which PHP version are we on?” Good hosts will have already done it. Several large hosts have published statements.
  2. If you run your own server, update PHP to a fixed version and restart PHP (all workers), then confirm the version.
  3. If you can't patch quickly, consider taking the site offline or putting it into maintenance mode until you can. That's CISA's advice for unpatchable systems.
  4. Use a web application firewall as a stopgap. Cloudflare has added protection rules, including on its free plan, for traffic that goes through Cloudflare. It helps, but it isn't a fix.
  5. Update WordPress, themes and plugins too. They're not the cause, but don't give attackers a second way in.

Signs your site may already be compromised

  • Strange redirects to other websites, especially on phones
  • New admin users you didn't create
  • Spam pages showing up when you search Google for site:yourdomain.co.uk
  • Warnings from Google, your browser or your host, or a sudden slowdown

If you see any of these, read what to do if your website has been hacked. Patching stops new attacks, but it doesn't remove anything an attacker has already left behind.

The bigger lesson for small businesses

Most small business websites aren't hacked by someone targeting them. They're hit by automated tools scanning the whole internet for servers that haven't been updated. This flaw will be scanned for for years.

So ask: who is responsible for patching our website's server, and how would we know it's been done? If the answer is “not sure”, that's the real risk. A proper website care plan answers it.

For what it's worth, this website, and the starter sites we build, don't use PHP at all. They're pre-built pages served from Cloudflare's network, so there's no PHP server to patch. That isn't right for every business, but it removes a whole category of problem.

Not sure where you stand? Our £100 website audit checks your hosting, PHP version and security, or just ask us a quick question.

Sources

Correct as of 27 October 2026. This is a fast-moving issue; follow your host's and PHP's latest advice.

FAQ

Quick answers

Does PHP2Shell affect WordPress?

Yes, if the server's PHP hasn't been patched. The flaw is in PHP itself, not WordPress, so an up-to-date WordPress site on unpatched PHP can still be attacked. Researchers confirmed attacks against specific versions of WordPress, Drupal, Joomla and Magento.

Which PHP versions are safe?

PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35 or later. PHP 8.1 and older are out of support and should be upgraded.

Is a Cloudflare firewall enough?

No. Cloudflare's rules help as a stopgap for traffic that passes through Cloudflare, but updating PHP is the only complete fix.

Let's dig out your savings.

Book a free 30-minute chat. No jargon, no hard sell — just an honest look at where your technology is costing too much, and where AI could save you time and money.