← Back to blogNews · Website security

PHP2Shell: should you get your WordPress site updated now?

Yes, but not WordPress itself: the PHP version on your server needs to go up. PHP2Shell is the name for two critical vulnerabilities in PHP, the programming language that WordPress and WooCommerce, among others, run on. Ask your host to move your website to PHP 8.5.12, 8.4.27, 8.3.36 or 8.2.35 (or newer). Updating WordPress or your plugins does not fix this vulnerability.

Organiq Grow · 22 October 2026 · 9 min read

Status as of 22 October 2026. The PHP2Shell situation is still developing. For the latest position, check the sources at the bottom of this article or ask your host.

What is PHP2Shell?

PHP2Shell is the collective name for two critical vulnerabilities in PHP itself: CVE-2026-109618 and CVE-2026-109619. Both score 9.2 (CVSS v4.0) and can be exploited over the internet without an attacker having to log in. An attack is technically demanding, though: the vulnerabilities have high attack complexity.

So this is not a flaw in WordPress, a theme or a plugin, but in the software on the server that runs your website. The vulnerabilities were discovered by researchers at Calif and reported through coordinated disclosure: first privately to the PHP maintainers, so a fix could be ready.

Vulnerability 1: CVE-2026-109618

When PHP runs out of memory halfway through setting up a request, that memory can become corrupted. According to the researchers, an attacker can use this to run their own code on the server.

Vulnerability 2: CVE-2026-109619

PHP sometimes keeps references to memory that has already been freed. A following request on the same PHP process (a worker) can then reuse that memory. Running code on the server has been demonstrated with this one as well.

Data can leak too

According to Qualys, it has also been shown that an attacker can read the memory of PHP workers without authorisation. That memory can contain passwords, login tokens and API keys. That is why, after the update, you should also give some thought to your passwords and keys (see below).

Is my website at risk?

Yes, if your website runs on PHP and your host has not yet updated the PHP version. That applies to most WordPress and WooCommerce sites, but also to websites built on Joomla, Drupal or Laravel: they all run on PHP.

The vulnerability affects every PHP installation that handles web requests, however it is set up: PHP-FPM, Apache mod_php, php-cgi, LiteSpeed and FrankenPHP. The highest risk is with Apache mod_php, because an attack there can succeed before your website's code even runs. PHP-FPM needs patching too. How easy an attack is in practice differs per configuration and per application.

A WordPress update does not help here

Keeping WordPress, your theme and your plugins up to date remains sensible, but it does nothing against PHP2Shell. The vulnerability sits one layer deeper, in PHP on the server. Only a newer PHP version fixes it. For most websites, that is the host's job, not the website owner's.

Your website does not run on PHP?

Then these two vulnerabilities do not concern your website. Our own site, organiqgrow.nl, runs on Next.js, for example, and does not use PHP. That does not make PHP bad: every technology needs security updates from time to time. Not sure what your website runs on? Your host or web developer can tell you.

Curious about the differences between the two technologies? Read WordPress vs Next.js

Which PHP versions are safe?

PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35 are safe, as are newer versions within the same branch. These versions were released on 21 October 2026. For older branches it is more complicated, as the table shows.

PHP branchVulnerableFixed in
PHP 8.5Versions before 8.5.128.5.12 or newer
PHP 8.4Versions before 8.4.278.4.27 or newer
PHP 8.3Versions before 8.3.368.3.36 or newer
PHP 8.2Versions before 8.2.358.2.35 or newer
PHP 8.1, 8.0 and 7.4YesNo official release; only limited backports via your host or Linux distribution
PHP 7.3 and older (including PHP 5)YesNo fix: move to a supported version

Older versions: the version number does not tell the whole story

For PHP 7.4, 8.0 and 8.1 there are only limited patches from hosts and Linux distributions. Such a package sometimes keeps the old version number while the fix is included. Whether you are safe is then stated in the security advisory of your host or distribution, not by the version number alone.

Many websites run on an outdated PHP version

According to Qualys, based on their own customers, 71% of PHP installations with a known version run a version that is no longer supported (PHP 5.4 up to and including 8.1). That is not a national figure, but it shows that old PHP versions are still common.

How to check your PHP version

You can find your PHP version in WordPress, in your hosting control panel or by asking your host. Then check whether that version is equal to or higher than the version in the table above.

  1. In WordPress: go to Tools → Site Health → Info and open the Server section. It shows the PHP version your website uses.
  2. In your hosting control panel: look in DirectAdmin, cPanel or Plesk for a section such as 'PHP version' or 'PHP settings'.
  3. With your host: ask which PHP version your website uses, whether that version includes the fix for CVE-2026-109618 and CVE-2026-109619, and whether the PHP processes were restarted after the update.

Why 'php -v' does not always give the right answer

People who manage their own server often check the version with the command php -v. According to Qualys, that can show a different PHP installation from the one actually serving your website. So look at the version your website itself reports, for example via Site Health in WordPress.

What if your host has not updated yet?

