Blue shield with a check mark in front of patched servers with a PHP badge, beside a laptop showing the WordPress dashboard

PHP2Shell is the nickname for two critical holes in PHP, the language every WordPress site runs on. A WordPress update can’t close them, and neither can a security plugin. The fix has to be installed on your server, so your job today is simple: find out whether your host has done it, and push until you get a clear yes.

Last updated 22 October 2026. We’ll update this guide as hosts finish rolling out the fix.

What is PHP2Shell, in plain words?

On 21 October 2026, the PHP project shipped fixes for two flaws. They’re tracked as CVE-2026-109619 and CVE-2026-109618, and each one scores 9.2 out of 10, which counts as critical. In short, someone with no password can send your site a booby-trapped request and end up running their own code on your server.

The official PHP advisory says every PHP setup that answers web requests is in scope, whether it runs through LiteSpeed (the web server behind a lot of shared hosting), PHP-FPM, php-cgi, FrankenPHP or Apache’s mod_php. Wiz Research, the team that reported the bugs, told Patchstack it managed to take over current container images of WordPress, Joomla and Drupal, and that at least one of the two issues reaches all the way back to PHP 5.4.

Here’s the part that surprises people. The attack happens inside PHP, before WordPress has even started. Your login limits, your two-factor codes and your security plugin are all WordPress features, so they never get a look at the request.

Is my site affected?

Assume yes until someone confirms the fix is on your server. To see what you’re running, open wp-admin and go to Tools > Site Health > Info, then expand the Server panel. The PHP version listed there is what your visitors’ requests actually use.

Compare it with the first fixed release in each branch:

  • 8.2 branch: fixed in 8.2.35
  • 8.3 branch: fixed in 8.3.36
  • 8.4 branch: fixed in 8.4.27
  • 8.5 branch: fixed in 8.5.12
  • 8.1 and older: the PHP project no longer ships updates, so you need your host’s own patched build, and a plan to move up

A lower number isn’t the final word. Linux distributions and hosting vendors were given the patches early, and many add the fix to their own builds without changing the visible version. So if Site Health shows 8.3.35, it might be patched, or it might not. Only the people who run the server can tell you.

What do I need to do?

That depends on who looks after the server.

Your site is on shared or managed hosting

Installing the fixed PHP is your host’s job, and the WordPress.org security notice says many hosts were already updating PHP and adding firewall rules. WooCommerce gives stores the same advice. Your job is to get it in writing. You can send this:

Message for your host: Hello, my WordPress site uses PHP [version from Site Health]. Can you confirm that the PHP2Shell fixes (CVE-2026-109618 and CVE-2026-109619) are installed on the server my site runs on? If they aren’t yet, when will they be, and what protection is in place until then?

Be a little stubborn about the answer. Hearing that firewall rules were added is a good start, but it isn’t the same as hearing that PHP itself was updated on your server. Keep the ticket open until you get that second answer.

You run your own server, VPS or containers

Then it’s on you. Install the patched packages from your distribution, or build the official release, and then restart every PHP worker: PHP-FPM pools, LiteSpeed’s lsphp processes or Apache. Until a worker restarts, it keeps running the old, vulnerable code in memory. For Docker, pull the patched image and recreate the containers, because the running ones won’t change by themselves.

Patchstack also suggests listing every place PHP runs, not just production: staging copies, old test servers and any tools that bundle their own PHP. Those forgotten boxes are exactly where attackers look.

You’re still on PHP 8.1 or older

The PHP security team published minimal source fixes for 7.4, 8.0 and 8.1 because of how serious this is, and some hosts and control panels package them. That buys you time. It doesn’t fix the bigger problem of running a version that gets no updates. Take a backup, update your plugins and theme, then switch to PHP 8.3 or 8.4 on a staging copy first. Our guide on moving your WordPress PHP version safely walks through it.

You look after a lot of client sites

Make one list: every site, who hosts it, and which PHP version it runs. Start with sites on servers you control and anything on old PHP, since nobody else will patch those for you. Then send the host message above to each provider and track the replies in the same sheet.

What if PHP can’t be updated today?

