Skip to content

PHP2Shell: why thousands of websites switched themselves off, and how to be ready for the next vulnerability

11 min read Last checked on

On 20 and 21 October 2026, two critical PHP vulnerabilities became known that let attackers run code on a web server without logging in. Because the details leaked before an update existed, thousands of organisations took their websites offline as a precaution. The lessons cover knowing where your software runs, patching quickly and deciding in advance when to switch off.

On Wednesday 21 October 2026, MijnOverheid and DigiD (the Dutch government's citizen portal and login service) and Overheid.nl could not be reached. Nor could the website of the Dutch House of Representatives, that of the NCSC (the Dutch National Cyber Security Centre) itself, the tech news site Tweakers, RTL Nieuws and 9292, the Dutch public transport planner. In Flanders, the Minister-President took every government site running on PHP offline, and Smartschool, a Flemish school platform, and the sites of several hospitals were down as well. Yourhosting, a Dutch hosting provider, switched off its shared hosting and some of its virtual private servers.

As far as is known, nobody had been hacked. They switched themselves off. A critical vulnerability in PHP, the programming language that much of the web runs on, had become public before an update was available. This article covers what happened, and the question any company with a website or web application can ask itself: how quickly would you know it affects you, and what would you do then?

What happened

When What
Around August 2026 Researchers at Calif find the vulnerabilities and report them to PHP.
17 October Amazon already sees an attack attempt, before the vulnerability is known.
20 October Details leak. PHP announces an emergency release. CERT-EU publishes a first advisory.
21 October, morning A supplier of container images already releases updated versions, contrary to the agreements according to the PHP Foundation.
21 October, around 14:00 UTC The official updates appear: PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35.
21 October, afternoon and evening The NCSC advises organisations to consider going offline until they can update. Thousands of sites go down. The number of unreachable .nl sites measured by UptimeRobot rises from 4,356 to 14,682.
22 October Most services are reachable again. The NCSC sees the first signs of successful attacks internationally.
23 October A third vulnerability becomes known, exploitable only with unusual settings.
26 October CISA adds both vulnerabilities to its list of actively exploited vulnerabilities.

What the vulnerability did

The two vulnerabilities were in PHP itself, not in WordPress, a plugin or a framework. One concerned memory that was cleaned up incorrectly when a request was interrupted partway through, for example during a file upload. The other concerned data that lingered after an error and was then used by the next request. In both cases an attacker could run code on the server without logging in, before the application itself had done anything. It affected almost every way in which PHP handles web requests.

So far, no successful break-ins have been confirmed in the Netherlands or Belgium. The Autoriteit Persoonsgegevens, the Dutch Data Protection Authority, had received no data breach notifications by 23 October. Elsewhere, servers were taken over. A total number of sites taken offline has never been published.

Why this concerns every company

A software company of 30 people can easily be running PHP without knowing it: the marketing site on WordPress, an old customer portal, a tool a colleague once set up, a supplier's product with PHP built in. The NCSC published a list of software that includes PHP precisely because it is so often invisible.

Then there are the questions that came up in many companies on 21 October. Do we run PHP? Which version? Who updates it, us or the hosting provider? Has that happened yet? Are we allowed to take the site down, and who decides? If you ask those questions for the first time that afternoon, you lose the hours that matter.

The lessons

1. Know where your software runs, and which version

Experts at CISA, Sophos and Detectify all named this first: make an overview of every place PHP runs, including inside suppliers' products. Detectify estimated that roughly half of PHP sites run on older versions that have not been updated. Old and forgotten sites are the biggest risk.

2. An update to your application is not an update to your server

Updating WordPress or a plugin does not update PHP. That happens on the server, by you or your hosting provider. Know for each system who is responsible for it.

3. Check that the update has actually been installed

Scheduled maintenance is not an installed update. Malwarebytes and the UK's NCSC advised getting hosting providers and suppliers to confirm in writing that the update has been applied. Then restart the PHP processes as well, because otherwise long-running processes keep using the old code.

4. A temporary filter rule is not a fix

Web application firewall vendors quickly released rules that blocked known attacks. That buys time, but it does not make a system safe. Cloudflare's CTO called it a stopgap.

5. Decide in advance when you switch off

The NCSC and the CCB (the Centre for Cybersecurity Belgium) left the choice to organisations themselves. That is reasonable, but then someone has to be there to make that choice. Record who may decide to take a system offline, and on the basis of which signals.

6. Expect attackers to be quick

According to experts, attackers using AI could build a working attack within an hour. An attack attempt was seen before the vulnerability was even known. The time between disclosure and exploitation is no longer weeks, but hours.

7. Communicate with your customers

Yourhosting kept a status page up to date, posted updates on its blog and asked customers to get in touch only once per customer, so support was not overwhelmed. If your service goes down, your customers want to know why and for how long.

8. Clear out what is no longer supported

PHP 8.1 and older did not get an official update. Anyone running those versions could only switch off or put something together themselves. A version that is no longer supported is a vulnerability that has not been found yet.

What ISO 27001 does here, and what it does not

PHP itself is an open source project without an ISMS. So the question is what an ISMS does for the organisations that use PHP. With PHP2Shell, that was easy to see. The organisations that knew within a few hours whether they were affected were the ones that already knew what they were running. The rest spent that afternoon searching.

The controls involved

Control What it covers What you see in this incident
5.9 Asset inventory Knowing where PHP runs, in which version, and in which suppliers' products.
5.7 Threat intelligence Receiving and assessing the advisories from the NCSC, CERT-EU and CISA in time.
8.8 Technical vulnerabilities How quickly you assess and patch a critical vulnerability, and what you do while there is no update yet.
8.9 and 8.32 Configuration and change management Applying the update, restarting the processes, and recording that it has been done.
5.19 to 5.22 Suppliers The hosting provider that updates PHP, and the confirmation that it has been done.
5.24 to 5.26 and 5.30 Incident management and continuity The decision to take a site offline as a precaution, and the recovery.

What was probably recorded

This is how the records look at a software company with a well organised ISMS. This is a fictitious example, not real data.

When Register Record
20 October, evening Threat intelligence CERT-EU advisory on critical vulnerabilities in PHP received. Assessment: relevant, critical.
20 October, evening Asset inventory Check: PHP 8.4 on the customer portal and the API, PHP 8.1 on an old marketing site, PHP in a supplier's monitoring tool.
21 October, morning Incident register Decision: old marketing site offline until it is replaced, customer portal and API behind a temporary filter rule until the update is available. Who decided, and why.
21 October, afternoon Change register PHP updated to 8.4.27 on the portal and the API, processes restarted, version checked.
22 October Supplier register Written confirmation from the hosting provider and the supplier of the monitoring tool that they have updated.
The following week Risk register Risk "Unsupported software" reviewed. Action: old marketing site permanently removed.

What an ISMS does and does not do

  • It does: make sure the overview already exists when you need it, instead of you having to create it that afternoon.
  • It does: record in advance how quickly you patch and who decides to switch things off, so that on the day itself you only have to carry it out.
  • It does: prove that the update has actually been installed, not just scheduled.
  • It does not: prevent a vulnerability in someone else's software, or make an update arrive sooner. An ISMS determines how quickly you respond, not how quickly the rest of the world does.

Step by step

1. Make an overview of your software and versions

For each system, note which software runs on it, which version, where it is hosted and who updates it: you, the hosting provider or a supplier. Include marketing sites, internal tools and suppliers' products.

Who: the person responsible for IT, with the development teams. How often: once, then update every quarter.

2. Add end of support dates

For each software version, note until when security updates will be released. Plan upgrades well before that date.

Who: the person responsible for IT. How often: every quarter.

3. Follow security advisories

Subscribe to the NCSC's advisories and to the security notices of the software you use most. Agree who reads and assesses them.

Who: the security officer. How often: ongoing.

4. Record how quickly you update

Set a deadline for each severity level. For example: critical and actively exploited within 24 hours, critical within a week, everything else in the regular cycle. Record who may deviate from this and why.

Who: management with the security officer. How often: once, reviewed yearly.

5. Record who may switch off

Write down who is authorised to take a system offline when no update is available, and how you tell customers.

Who: management. How often: once, reviewed yearly.

6. Make agreements with your hosting provider and suppliers

Ask how they handle critical vulnerabilities, how quickly they update and how they keep you informed. After an incident, ask for written confirmation that the update has been installed.

Who: the security officer. How often: when signing the contract and yearly during the supplier assessment.

7. Check and record

After every critical update, check that the new version is actually running and the processes have been restarted. Keep that as evidence.

Who: the system owner. How often: after every critical update.

8. Clear out forgotten systems

Switch off systems nobody uses any more. What you do not have, you do not need to update.

Who: the person responsible for IT. How often: yearly.

How you keep track of this in Trustbird

  • Assets. Your systems are recorded with an owner and a criticality. That is the basis of the overview from step 1.
  • Products. If you supply software yourself, you track the vulnerabilities for each product, including what you did about them. That also helps with the Cyber Resilience Act.
  • Suppliers. Your hosting provider is recorded as a critical supplier, with the date of its last assessment. Trustbird schedules the next assessment.
  • Risks. "Critical vulnerability in a component with no update available" is in your risk register with an owner and a treatment plan.
  • Tasks and reviews. The quarterly check of versions and end of support dates is scheduled and appears under Due for review when the time comes.
  • Controls and evidence. You keep your hosting provider's confirmation and your own check as evidence, with a date.
  • Incidents. If you do have to switch off, you record it as an incident with a timeline, so you can show later what you decided and when.

Trustbird does not install updates. It does help you know what you run and who updates it, and make sure the checks you agreed on actually happen.

Frequently asked questions

What is PHP2Shell?

The name for two critical vulnerabilities in PHP itself, CVE-2026-109618 and CVE-2026-109619, which were fixed on 21 October 2026. They let an attacker run code on a web server with PHP without logging in, before the application itself had done anything. They affected almost every way in which PHP handles web requests.

Why did so many websites go offline?

The details leaked before the official update was available. The NCSC, the Dutch National Cyber Security Centre, advised organisations to make their own assessment and to consider taking their website offline until the update was available. The Centre for Cybersecurity Belgium (CCB) and the American CISA gave similar advice. Many organisations did so, including Dutch and Flemish government bodies.

Is updating WordPress or plugins enough when PHP has a vulnerability?

No. An update to WordPress or a plugin updates the application, not PHP itself. That has to happen on the server, either by you or by your hosting provider. So ask your hosting provider to confirm that the update has actually been installed.

Which PHP versions received an update?

Versions 8.5.12, 8.4.27, 8.3.36 and 8.2.35 contain the fix. PHP 8.1 and older are no longer supported and did not get an official release. Sources differ on exactly which older versions were vulnerable.

What is patch management?

The set of agreements on keeping software up to date. You know which software and versions you run, you follow security advisories, you decide how quickly to update depending on severity, and you check that it has been done. For a critical vulnerability that means hours, for an ordinary update weeks.

Read next

Sources

  1. CERT-EU, Critical Vulnerabilities in PHP, advisory 2026-018 (20 to 23 October 2026)
  2. CISA, Critical Vulnerabilities in PHP Require Immediate Patching (21 October 2026)
  3. Dutch central government, Several central government websites taken offline as a precaution after PHP vulnerabilities (21 October 2026, in Dutch)
  4. Malwarebytes, PHP2Shell, why many websites had to go offline (21 October 2026)
  5. UptimeRobot, Inside PHP2Shell, why websites took themselves offline (22 October 2026)
  6. Yourhosting, The PHP vulnerability, what happened and where we stand now (23 October 2026, in Dutch)
  7. NCSC-NL, overview of software that includes PHP (php2shell)

Want to keep your own organisation cyber proof? Create a workspace and try Trustbird free for 14 days. The guided tours show you where to start, and Trustbird keeps track of what needs attention.

Start your free trial