PHP Vulnerability October 2026: PHP2Shell
WordPress troubleshooting

PHP Vulnerability October 2026: PHP2Shell

On October 21, 2026, the PHP team released an emergency update. It closes two serious security vulnerabilities that, under certain conditions, let an attacker run code on the server without any password. The vulnerabilities are known as PHP2Shell. PHP is the programming language the server runs to display a WordPress site, so this affects almost every WordPress site.

The most important point: this is not a bug in WordPress or in a plugin. Updating WordPress or your plugins does not close it. The fix is installed on the server, and for most business sites the one who does that is the hosting company. In this article you will find how to check whether your site is already protected, and what to write to your hosting company if it is not.

What happened, in short

There are two vulnerabilities here, with the IDs CVE-2026-109618 and CVE-2026-109619. The PHP team rated both 9.2 out of 10 on the standard severity scale (CVSS 4.0), which means “critical”. According to its announcement, any server that runs PHP to serve a website is exposed, including the setups most common at hosting companies.

The highest risk is on servers that run PHP inside the web server software itself (Apache). This setup is called mod_php, and usually only the hosting company knows whether your site runs this way. According to the PHP team, on such servers a scenario was shown in which a single request, with no password, triggers the attack before the site even starts running.

The PHP team released the fix on October 21. According to SecurityWeek, details about the vulnerabilities leaked online a day earlier, so the announcement was moved up from October 22. And according to Datadog, Amazon detected attempts to exploit the vulnerability as early as October 17, four days before the announcement.

Have sites already been hacked?

The sources disagree here. The US cybersecurity agency CISA wrote that as of the day it published its alert (October 21), it had not seen anyone successfully exploit the vulnerability. Security companies reported exploitation attempts, and researchers at Palo Alto Networks described a case in which attackers broke into a government body in Europe. On the other hand, other researchers wrote that the attack code published online does not work against PHP with its default settings, or that it requires unrealistic conditions.

We did not find a report of a specific WordPress site that was hacked through this vulnerability. But according to an estimate by Palo Alto Networks, more than 22.6 million internet-facing PHP installations may be vulnerable. That is an estimate, not a count of hacked sites. Both the PHP team and CISA say the same thing: update now, and do not wait for a wave of hacks.

How to check your site’s PHP version

The simplest way is from the WordPress admin:

  1. Go to “Tools” and then “Site Health”.
  2. Switch to the “Info” tab.
  3. Open the “Server” section and look for the PHP version line.

If you have access to your hosting control panel, cPanel for example, the version also appears there, in the PHP version tool called MultiPHP Manager. Note that sometimes it shows only the series, for example 8.3. You need the full number, for example 8.3.36.

Compare the number you found with the table:

The series your site runs on The version where the vulnerabilities were fixed
8.5 8.5.12 and up
8.4 8.4.27 and up
8.3 8.3.36 and up
8.2 8.2.35 and up. Updates for this series end on December 31, 2026
8.1 and older There is no fixed version. You need to move to a newer series

There is one case where the number does not tell the whole story. Some server operating systems (Linux distributions) include the fix without changing the version number, and hosting companies that use them get the fix that way. So if your number is lower than the table, that does not yet mean your site is vulnerable. The way to know for sure is to get a written answer from your hosting company.

What to write to your hosting company

You can send this message as is, and only replace the site address:

Hi, I want to make sure my site, example.com, is protected from the PHP2Shell vulnerabilities (CVE-2026-109618 and CVE-2026-109619), which were fixed on October 21. Which PHP version is the site running now, and does it include the fix? If the site is on version 8.1 or older, how do I move to a version that still gets updates?

After the update, PHP needs to be restarted on the server for the fix to take effect. It is worth asking your hosting company whether that has already been done.

If your site runs on PHP 8.1 or older

The PHP team no longer releases updates for the 8.1 series or older series. For the 7.4, 8.0 and 8.1 series, only a fix file was published for professionals who build PHP themselves, not a ready-made update. A hosting customer cannot install it. For older series, no fix was published at all. The solution is to move to a series that still gets updates. CISA recommends disconnecting from the internet systems that run on 8.1 or older, as well as systems that cannot be updated right away.

Moving to a new series can break an old plugin or theme. So first make a full backup of your site, and if possible, test the switch on a copy of the site. If an error still shows up, we have a guide that explains how to bring your site back after a PHP update.

What does not close the vulnerability

  • Updating WordPress, your theme or plugins. The vulnerability is in the server software, not in your site’s code.
  • Changing a setting in a file on your site. A tip going around online is to turn off a technical setting called session.upload_progress.enabled, through a file called .user.ini. The PHP team wrote that you should not rely on that file. And even when the setting is turned off the right way, in the server settings, it blocks only some of the attack paths. According to the PHP team, updating is the only complete fix.

What about the third vulnerability?

On October 23, the PHP team announced another vulnerability, CVE-2026-115560. It has not been fixed yet, and the PHP team is handling it in the regular update cycle. But it only exists when the site’s own code changes, while the page is loading, the way PHP stores user data, and the session.upload_progress.enabled setting is still on. The PHP team itself wrote that this situation is unlikely in practice. For this vulnerability only: if your hosting company already turned off that setting because of the two earlier vulnerabilities, the PHP team says nothing more needs to be done.

After the update: a quick check of your site

If your site ran on a vulnerable version for a while, it is worth checking that nothing suspicious was left behind:

  • There is no administrator in your WordPress user list that you do not recognize.
  • Your site’s uploads folder (wp-content/uploads, which you can see in your hosting file manager) should contain images and documents. A file ending in .php with an unfamiliar name is a warning sign. An empty file called index.php is usually fine.
  • Ask your hosting company to check whether there was suspicious activity on the server, such as commands being run or unfamiliar tools being downloaded. This is a CISA recommendation.

If you found something like that, our guide on removing malware from a WordPress site walks through the steps in order. And for the bigger picture, we also have a guide on securing a WordPress site.

Frequently asked questions

My site is on shared hosting. Do I need to do anything myself?

The fix itself is installed by your hosting company. What you need to do is check your PHP version, and if it is not up to date according to the table, send the company the message above. If your site is on 8.1 or older, you need to move to a newer version. You can usually do that yourself, in your hosting control panel.

I updated WordPress and all my plugins. Is that enough?

No. The vulnerability is in PHP, the software the server runs, not in WordPress. Updating WordPress does not touch it.

I have a WooCommerce store. Does that change anything?

WooCommerce runs on the same server PHP, so the guidance is the same. According to the security company Sansec, stores are exposed even if there is nothing wrong with their own code. A store holds customer details and orders, so it is worth handling it first.

What is the difference between PHP2Shell and the October 23 vulnerability?

PHP2Shell is two serious vulnerabilities that have already been fixed, and they affect any PHP installation that has not been updated. The October 23 vulnerability has not been fixed yet, but it requires a rare setting in the site’s code, and the PHP team estimates that such a scenario is unlikely in practice.

Want us to check your PHP version and the state of your site for you? Talk to us.

Information current as of October 25, 2026.

Sources

Have a project worth talking about?

The call is free, with no commitment 😊