Your website probably runs PHP. Get it patched today.

· · Security Infrastructure

If your business has a website, a customer portal, or an intranet, there is a good chance it runs on PHP. So do WordPress, Drupal, Joomla, Magento, most shared hosting, and the control panels that manage it. As of this week, every one of those needs a software update, and the people looking after your site need to apply it today rather than at the next scheduled maintenance.

On 21 October the PHP project released emergency fixes for two critical flaws, CVE-2026-109618 and CVE-2026-109619, nicknamed PHP2Shell. Both let an attacker who has never logged in run their own code on the web server. The NCSC has told UK organisations to update immediately, and to consider taking systems offline if they can't.

Update, 1 November: patch the kernel too

Two things have changed since 29 October.

PHP2Shell is being paired with a Linux flaw that hands over full control. On its own, PHP2Shell lets an attacker run commands as the web server's low-privilege user. Attackers are combining it with Fragnesia (CVE-2026-46300), a flaw in the Linux kernel, the core of the operating system, that turns that foothold into root: full control of the machine. On 28 October CISA added Fragnesia to its list of known exploited vulnerabilities, warning that the pair can be used to plant webshells, hidden pages that let an attacker back in whenever they like, and run commands as root. So if you run your own Linux servers, updating PHP is no longer the whole job. The kernel needs its update and a restart as well.

Real break-ins are confirmed, and firewalls came first. Security firm Dream recovered an attacker's tools and logs showing 25 servers rooted in the US, Japan, Taiwan, and South Korea on 23 and 24 October, The Register reports. They included Palo Alto Networks firewalls running PAN-OS 12.1 and 12.2, broken into through management pages that faced the internet, and Palo Alto's own researchers verified the findings. On one network the attackers were inside within hours of taking the firewall, and moved on to the directory that holds every user's account. Separately, GreyNoise has seen at least 6 successful attacks, The Record reports. These were targeted attacks using an exploit built for one firewall platform, not mass takeovers of websites. They are exactly the case the firmware advice below is for.

Update, 29 October: attacks are working, and your firewall may be a target

Three things have changed since our last update.

Attacks are now succeeding. On 26 October the US security agency CISA added both flaws to its list of known exploited vulnerabilities. A researcher at Perplexity recorded 35 successful takeovers of decoy servers running PHP 8.4.26 under Apache, The Register reports, although the decoys were set up in a way that makes the attack easier than on most real servers. Two earlier claims of attacks, from Sophos and Palo Alto Networks, were withdrawn after a closer look, so the full picture is still forming. Treat any unpatched PHP that faces the internet as at risk.

PHP is inside your network equipment too. Many firewalls, VPN boxes, and network storage devices run their web management page on PHP. You cannot update that PHP yourself, because it is built into the device's own software, so the fix has to come from the manufacturer as a firmware update. Eclypsium, which tracks security advisories for this kind of equipment, recommends keeping those management pages off the internet until the update arrives. Palo Alto Networks has confirmed that attackers are exploiting the flaws through PAN-OS firewall management pages reachable from the internet. Synology, QNAP, NETGEAR, and Veeam are among the many manufacturers that have published their own advisories.

The UK is behind. Data from Infrawatch, reported by Computer Weekly, showed only about a quarter of internet-facing PHP servers in the UK patched by 26 October, against about half in the Netherlands.

Update, 25 October: what has changed since

Four things have moved on since we first published, and two of them change what you should do.

Attacks started before anyone knew. Amazon found an exploit attempt dated 17 October, four days before the flaws were made public. Its advice is to investigate from 17 October, not from the day you patched. If your site was exposed during that week, a fix applied on 22 October does not prove nothing got in before it.

There is a third flaw, and it has no fix yet. On 23 October PHP warned of CVE-2026-115560, a separate problem that the emergency release does not cover. It only affects sites set up in an unusual way, and PHP will fix it in its next routine release. In the meantime it recommends one setting, session.upload_progress.enabled=0, applied in the main PHP configuration and followed by a restart of PHP. That was already one of the stopgaps for the original flaws, so if your host applied it last week it should stay in place.

Working attacks exist for normal setups. VulnCheck has an exploit that works against PHP's recommended production settings, including against WordPress, despite the memory protections that were expected to make this hard. Mandiant's chief technology officer, quoted by The Register, said it had validated proof-of-concept attacks against the standard Apache setup, though not against PHP-FPM, the other common way of running PHP. As of 23 October nobody had publicly confirmed a successful break-in. Do not read that as a reason to wait.

