PHP2Shell Vulnerability: Is Your WordPress Site at Risk? (UK Guide)

Published 26 October 2026. Last updated 31 October 2026.

In October 2026, the PHP project released emergency security fixes for two critical flaws, nicknamed PHP2Shell. PHP is the programming language that runs WordPress, WooCommerce and a large share of the websites on the internet, so this affects a lot of site owners, including many who have never heard of PHP.

The short version: this is a problem with the server software your website runs on, not with WordPress itself. Updating WordPress and your plugins is still a good idea, but it does not fix this. The fix has to be made at the PHP level, which usually means your hosting company or whoever manages your server.

What is the PHP2Shell vulnerability?

PHP2Shell is the name given to two security flaws, tracked as CVE-2026-109618 and CVE-2026-109619. Both are rated 9.2 out of 10 for severity. They can allow an attacker to run their own code on a server through PHP without needing to log in, which is known as unauthenticated remote code execution. In plain English, that can mean an attacker taking over the server a website runs on.

PHP released fixed versions on 21 October 2026. On 26 October, the US cyber agency CISA added both flaws to its list of vulnerabilities known to be exploited, and working exploit code has been published. That means the risk is not just theoretical.

Which PHP versions are safe?

According to the advisories, the patched versions are:

  • PHP 8.5.12
  • PHP 8.4.27
  • PHP 8.3.36
  • PHP 8.2.35

PHP 8.1 and older no longer receive official security fixes. If your site runs on one of those, it needs to be moved to a supported version, or your host must confirm that it has applied a vendor patch for it. Always check the details on php.net and with your host, because version numbers and advice can be updated.

Is my WordPress website affected?

If your site runs on PHP, which every WordPress site does, it may be affected unless your host has already patched the server. Many hosts have been rolling out updates, but not all, and some older or unmanaged servers have been left behind. The only way to be sure is to check.

How to check your PHP version

  1. Log in to your WordPress dashboard.
  2. Go to Tools → Site Health → Info → Server.
  3. Look for the PHP version line and compare it with the patched versions above.

You can also find it in your hosting control panel, usually under a section called PHP, PHP Manager or Software.

What to do now

  1. Ask your host. Contact your hosting company and ask whether PHP has been patched for CVE-2026-109618 and CVE-2026-109619. Ask for it in writing.
  2. Update PHP. If you control it yourself, switch to a patched, supported version in your hosting panel. Take a full backup first.
  3. Test your site. Old plugins and themes can break on a newer PHP version, so check your key pages, forms and checkout after the change.
  4. Update everything else. Update WordPress, plugins and themes, and remove any you no longer use. Outdated plugins are a common way in for attackers.
  5. Add a firewall. A web application firewall, such as the one in Cloudflare or a security plugin, can add a layer of protection while you patch. It is not a replacement for patching.
  6. Look for signs of a break-in. Check for admin users you do not recognise, files you did not add, unexpected redirects, spam pages, or your host warning you about malware.
  7. Keep backups. A recent clean backup makes recovery much faster if something does go wrong.

What if my site has already been hacked?

If you see any of the warning signs above, do not just update and hope. A compromised site needs to be cleaned properly, and the way in has to be closed, otherwise the attacker can return. Change all passwords (WordPress, hosting, FTP and database), restore from a clean backup if you have one, and get the site professionally checked.

How we can help

If this all sounds technical, you are not alone. At Cheap Web Designer we can help UK businesses with:

  • Checking your PHP version and whether your site is exposed
  • Updating PHP safely and testing that your site still works
  • Updating WordPress, plugins and themes, and removing risky ones
  • Checking for signs of a break-in and cleaning up hacked sites
  • Ongoing website maintenance and managed web hosting so security updates are not left to chance

Get in touch and we will get back to you. Send us a message through our contact form, email [email protected] or call 07305 084 406. Tell us your website address and who hosts it, and we will let you know what needs doing.

Frequently asked questions

Do WordPress updates fix the PHP vulnerability?

No. The flaws are in PHP itself, not in WordPress. WordPress and plugin updates are still important, but PHP has to be patched separately, normally by your host.

Is my site hacked if it runs an older PHP version?

Not necessarily. An unpatched version means the door is open, not that someone has walked through it. But the risk is real and exploit code is public, so it is worth acting quickly and checking for signs of compromise.

My host says they handle security. Do I need to do anything?

Ask them to confirm in writing that PHP has been patched for these CVEs on your account. Managed hosts often patch quickly, but cheap or older shared hosting may not.

Will updating PHP break my website?

It can, especially if you use old plugins or an outdated theme. That is why you should take a backup first and test your site afterwards, or have a professional do it for you.

Sources and further reading

Share

Leave a Reply

Your email address will not be published. Required fields are marked *