Laptop showing a PHP out-of-date warning and a gold padlock shield beside a server on a navy desk

PHP2Shell: Is Your WordPress Website at Risk? How to Check and Fix It Today

On 21 October 2026, the PHP project issued an urgent security advisory titled “Critical remote code execution vulnerabilities, update now”. The flaws, nicknamed PHP2Shell, can let an attacker run their own code on a web server without logging in. PHP is the language that powers WordPress, WooCommerce and many other website platforms, so if your business website runs on any of them, this affects you, whether you are in the UK, the UAE or anywhere else.

The worrying part is that you may notice nothing at all. A compromised site can keep looking normal while it serves spam pages, redirects visitors or quietly collects form data. By the time you see a warning in Google Search, a drop in leads or a message from your host, the damage to your reputation has already started. The good news is that the fix is well defined, and for most businesses it starts with one email to your host.

What PHP2Shell is, in plain English

The PHP security team describes two critical vulnerabilities, CVE-2026-109618 and CVE-2026-109619. Both can allow “unauthenticated remote code execution”, which means a stranger on the internet could take control of the server, without a password. According to the advisory, the risk covers “all PHP installations serving web requests”, including PHP-FPM, Apache with mod_php, php-cgi, FrankenPHP and LiteSpeed. The PHP team considers the risk highest for mod_php, where it has a demonstrated exploit that runs before any website code does.

This is not theoretical. On 26 October 2026, the US Cybersecurity and Infrastructure Security Agency added both flaws to its Known Exploited Vulnerabilities catalog, which lists flaws that attackers are actively using. CISA set 29 October 2026 as the deadline for US federal agencies to fix them, which shows how seriously it takes the threat.

How to tell if your website is affected: a quick checklist

Work through these questions. If you answer “yes” or “I don’t know” to any of them, act today.

  • Does your site run on PHP? WordPress, WooCommerce, Joomla, Drupal, Magento and many custom sites do. If you are unsure, ask your web developer or host.
  • Which PHP version is it on? The fixed versions are PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35. Anything older on those branches is exposed.
  • Is it on PHP 8.1 or older? The PHP project says these versions “no longer receive updates”, so they will not get an official fix.
  • Who manages the server? On shared or managed hosting, your host usually updates PHP. On your own server or VPS, it is your job, or your developer’s.

Find your PHP version in WordPress

WordPress shows this in the dashboard. The official WordPress guide to updating PHP says to select Tools > Site Health from the sidebar, then the Info tab, then expand the Server section and look for “PHP version”. Note the full number, for example 8.3.36, not just 8.3.

How to fix PHP2Shell: step by step

Platforms change these steps often, so confirm the current process in the official help centre before you act.

  1. Back up your site first. The WordPress guide recommends a backup so you can “revert your site to how it is right now in the event anything goes wrong”, and suggests checking that your host can roll back the PHP version if needed.
  2. Contact your host today. Ask one direct question: “Have you updated our server to PHP 8.5.12, 8.4.27, 8.3.36 or 8.2.35, or applied a vendor patch for CVE-2026-109618 and CVE-2026-109619?” The PHP project says Linux distributions and long-term support vendors received the patches in advance, so many hosts already have them. Get the answer in writing.
  3. If you manage your own server, update PHP. Install your operating system vendor’s updated PHP packages, or the fixed source releases from the PHP downloads page. Restart every PHP worker afterwards so the old code is no longer running.
  4. If you are on PHP 8.1 or older, plan an upgrade now. Ask your host or vendor whether they provide a backported fix. Long term, move to a supported branch. The WordPress guide currently recommends PHP 8.3 or higher. Test your theme and plugins on a staging copy first.
  5. If you cannot update immediately, ask for the interim settings. The PHP advisory lists stopgaps for your developer, including setting session.upload_progress.enabled=0, lowering post_max_size and setting memory_limit=-1 in a way applications cannot override, then restarting every worker. The PHP team is clear that these “do not make an installation safe”. Updating is the only complete fix.
  6. Check for signs of a break-in. After updating, ask your host or developer to look for unfamiliar admin users, new files or plugins you did not install, and unexpected redirects. Search Google for site:yourdomain.com and look for pages you never created.

Taking your site offline? Protect your Google rankings

Some businesses will need to take a site down briefly while it is patched. Google’s guide to pausing or disabling a website says that if you urgently need to disable a site for one to two days, you should show an informational page with a 503 status code. Google warns against returning 403, 404 or 410 codes, because that “will remove the website’s URLs from Google Search”, and it says not to return a 503 for your robots.txt file, because that blocks all crawling. Keep any full shutdown to “a few days at most”.

How to stop this happening again

  • Know your PHP version and its end date. The PHP supported versions page shows that PHP 8.2 security support ends on 31 December 2026, so sites on 8.2 should plan their next upgrade now.
  • Choose a host that patches quickly. Ask how fast they apply security updates and how they tell customers. A good host does this without being asked.
  • Keep automatic, off-site backups. Daily backups stored away from the server make recovery far faster if something does go wrong.
  • Keep WordPress, themes and plugins updated. Remove anything you no longer use, because every extra plugin is extra risk.
  • Put one person in charge of website security. Make sure someone in your business, or your agency, is subscribed to security notices and knows who to call.

Frequently asked questions

Is my WordPress site affected by PHP2Shell?

If it runs on a PHP version older than 8.5.12, 8.4.27, 8.3.36 or 8.2.35 on those branches, or on PHP 8.1 or older without a vendor patch, it is exposed. Check the PHP version under Tools > Site Health > Info > Server, then confirm with your host.

Is updating WordPress enough to fix PHP2Shell?

No. PHP2Shell is a flaw in PHP itself, the software your server uses to run WordPress, not in WordPress. Updating WordPress and plugins is good practice, but the fix is a PHP update on the server, which is usually done by your host.

Will taking my website offline hurt my SEO?

A short break done correctly should not cause lasting harm. Google advises serving a 503 status code for urgent closures of one to two days and keeping full shutdowns to a few days at most. Avoid 404 or 410 errors, which can remove your pages from Google Search.

Need a hand?

Security problems quickly become marketing problems, through lost rankings, broken forms and damaged trust. If you are not sure where your website stands, our Digital Growth Audit reviews your site’s technical health alongside your search and marketing performance. Or contact us and we will help you work out what to ask your host.