PHP2Shell: Why Old PHP Versions Put Your Website at Risk

Laptop showing a website with a warning sign next to a padlock shield, illustrating the security risk of old PHP versions
green tornado

In October 2026 the team behind PHP, the programming language that runs WordPress and most small business websites, released emergency security updates for two serious flaws. Security researchers nicknamed them “PHP2Shell”, and if your website runs on an old version of PHP, it is worth understanding what this means for you.

What is PHP and why does it matter?

PHP is the software on your web server that builds each page of your website when someone visits it. If your site runs on WordPress, it relies on PHP every time a page loads, a form is sent or an order is placed.

Like any software, PHP needs updating. Each version is supported for four years: two years of general fixes, then two years of security fixes only. After that it reaches “end of life” and receives no updates at all, even when a serious problem is found.

What happened with PHP2Shell?

On 21 October 2026, PHP released emergency updates for two vulnerabilities, tracked as CVE-2026-109618 and CVE-2026-109619. Both were rated 9.2 out of 10 for severity.

In plain terms, the flaws could let an attacker run their own code on a web server by sending it a specially crafted request, without needing a password. Because the problem sits in PHP itself rather than in a plugin or theme, a well-built website can still be exposed if the server underneath it is running an affected version.

Security companies reported attempts to exploit the flaws around the time they were disclosed, so this was not just a theoretical risk.

The fixes were released for the supported versions of PHP: 8.2.35, 8.3.36, 8.4.27 and 8.5.12. Websites still running PHP 8.1, 7.4 or older do not receive fixes like these at all.

Which PHP versions are still supported?

As of November 2026, the PHP project supports these versions:

  • PHP 8.5 – security support until 31 December 2029
  • PHP 8.4 – security support until 31 December 2028
  • PHP 8.3 – security support until 31 December 2027
  • PHP 8.2 – security support ends on 31 December 2026

PHP 8.1 reached end of life on 31 December 2025, and PHP 7.4 on 28 November 2022. If your website is on PHP 8.2, it has only a few weeks of security updates left.

Why do so many websites still run old PHP?

It is rarely deliberate. Common reasons include:

  • The website was built years ago and nobody has checked the server settings since
  • The hosting company leaves the upgrade to the website owner
  • An old theme or plugin stops working on newer PHP, so the upgrade was put off
  • Nobody knows who is responsible for the technical side of the website

Upgrading PHP is usually straightforward, but on older websites it can expose code that no longer works. That is why it should be checked and tested, not just switched over and hoped for the best.

How to check your website’s PHP version

If you use WordPress, log in and go to Tools > Site Health > Info, then open the Server section to see the PHP version. Your hosting control panel will usually show it too. If you are not sure where to look, ask whoever hosts or manages your website.

How Green Tornado can help

If your website is running an old version of PHP, or you simply don’t know, we can help:

  • PHP version check – we will tell you which version your website runs and whether it is still supported
  • Upgrade and testing – we update PHP and check your pages, forms and plugins work properly afterwards, fixing anything that breaks
  • Hosting – our website hosting runs on up-to-date PHP, with SSL, regular malware scans and backups
  • Ongoing maintenance – our website maintenance packages include daily backups, WordPress and plugin updates and security protection, so your website does not quietly fall behind again

Security updates are not the most exciting part of running a business website, but they are one of the most important. If you would like us to check your website, get in touch or call us on 01277 849161.

Facebook
Twitter
LinkedIn
More to explore