Look after it

The PHP2Shell security hole: what it means for a WordPress site

On October 21, 2026, PHP2Shell was published: a severe security hole in PHP itself, the language every WordPress site runs on. This guide explains what was found, how to check in a few minutes which version your site is running, and what to do when the version you have has no fix.

Is your site running on an old PHP version, or is it not clear who updates it? We move it to a new server with PHP 8.4 and automatic security updates, and the existing site does not change until the move.

Move your site to a new server

What to know first

PHP
The programming language WordPress is written in. It runs on the server and builds the pages of the site on every visit.
Security hole
A mistake in software that lets someone from outside do things on the site or the server that they are not allowed to do.
Server
A computer that is always on and connected to the internet, where the site sits.

What was found

Security researchers at the company Wiz published two security holes in PHP itself (CVE-2026-109618 and CVE-2026-109619), with a severity of up to 9.2 out of 10. The holes let an attacker run code on the server without signing in and without a password.

What makes this serious: it does not take a mistake in the site itself. The researchers showed it on a basic WordPress install, with no special plugins. Whoever takes over the server can change the site, add malicious code to it or read the database.

Who is at risk

Almost every PHP version from the last decade is affected. The PHP project published a fix in versions 8.2.35, 8.3.36, 8.4.27 and 8.5.12. For version 8.1 and older the project no longer releases fixes, and version 8.2 stops getting fixes at the end of December 2026.

A site on shared hosting is usually the responsibility of the hosting company, which updates PHP on the server. The big risk is with sites that sit on a private server someone set up once and nobody maintains, and with sites running on an old version that no longer gets fixes.

How to check the PHP version of your site

WordPress shows the version inside its admin dashboard, and it takes less than a minute.

  1. Sign in to the WordPress admin dashboard.
  2. In the menu, open "Tools" and then "Site Health".
  3. Go to the "Info" tab and open the "Server" section.
  4. Look for the "PHP version" line and write down the number.

What to do now

If the site is on shared hosting: ask the hosting company whether the PHP security update is already installed on the server. The number in the dashboard alone does not always tell the whole story, because some companies install fixes without changing the version number.

If the site is on a private server: update PHP through the system updates today. When there is an update for the version you have, this is the right step and it is usually simple.

If the version is 8.1 or older: there is no update for this version, and you need to move to a newer one. This is where it gets complicated. A version jump on a live site can break old plugins and themes, which is why many sites stay behind.

The careful way: a new server, a check, and only then the move

Instead of upgrading PHP on the live site, you set up a new server with a supported version, copy the site to it and test it at a temporary address. The existing site does not change during this time, so there is always somewhere to go back to.

  1. Set up a new server with a PHP version that gets security fixes.
  2. Copy the site to it, the files and the database.
  3. Test the copy at a temporary address: pages, forms, plugins and the admin dashboard.
  4. Only when everything works, connect the domain to the new server.

How it works with us

Our WordPress servers are set up with PHP 8.4 from the official repository of the operating system, and get security updates automatically: a PHP security fix is installed on the server when it is published in the repository, without anyone having to remember.

The move is done by our migration plugin: you install it on the existing site, click to move, and the site is copied to the new server. The existing site stays as it is. You get a temporary address for testing, and you connect the domain in a guided step only after everything looks good. The move is included at no extra charge.

The plugin requires WordPress 6.0 or higher and PHP 7.4 or higher on the existing site. For an older site, contact us, and we will work out together how to move it.

Try it now

Check the PHP version of your site now and write it down. If it is 8.1 or older, or it is not clear who is responsible for updating it, this is the time to plan a move.

If you know which PHP version the site is running and who is responsible for updating it, you have a plan. If the answer is "nobody", that is exactly the part we take on.

If it did not work
  • No access to the admin dashboard? You can ask whoever built the site or the hosting company to check the PHP version.
  • No "Site Health" in the menu? This part has existed since WordPress 5.2, so its absence is already a sign that the site needs an update.
  • Not sure what to do with the result? Send us a screenshot and we will tell you where things stand.

What our WordPress hosting includes (Hebrew)

Check yourself

Answer in your head first, then open.

What is PHP2Shell, in one line?

Two security holes in PHP itself that let an attacker run code on the server without signing in, even on a basic WordPress site.

Which versions have a fix?

8.2.35, 8.3.36, 8.4.27 and 8.5.12. Version 8.1 and older have no fix from the PHP project.

Common questions

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

Usually the hosting company updates PHP on the server. Ask them directly whether the security update is already installed, and make sure the site is not running on a version that no longer gets fixes.

Why not just update PHP on the existing server?

When there is an update for the version you have, that is exactly what to do. When there is none, you need to move to a newer version, and on a live site that can break old plugins and themes. A new server lets you test everything before anything changes on the existing site.

Does the site go offline during the move?

The existing site keeps working as usual during the copy and the testing, and the domain moves to the new server only at the end. During the switch itself, some visitors may still reach the old site for a short time, so it is best not to update content on it from the moment of the copy until the switch, so that no change is left behind.

What if a certain plugin does not work with PHP 8.4?

You see it in testing, before the domain moves. Usually the plugin has a newer version or an alternative, and you can contact us and we will help check.

Continue from here