Ask your host when the update will be applied and what they are doing in the meantime. No setting fully covers the vulnerability: only updating fixes it. Your host can take temporary measures, such as restricting access to the system from the internet, but that is not full protection.

Your website runs on PHP 8.1, 8.0 or 7.4

There is no official PHP release for these versions. Ask your host whether a patched package containing the fix has been installed, and have them confirm it with their security advisory. Use this moment to plan a move to PHP 8.2 or newer as well.

Your website runs on PHP 7.3 or older

No fix is coming for PHP 7.3 and older, including PHP 5. The only route is moving to a supported PHP version. A big version jump can affect older plugins or an old theme, so have the website tested thoroughly after the move.

Your host does not give a clear answer

If you do not get a clear answer about the PHP version or a timeline, that is a signal to look further. You can have your website moved to a host that has applied the update, or use the moment to have your website rebuilt.

Want help with a move or a new website? See our web design service

What needs to happen after the update?

After the update, all PHP processes need restarting, your website needs testing and, if you suspect abuse, you replace your passwords and keys. The restart is work for your host or server administrator; you can do part of the rest yourself.

  1. Restart PHP processes: running PHP workers keep the old code in memory until they restart. Ask your host to confirm this has been done.
  2. Test your website: go through your key pages, forms and (for a webshop) the checkout, and check that everything still works as expected.
  3. Replace passwords and keys if in doubt: because memory containing passwords, login tokens and API keys could be read, it is sensible to replace them if you suspect abuse. Think of administrator passwords and connections to payment or email systems.

What we did for our clients

As a precaution, we temporarily took all client websites offline when the vulnerability became known and no patch was available yet. The websites were deliberately put in maintenance mode until the patch was out. We then applied the update and tested it. All client websites have since been updated and are back online.

Taking a site offline is a trade-off. The upside: while a website is offline, the vulnerability cannot be exploited through it and there is no risk of a data breach. The downside: your website is temporarily unavailable to customers. In this case we chose certainty; for your website, the choice depends on what is at stake and how quickly your host can update.

You can read more about this choice in our LinkedIn post about taking the websites offline (Dutch)

Timeline: what happened when?

Within two days, PHP2Shell went from leaked details to released fixes and the first reports of exploitation. This is how things unfolded up to and including 22 October 2026.

DateWhat happened
20 October 2026Details of the vulnerabilities leak on social media, ahead of the planned publication on 22 October. PHP announces an emergency release.
21 October 2026PHP releases the patched versions 8.5.12, 8.4.27, 8.3.36 and 8.2.35. watchTowr reports exploitation in the wild from this day, seen on honeypots (decoy servers).
22 October 2026The vulnerabilities are not yet on the CISA KEV list, the US list of vulnerabilities with confirmed exploitation. How many attacks actually succeed is unclear according to Recorded Future; reports differ.

Sources

This article is based on the following sources, consulted on 22 October 2026. They also contain the technical details and the latest position.

Not sure whether your website is already running safely? We will look at which PHP version your site uses and what is needed, including if you want to move.

Request a check →
Frequently asked questions

Questions about PHP2Shell

Short answers to the questions business owners with a WordPress or other PHP website have right now.

Do I need to update my WordPress site because of PHP2Shell?

You mainly need the PHP version on your server updated, not WordPress itself. PHP2Shell is in PHP, the software WordPress runs on. Ask your host for PHP 8.5.12, 8.4.27, 8.3.36 or 8.2.35 (or newer) and to confirm that the PHP processes were restarted afterwards.

Is updating WordPress or my plugins enough?

No, updating WordPress, your theme or your plugins does not fix PHP2Shell. Those updates remain important for other vulnerabilities, but this one is in PHP on the server. Only a newer PHP version helps.

Should I take my website offline?

That is a trade-off between security and availability. Taking it offline prevents the vulnerability from being exploited through your website and limits the risk of a data breach, but your website is then temporarily unavailable. As a precaution, we took our clients' websites offline until the patch was out. If your PHP version has since been updated, taking the site offline for this reason is no longer necessary.

How do I know whether my host has already applied the update?

Check in WordPress under Tools → Site Health → Info → Server which PHP version your site uses, or ask your host. If you run PHP 8.1, 8.0 or 7.4, the fix may also be in a package with an old version number. In that case, ask for your host's security advisory.

My website runs on PHP 7 or older. What now?

Then moving to a supported PHP version is the safest route. No fix is coming for PHP 7.3 and older; for PHP 7.4 there are only limited patches via hosts or Linux distributions. Have your website tested after the move, because older plugins or themes may behave differently on a new PHP version.

Is PHP2Shell already being exploited?

There are reports of exploitation, but how widespread it is remains unclear. watchTowr reports exploitation in the wild since 21 October 2026, seen on decoy servers. According to Recorded Future, the scale of successful attacks is unclear, and on 22 October 2026 the vulnerabilities were not yet on the CISA KEV list.

Read more

Need help with your website?

From doubts about your PHP version
to a website that runs safely.

Get in touch and we will look together at which PHP version your website uses and what the next step is: an update via your host, a move or a new website. We build new websites from €1,200.