All news

21 October 2026

Two flaws in PHP, the code behind most websites, knock government sites offline

Agencies in the Netherlands, Finland and elsewhere pulled websites offline after PHP's developers disclosed two critical flaws and reports said hackers were already using them.

Most people have never heard of PHP, but they use it every day. It is the programming language that builds a large share of the web pages people load. On Wednesday, a security problem in it was serious enough that governments across Europe chose to switch their own websites off rather than risk a break-in.

What happened

On Tuesday, the volunteers who maintain PHP said they had found two critical vulnerabilities, meaning weaknesses an attacker could use to get into a system, and told site owners to update as soon as a fix arrived. That fix went live around 1345 GMT on Wednesday. Before then, with reports that hackers were already exploiting the holes, agencies in the Netherlands and Finland took sites down as a precaution. The Dutch cybersecurity agency even took its own site offline.

The list in the Netherlands grew to include the Port of Rotterdam, the government portal Overheid.nl, the national soccer association, the websites of the five largest political parties and several hospitals. Denmark and France also shut some public services. Cybersecurity agencies in Europe, Australia, Japan and Britain urged users to patch or go offline. Officials said every PHP version from PHP 5 onward could be exposed, though PHP had not yet said which ones were.

At Cloudflare, which sits between many websites and their visitors, chief technology officer Dane Knecht said attacks were starting and the company was updating its firewall rules, calling that a stopgap until sites install the patch.

Why it matters

The scale is what makes this different. Web tracker W3Techs says PHP runs about 75% of websites whose language can be identified. It also powers WordPress, which runs roughly 43% of all sites. Because so many servers share the same software, attackers can scan the internet for vulnerable machines instead of picking targets one by one. Lukasz Olejnik, a researcher at King's College London, warned that AI-assisted hacking could speed this up: "The scale is huge."

Small sites face the biggest risk. Security firm Wordfence warned that WordPress's automatic updates would not apply this fix, because PHP sits underneath WordPress on the server. People on shared hosting often don't control that layer and may have to wait on their host. The US cybersecurity agency, CISA, did not respond to CNBC's request for comment.

What to watch

  • How quickly hosting companies roll the fixed PHP version out to customers.
  • Whether PHP confirms exactly which versions are affected.
  • Reports of break-ins at sites that were slow to patch.

The companies in this story

Based on reporting by CNBC: Government websites go dark as software flaw sparks security scramble. Facts, not advice.

More news