Field Notes

PHP2Shell: Critical PHP Vulnerabilities Affecting Business Websites

Two critical PHP vulnerabilities could put business websites at risk. Here is what PHP2Shell means, which versions need patching and what website owners should check.

By Lorenzo MugnaiWebsites & Digital Improvement6 min read
On this page

Two critical security vulnerabilities in PHP were disclosed on 21 October 2026. Known collectively as PHP2Shell, they affect the technology behind many websites and applications, including sites built with WordPress, Drupal and Joomla. Both have been assigned a CVSS 4.0 severity score of 9.2 out of 10.

The UK's National Cyber Security Centre (NCSC) has urged organisations to act immediately. The PHP project has released security fixes and says updating is the only complete remedy. For a small business, the first question is a practical one: do you know whether your website uses PHP, and who is responsible for keeping it updated?

What is PHP2Shell?

PHP is a server-side programming language. It runs behind the scenes, handling tasks such as processing forms, working with databases and generating website pages. PHP2Shell is the name researchers have given to a group of serious security flaws in PHP itself, tracked as CVE-2026-109618 and CVE-2026-109619.

The underlying problems involve how PHP manages memory and internal state when a request fails, including when it runs out of memory. Under certain conditions, information left behind by one request can affect another. Researchers demonstrated several ways these weaknesses could be exploited, including reading sensitive data from a running process and executing code remotely without logging in.

That last possibility is particularly serious. Remote code execution could allow an attacker to run instructions on a vulnerable server, potentially exposing customer information, changing website content or interrupting services. The outcome depends on the server's configuration and what access the affected process has.

These are not flaws in a particular WordPress plugin or theme. The problem is lower down, in the PHP runtime that many different applications rely on.

How were the PHP vulnerabilities discovered?

Wiz Research says it identified the first vulnerability on 19 August 2026 using AI-assisted security research. Its team went on to demonstrate attacks against Drupal and WordPress and reported its findings to the PHP security team on 24 August.

There is an interesting wider point here. The flaws had existed for years, but turning them into working exploits required complex investigation. AI-assisted research helped researchers uncover and demonstrate risks that had been difficult to identify. The same advances can help defenders find problems, but they also underline why maintaining existing software matters.

Which PHP versions are affected?

The PHP project released the following fixed versions on 21 October 2026:

PHP branchFixed version
PHP 8.58.5.12
PHP 8.48.4.27
PHP 8.38.3.36
PHP 8.28.2.35

Unpatched installations serving web requests may be at risk, including those using PHP-FPM, Apache mod_php, php-cgi, FrankenPHP and LiteSpeed. PHP's advisory identifies Apache mod_php as particularly high risk because researchers demonstrated an attack that can occur before application code runs.

Older PHP branches need special attention. PHP 8.1 and earlier are no longer supported directly by the PHP project, and PHP 8.2 reaches end of life on 31 December 2026. Some operating system vendors provide backported security fixes for older packages, however, so an older-looking version number does not automatically prove a server is unpatched. Ask the hosting provider or system administrator to confirm the actual patch status and support arrangements.

Are WordPress, Drupal and Joomla websites affected?

Potentially, yes. Researchers demonstrated attacks against deployments of all three platforms. But PHP2Shell is not a WordPress, Drupal or Joomla vulnerability in itself. A website using any of these systems could be affected if the PHP environment underneath it is vulnerable.

That distinction matters because updating WordPress, its themes or its plugins does not necessarily update PHP. A site can appear fully up to date in its content management dashboard while the underlying runtime still needs attention.

The same principle applies to custom PHP applications and other PHP-based websites. Whether a particular installation is exposed depends on its runtime, patch status and configuration.

Have attackers exploited PHP2Shell?

Researchers have demonstrated working exploits, including attacks that can execute code without authentication. There is also evidence of real-world exploitation attempts, with Amazon Threat Intelligence reporting suspicious activity even before the vulnerabilities were publicly disclosed.

That does not mean every vulnerable website has been compromised. The sensible response is not to panic or assume a breach, but to establish whether your website is affected and apply the appropriate security updates. If there are signs of suspicious activity, seek technical assistance to investigate them.

What should a small business do now?

You do not need to understand PHP internals to take useful action. Start with a few straightforward questions:

  1. Does our website use PHP? If you are unsure, ask whoever built, hosts or maintains it.
  2. Has the PHP2Shell security fix been applied? Ask for confirmation of the patched PHP release or the equivalent vendor-supplied security update.
  3. Who is responsible for updates? Your hosting provider may manage the server, but not necessarily every application or runtime component.
  4. Do we have usable backups and a recovery plan? Backups will not prevent an attack, but they matter if something goes wrong.
  5. Is any part of the website running unsupported software? If so, ask for a realistic upgrade plan rather than assuming it can be left indefinitely.

The PHP project says there is no complete workaround that replaces patching. The NCSC recommends urgent action and advises organisations that cannot mitigate the risk to consider taking affected systems offline until they can be secured.

Why this matters beyond PHP2Shell

A website can look perfectly healthy while the software behind it becomes outdated. Pages still load, forms still work and customers may notice nothing. That is one reason maintenance is easy to overlook.

For smaller businesses, the issue is often less about having a large security budget and more about having clear responsibility. A hosting company may maintain part of the infrastructure. A web developer may look after the website itself. If nobody has agreed who manages the PHP runtime and security updates, an important gap can develop.

Not every business needs an expensive support contract. But it should know what technology it depends on, who updates it, how problems are identified and what happens if the site needs recovering.

At Mugnai Digital, I help businesses review and improve existing websites and software, including understanding technical dependencies, planning upgrades and working through maintenance concerns. Sometimes the right solution is a small, targeted change rather than a rebuild.

If you are unsure whether your website is affected by PHP2Shell, start by asking your hosting provider or developer for confirmation of its patch status. It is a straightforward question, and one worth asking now.

Sources and further reading

Share this note

Not sure who maintains your website?

Security updates are easy to overlook when everything appears to be working.

I can help you understand how your website is maintained, identify technical risks and plan sensible improvements without recommending unnecessary work.

Start with a clear picture of what needs attention.

Discuss your website

Mugnai Digital Field Notes

Want to see more of our Field Notes?

If you find these Field Notes useful, you can add Mugnai Digital as a Preferred Source on Google so more of our articles are easier to find when you search.

Add as a Preferred Source

Continue reading