PHP2Shell: AI-assisted researchers find critical PHP flaws, and governments tell sites to patch or go offline
Two critical vulnerabilities in the PHP language, found with AI tools by teams at OpenAI, Wiz and another firm, led agencies in Europe, Australia, Japan, Britain and the US to urge sites to update at once. A fix came out on Wednesday; the extent of attacks is not yet known.

Two critical security flaws in PHP, the programming language behind a large part of the web, were disclosed on Wednesday after a fix became available, and cybersecurity agencies in several regions told website operators to update immediately or take their sites offline until they could. The flaws, collectively called PHP2Shell, were found with the help of artificial intelligence. CNN's headline says they could affect 70% of the internet; that figure is CNN's framing and not an independent measurement, and nobody yet knows how many sites have actually been attacked.
What was found
According to NBC News, the bugs could allow attackers to run code of their choosing on a server and to read memory that may hold sensitive information such as passwords. PHP's developers said on Tuesday that they had identified two critical vulnerabilities. Officials quoted in the coverage say that every version of PHP from version 5 onward could be affected, though the PHP project had not yet published which versions are vulnerable at the time of the reports. No CVE identifiers, the standard catalogue numbers for security flaws, or exact patched version numbers appeared in the coverage we reviewed.
Wiz, a cybersecurity company owned by Google, compared the seriousness of the problem to Heartbleed, the 2014 flaw in widely used encryption software that forced a worldwide scramble to patch servers. A comparison is not a measurement, but it shows how the people who found the bugs see them.
How they were found
Teams at OpenAI, Wiz and another cybersecurity company reported the vulnerabilities, according to the coverage. CNN reported that they were discovered through an OpenAI programme that gives cybersecurity firms access to AI models that are good at finding software flaws. The same report names the specific models Wiz used during its research; because that detail appears in one account only, it is not repeated here.
The bugs were discovered in late August, according to the reporting, and were made public on Wednesday after the PHP maintainers had a fix ready. That gap of about two months is the usual pattern for "coordinated disclosure": researchers tell the maintainers privately, the maintainers prepare a fix, and the details come out only when users can protect themselves.
The fix, and a dispute over its release
A new version fixing the vulnerabilities was available by about 13:45 GMT on Wednesday, according to the reports; another account said the security team that maintains PHP released patches at about 10 a.m. Eastern time, which is roughly the same time. Reporters noted that the order of events mattered. One report said PHP's maintainers accused Chainguard, a software-security company, of making life easier for attackers by publishing details of the patch before the official release. With the patch details public, anyone reading them could work backward to find the flaw, a technique known as reverse engineering. The reports available do not include Chainguard's response, so it is not possible to say here whether the complaint is fair.
The response
Cybersecurity agencies in Europe, Australia, Japan and Britain urged PHP users to update immediately or to take websites offline until the patches could be applied, according to the coverage. The US National Security Agency also urged organisations using PHP to update, or to take systems offline if they could not.
CNBC's headline said government websites in Europe and elsewhere "go dark". The Dutch cybersecurity agency itself went offline as a precaution, according to one report. One summary of the coverage said government sites in Finland were also taken down, but the other sources we could check did not confirm Finland, so it is not stated as fact here.
Taking a site offline is a drastic step and a revealing one. An agency that switches off its own website rather than risk running vulnerable code is saying that the risk of an attack during the hours before patching is greater than the cost of being unavailable.
Is anyone being attacked?
The accounts differ on this, and the difference is important. Patchstack, a cybersecurity platform, said it had received "reports of active exploitation", according to the coverage. The US Cybersecurity and Infrastructure Security Agency said in its advisory that it had "not observed exploitation of these vulnerabilities as of the time of publication". Both statements can be true: Patchstack is reporting what others have told it, and CISA is describing what it has seen itself, at a particular time.
NBC News quoted a researcher saying it could be days before it is clear how many sites were hacked. That is the honest position for now. A flaw that is public, with a patch that attackers can study, is likely to be tried against unpatched servers, and the first signs usually appear in the logs of the sites affected.
Why PHP matters
PHP is a scripting language that runs on servers and produces web pages. Many well-known content management systems and online shops are written in it, which is why a flaw in the language itself has such a wide reach. A site owner who uses such a system may not know which version of PHP the hosting company is running. For that reason, much of the practical advice is aimed at hosting providers and administrators: check which version is installed, apply the update, and restart services. The advice reported so far is addressed to operators of PHP sites, not to ordinary visitors.
The AI angle
The most unusual part of the story is how the bugs were found. For years, security researchers have warned that AI tools would be used to find flaws faster, whether by defenders or by attackers. This case is one in which the defenders were first, and the finding was released in coordination with the maintainers. It also raises a question the coverage does not answer: if AI models can find critical flaws in a language that has been around for decades, other long-established software may contain similar problems that someone, with a model, will find.
What to watch
Over the next days the key questions are whether the PHP project publishes a full list of affected and fixed versions, how many unpatched servers are attacked, and whether the dispute over the early release of patch details leads to changes in how maintainers and security firms co-ordinate. Operators of PHP sites should follow the advice of their national agency and their hosting provider; those agencies were, on Wednesday, giving very direct instructions.
Sources
Get news notifications
Tap the button, then choose Allow when your browser asks. We will send you an alert when we publish. You can turn it off any time in your browser's settings for this site.
More stories
- Huang tells senators Nvidia chips have been smuggled to China, as the Senate Banking panel weighs subpoenas for Lutnick and Nvidia's board
- Nvidia's Huang testifies for nearly 12 hours behind closed doors, and lawmakers describe "willful blindness" before Thursday's Senate hearing
- Wall Street ends its worst November since 2008, then rebounds as job openings hit a 19-month high and a December Fed hike looms