Skip to content
All insights
Cyber securityVulnerability managementPHPNCSCIncident response

PHP2Shell: What UK Leaders Should Check Now

Two critical PHP flaws are being exploited. If your business runs PHP, or buys anything built on it, this needs a named owner today.

PHP2Shell: What UK Leaders Should Check Now
TL;DR Two critical flaws in PHP, known as PHP2Shell, allow unauthenticated remote code execution and are being exploited. Find every PHP installation, including the ones suppliers run for you, update it, restart it, and check whether anyone got in first.

On 21 October 2026 the PHP project released fixes for two critical vulnerabilities, CVE-2026-109618 and CVE-2026-109619, now widely known as PHP2Shell. The NCSC published an alert the same day. On 26 October the US Cybersecurity and Infrastructure Security Agency added both to its catalogue of known exploited vulnerabilities.

PHP sits behind a very large share of the web, including WordPress and many other content management systems. If your organisation has a website, a customer portal or a hosted application, there is a reasonable chance this applies to you, whether or not anyone in your team has ever written a line of PHP.

What has happened

  • The flaws allow remote code execution by an attacker with no login. The PHP project rates both at 9.2 on the CVSS v4.0 scale.
  • Application code is not a defence. In the highest-risk setup, Apache with mod_php, a request can trigger the exploit before any application code runs. Every web-serving PHP installation is listed as at risk, including PHP-FPM, php-cgi, FrankenPHP and LiteSpeed.
  • Exploitation has been confirmed. Tenable's summary records an attempt against Amazon's honeypots on 17 October, four days before the fixes were released, and broad exploitation attempts since.

Why this does not wait for the normal patch cycle

We usually argue for proportion in vulnerability management, because most flaws do not deserve an emergency. This one does. It needs no credentials, it affects systems that exist to face the internet, and it is being used. Those are the conditions under which a maintenance window is the wrong answer.

Cyber Essentials already requires critical and high-risk updates to be applied within 14 days of release. For PHP2Shell that period has passed.

What the NCSC asks organisations to do

  1. Find every PHP installation, starting with internet-facing systems. Do not limit the search to old versions.
  2. Update to the latest version and keep watching for further updates. Internet-facing systems first, then internal ones.
  3. If you cannot update, apply the PHP project's temporary mitigations.
  4. If you cannot do that quickly, consider taking the system offline until it can be fully mitigated.
  5. Check for signs of compromise and for backdoors if you could not update or disable the system straight away. If you are not confident doing this yourselves, the NCSC points to its assured Cyber Incident Response providers.
  6. Watch for updates from third-party vendors, including appliances and services that bundle PHP.

The versions that matter

Fixes are in PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35, or later. Versions 7.4 to 8.1 have only source-code backports from the PHP security team. Versions 5.4 to 7.3 are end of life and get no fix from the PHP project, so anything still running them needs replacing or taking off the internet, unless a commercial support vendor has confirmed a backport.

Two details catch people out. Linux distributions often backport fixes, so check your vendor's advisory and not only the version number. And installing an updated package does not patch processes that are already running: every PHP worker has to be restarted.

Temporary mitigations

For the technical team, the published mitigations are to set memory_limit=-1 in a way applications cannot override, set session.upload_progress.enabled=0, and on PHP 8.5 also set fatal_error_backtraces=0, then restart all workers. Removing the memory limit has its own availability risk, so it needs a limit at container or operating system level to go with it. The PHP project is clear that updating is the only complete fix. Web application firewall rules help, but only for traffic that passes through them and only for known attack patterns.

The PHP you did not know you had

The update itself is usually straightforward. The harder part is the inventory. Look beyond the systems your own team runs:

  • The marketing site an agency built and still hosts
  • WordPress and plugins on shared hosting, and control panels such as Plesk
  • Older internal tools that nobody has touched for years
  • Vendor appliances and products that bundle PHP
  • Applications run for you by suppliers, where the exposure is theirs but the consequences may be yours

Patching does not close the question

Exploitation attempts began before the fixes existed, so a system that is patched today may already have been compromised. Patching removes the way in. It does not remove anything an attacker left behind. Any internet-facing system that stayed unpatched for a period since 17 October deserves a proper look, in proportion to what it holds and what it can reach.

Questions for the leadership team this week

  • Who owns this, by name, and when did they last report on it?
  • Do we have a complete list of PHP, including what suppliers run for us?
  • Has every internet-facing system been updated and restarted, and how do we know?
  • Is anything running a version that will not receive a fix?
  • Have critical suppliers confirmed their position in writing?
  • Have we checked for compromise, and what would we do if we found it?
  • If this took a week or more to get through, what do we change before the next one?

That last question matters most. The NCSC has warned that long-tolerated weaknesses are becoming easier to find and exploit at scale, so the ability to find what you run and change it quickly is now a basic operating requirement. If you would like a second opinion on where you stand, we are happy to talk it through.

*Position as of 9 November 2026. Check the NCSC alert and the PHP project's advisories for the latest guidance. This article is general good practice and does not replace incident response advice for your own environment.*

Share

Working on something like this?

If this is live for you right now, a short conversation is usually the fastest way forward.

Prefer email? phil.baker@amaya.technology