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 branch | Vulnerable | Fixed in |
|---|---|---|
| PHP 8.5 | Versions before 8.5.12 | 8.5.12 or newer |
| PHP 8.4 | Versions before 8.4.27 | 8.4.27 or newer |
| PHP 8.3 | Versions before 8.3.36 | 8.3.36 or newer |
| PHP 8.2 | Versions before 8.2.35 | 8.2.35 or newer |
| PHP 8.1, 8.0 and 7.4 | Yes | No official release; only limited backports via your host or Linux distribution |
| PHP 7.3 and older (including PHP 5) | Yes | No 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.
- In WordPress: go to Tools → Site Health → Info and open the Server section. It shows the PHP version your website uses.
- In your hosting control panel: look in DirectAdmin, cPanel or Plesk for a section such as 'PHP version' or 'PHP settings'.
- 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.
- Restart PHP processes: running PHP workers keep the old code in memory until they restart. Ask your host to confirm this has been done.
- Test your website: go through your key pages, forms and (for a webshop) the checkout, and check that everything still works as expected.
- 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.
| Date | What happened |
|---|---|
| 20 October 2026 | Details of the vulnerabilities leak on social media, ahead of the planned publication on 22 October. PHP announces an emergency release. |
| 21 October 2026 | PHP 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 2026 | The 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 →
