Two critical flaws in PHP, the scripting language behind a large share of the web, were exploited before a fix was released, and government websites in the Netherlands, France, Finland, Denmark and Canada were taken offline on Wednesday 21 October. Each flaw scores 9.2 out of 10 for severity and lets an attacker take control of a server without a password. The oldest affected code dates to a version released in 2012. The article puts PHP's reach at about 70 per cent of websites, a figure given without a source.
How the flaws work and were found
The bugs involve how PHP handles failed requests, such as running out of memory: leftover data may not be cleared, and the next request can misuse it. Possible results include data theft, defaced or disabled sites, passwords exposed from server memory and access to other machines on the same network. Content platforms built on PHP are not fixed by their own updates, because the hosting provider has to update PHP itself.
A security firm working with an AI company's programme found the first flaw on 1 August and reported it on 11 August, and a second security firm independently found the flaws on 19 August using AI models, reporting them on 24 August. The second firm says one researcher did in a week what would once have taken a team months. The fix needed a change to PHP's core and was prepared over two months. Disclosure was set for 22 October, but an anonymous post on 20 October said it was imminent and a video appearing to show the attack circulated, so PHP's developers released the fix a day early, at about 7:05 pm IST on 21 October. Attacks had already begun.
The fallout
The chief executive of a network-security company said it switched on protections about nine hours before the fix, and logged thousands of exploit attempts in the ten hours before the announcement, tens of thousands within 45 minutes after it, hundreds of thousands within two hours and millions by Thursday morning. In the Netherlands, the national cyber-security centre, the digital-identity service, the lower house's website, the Port of Rotterdam and several hospitals were affected; France took down prefecture sites, including the Paris police prefecture; Finland shut public web services as a precaution; a Danish school platform was hit; and Canada's minister for AI and digital innovation said some federal sites were briefly offline.
India's cyber-emergency team classed the flaws as critical on 21 October, warning that a remote attacker could run commands and take full control, and urged all PHP users to update. It has not said whether any Indian websites were affected. The US National Security Agency said attackers are likely to exploit the flaws and urged immediate updates across federal departments, replacement of versions that can no longer be patched and, failing that, taking systems offline.
The fix covers the four latest PHP versions only; older versions are unsupported and will get no official patch. A security firm counted about 884,000 internet-connected servers still running older versions as of 20 October. Hosting companies began rolling out the fix on Wednesday evening, and ordinary visitors need take no action.