Everything in this section buys time. None of it replaces the update.

  • Put a proxy firewall in front. Patchstack reports that Cloudflare deployed emergency rules for the known attack patterns on every plan, including free. They only help if visitors can’t bypass Cloudflare and hit your server directly.
  • Ask for the temporary server settings. PHP’s advisory lists stop-gaps, such as setting session.upload_progress.enabled=0 in php.ini or the FPM pool (not ini_set() or .user.ini) and restarting workers. These need server-level access, so it’s your host’s call, and PHP is clear that they lower the risk without removing it.
  • Skip the quick-fix plugins. A maintenance-mode plugin, or a “PHP2Shell protection” snippet from a forum, runs inside WordPress, which is too late. Patchstack specifically warns against unofficial fix plugins.
  • Consider going offline if you manage your own unpatched server. WordPress.org passes on the UK National Cyber Security Centre’s view that taking a system offline is reasonable when you can’t fix it yet. Several organisations did exactly that on release day.

What happens if a site gets hit?

Code execution on the server means the attacker can do whatever your site can do, and often more. In practice, that tends to look like this:

  • a new administrator account, sometimes hidden from the Users screen, so they can return later;
  • a small backdoor file tucked into your folders, which keeps working after PHP is patched;
  • redirects that send some visitors, often only mobile users or people arriving from Google, to scam pages;
  • pages of spam published under your domain;
  • a copy of your database, including customer details and orders;
  • on a store, code at checkout that skims card details.

There’s one more risk specific to this incident. Wiz showed it could read PHP’s working memory even without full code execution, and that memory can hold passwords, tokens and API keys. That’s why patching late isn’t enough by itself: if a site was exposed, its secrets may already be out.

How can I tell if something already went wrong?

Most break-ins are quiet, so check rather than wait for symptoms. This takes about five minutes:

  • Users: filter by Administrator. Do you recognize every account?
  • Plugins: is anything installed that you didn’t add?
  • Uploads: any .php file inside wp-content/uploads is a red flag, since that folder should hold media and documents.
  • Google: search site:yourdomain.com and look for pages you never wrote.
  • Search Console: open Security issues and see whether Google has flagged anything.

If you have server access, Wiz’s suggested warning signs are worth a look too: odd multipart uploads that are quickly followed by out-of-memory errors or a run of HTTP 500 responses, oversized or malformed session cookies, and PHP workers restarting for no clear reason. None of these proves a breach, but any of them is a reason to treat the server as compromised.

Spotted something odd? Get your host to run a malware scan on the server and roll back to a backup taken before the problem started. Then change every password and key the site holds: WordPress users, hosting, database, and any API keys in wp-config.php or plugin settings. Our WordPress malware removal guide covers the clean-up in more detail.

Quick answers (FAQ)

I updated WordPress yesterday. Am I covered?

No. A WordPress core update changes WordPress files, not the PHP engine underneath them. You still need confirmation that PHP on your server was patched.

Can Wordfence, Solid Security or another security plugin block PHP2Shell?

Not really. Those plugins inspect requests once WordPress is running, and this attack lands earlier, while PHP is still reading the request. Protection at the edge, such as a proxy firewall your host or CDN runs, is what helps until PHP is updated.

Is it worth switching my site off until the host confirms?

For most hosted sites, no. If your host says the patch or interim protection is live, keep trading and keep an eye on things. It’s a different story on a server you run yourself that you can’t patch or shield yet: a few hours of downtime is cheaper than a cleanup.

My host only offers PHP 8.1. What now?

Ask them straight away whether their 8.1 build includes the backported fix, and when they’ll offer 8.3 or 8.4. A host that can’t answer either question clearly is a good reason to start looking elsewhere.

Do I need to do anything on WordPress.com or another fully managed platform?

Not on the server side, since the provider runs PHP for you. The five-minute check above is still worth doing.

The short version

  • Note the PHP version that Site Health reports for your site.
  • Send your host the message above and wait for a written yes. If the server is yours, patch PHP and restart every worker.
  • Running 8.1 or older? Book the upgrade to 8.3 or 8.4 for this week, staging first.
  • Do the five-minute break-in check, and change passwords and API keys if anything looks off.

Short on time, or not sure what your host’s reply means? Our WordPress security team can check your server and handle the update with your host, or you can tell us about your setup.

Filed under
Tags
Is your WordPress site as healthy as it should be?

Get a free audit covering security, updates, backups, and performance gaps. Takes 60 seconds to request and costs nothing.

Get your free audit