Patching is slow, and the old versions are the problem. VulnCheck counts more than 1.1 million internet-facing servers, about 42% of everything running PHP that it can see, on old versions with no official fix. In the UK, the tech minister told the House of Lords that 32 government services were offline and four more partly unavailable while they were patched, and the NCSC sent 50,000 warnings to organisations.

What happened

The flaws sit in how PHP cleans up after a request goes wrong, for example when it runs out of memory partway through. Under the right conditions, a crafted web request can corrupt the server's memory and take control of it. Both are rated 9.2 out of 10 for severity.

This is not a bug in your website's code or a plugin. It is in PHP itself, the engine underneath. Wiz, one of the teams that found it, showed working attacks against out-of-the-box WordPress, Drupal, and Joomla, and noted that even a one-line "Hello World" page on an affected version can be vulnerable. The same flaws can also leak memory from the server, which may hold passwords, login tokens, and API keys.

Details were due out on 22 October, but the CVE numbers leaked online two days early and PHP brought the release forward. Cloudflare reported attack traffic against its customers within hours, and watchTowr told The Record it was already seeing exploit attempts, none successful yet. Several European governments, the Dutch parliament, and privacy group noyb took websites offline as a precaution.

Updating WordPress is not enough

Because the flaw is in PHP, updating WordPress or its plugins does not fix it. Someone has to update the PHP software on the server. On shared or managed hosting that someone is your host. If an agency built and runs your site, it is probably them.

The fixed versions are PHP 8.5.12, 8.4.27, 8.3.36, and 8.2.35. PHP 8.1 and older no longer get official releases from the PHP project, although some Linux distributions and paid support vendors are backporting the fix, and PHP has published bare-bones source patches for 7.4, 8.0, and 8.1 for anyone building PHP themselves. A researcher at Detectify estimates that roughly half of PHP websites run one of those older versions.

PHP also hides in places nobody thinks of as "the website": hosting control panels, old marketing microsites, booking systems, network storage boxes, and other appliances with a web admin page. The Dutch NCSC keeps a list of products with a PHP dependency that is worth checking against what you own.

What to do today

If someone else hosts your website, send them five questions:

  • Is our site running on PHP, and which version?
  • Have you applied the PHP2Shell fix (8.5.12, 8.4.27, 8.3.36, or 8.2.35, or a vendor backport)? When?
  • If we are on PHP 8.1 or older, what is the plan, and what protects us in the meantime?
  • Have you set session.upload_progress.enabled=0 for the third flaw, and checked our logs back to 17 October?
  • Has the server's operating system had its latest kernel update and a restart, given attackers are pairing PHP2Shell with the Fragnesia flaw?

A good host will answer all five today. Vague reassurance is not an answer.

If you run your own servers, find every PHP installation, starting with anything reachable from the internet, and update it from your distribution's packages or from php.net. Restart PHP afterwards. Then install your distribution's latest kernel update and reboot, so Fragnesia cannot turn a foothold into full control. Packages are still landing on some platforms: AWS says Amazon Linux updates are due on 22 October, and Lightsail instances can't be updated in place, so they need rebuilding from new images.

If you have a firewall, VPN, or network storage box, find out whether its maker has published a PHP2Shell advisory, install the firmware update as soon as it arrives, and until then make sure its management page cannot be reached from the internet. The Dutch NCSC list above is a good place to start.

If you can't patch today, the PHP advisory lists configuration changes that reduce exposure without fully closing it. A web application firewall, a filter in front of your site that blocks known attack patterns, also helps. Cloudflare's free plan now blocks these attacks by default. Neither replaces the update. If you can do none of that, follow the NCSC's advice and take the system offline until you can.

Once patched, check whether anything got in first, going back to at least 17 October. Look for unfamiliar files in the web folders, new admin accounts, and PHP processes launching programs they never normally would. A server that was exposed for days before patching deserves a proper look.

How Steelwise can help

If you don't know where your PHP is running, who is responsible for updating it, or whether your host's answer holds up, that's exactly what a quick security review sorts out. Get in touch and we'll help you work through it today.

Further reading

← All filings