Pular para o conteúdo
← Back to Skalablog

Published article

How to protect a PHP site after the AI-discovered flaw

Software EngineeringOpenAI

A flaw in PHP became a global patching scramble in October 2026. Two vulnerabilities in the widely deployed server-side language were identified with AI assistance, patched, then leaked, and organisations without a fast patch path took websites offline to stay safe.

What the flaw in PHP actually was

The flaw in PHP was a pair of vulnerabilities in the server-side scripting language that could let an attacker run commands on a vulnerable server after a complex chain of steps. BBC News reported on 22 October 2026 that the bugs had been found and patched, and that their premature disclosure drove a global scramble to update or take sites offline.

PHP is an open-source scripting language executed on web servers. Joe Tidy, the BBC's cyber correspondent, said in the BBC News report that most websites carry some PHP in their stack, often invisibly to visitors. That reach is why a bug in the language itself can affect sites that never advertise the technology.

Precision matters here. The reported impact was on the language and the applications running it, not on every website or on internet routing. The patch existed before the public panic. Ryan Austin, the researcher the BBC identified as discovering the flaw, told the programme that all the vulnerabilities his team found were patched.

The BBC also reported that the UK's National Cyber Security Centre described the flaw as unprecedented and said it affected millions of websites. That assessment belongs to the NCSC, not to the researchers who found the bug.

How AI helped discover the vulnerability

AI helped discover the vulnerability by scanning PHP source for exploitable patterns that humans had parked as theoretical. The BBC traced the sequence to 2024, when the PHP Foundation, the nonprofit that maintains the language, suspected a problem but could not confirm a practical attack path and set the question aside.

Early in the summer of 2026, the report says, PHP entered a programme run by OpenAI that uses AI to scan software and propose patches. The scanning work, together with security firms, confirmed that the chain of actions needed to exploit PHP was reachable. The BBC named the partners on the discovery; those names were not independently verified for this article.

The claimed significance is the complexity of the chain. According to Joe Tidy's reporting, the researchers said the exploit sat at the edge of what unaided humans could assemble, because an attacker would need to perform several steps in a specific order. That is a qualitative claim from the people who found the bug, and the technical write-up belongs to them.

AI's role cuts both ways in this account. The leak of the vulnerability's existence prompted criminals to use AI tools to reconstruct an attack path, which is why organisations treated the disclosure as urgent rather than academic.

Why websites went offline instead of just patching

Sites went offline because patching is faster for some operators than others, and taking an internet-facing service down removes exposure while a fix is tested. The BBC reported 32 UK government services offline, plus sites in the Netherlands, France and Finland.

The advice from Dr Meakumar, founder of Percepto Labs, as quoted by the BBC, was blunt: patching has to become a routine discipline, internet-facing assets should be prioritised, and services that cannot be fixed immediately should be taken offline until they can be. The same interview recommended hunting for signs of compromise across the network.

That ordering explains the outages. A patch must be applied, tested and deployed across every affected application, including old ones nobody owns. Removing a service from the internet is a switch that an operator can flip today.

The race framing came from the BBC's correspondent: criminals were using AI to work out an exploit path while defenders tried to patch. Disclosure without a ready patch would have been worse. Disclosure after a patch, followed by a leak, gave defenders a narrow window and little slack.

How serious was the flaw in PHP, in scope

The flaw in PHP was serious for unpatched, internet-facing installations, but it was not a general failure of the internet. The evidence supports a scoped conclusion: a reachable remote command execution path in widely used software, with a fix already available when the story broke.

How to protect a PHP site now and later

Protecting a PHP site means knowing which applications are internet-facing, patching them on a schedule, and having a tested way to take a service offline if a fix is not ready. The BBC's interviewees gave that sequence directly.

The practical steps below follow that guidance, ordered by urgency during an active disclosure. They assume the site owner controls the application stack and can see which services accept traffic from the public internet.

None of this proves an organisation is secure or compliant. Patching and inventory are engineering controls. Regulatory obligations, tenant isolation and audit evidence sit with the application and the organisation that runs it.

What this does and does not prove about the internet

The incident shows that shared open-source infrastructure can carry a costly single point of failure, and that AI compresses the discovery timeline for hard bugs. It does not show that the internet was close to collapse, or that AI has created a new class of attack.

Kevin Euan, a BBC reporter quoted in the programme, argued that web servers and applications rely on tools maintained by small groups of people or a single developer. Dr Roman Chowdry of Harvard University, also quoted, said vulnerabilities are routinely found and fixed by people who are often unpaid. Those are informed commentary, not measurements.

The honest conclusion is narrower than the headlines. A complex vulnerability in a widely deployed language was found, patched and leaked. Organisations with inventory and a patch path stayed up. Organisations without one went dark for a while. More cases like this are likely because more people now scan the same code with better tools.

FAQ

  • Was the flaw in PHP fixed? The BBC reported that the vulnerabilities found by the researchers had been patched before the public scramble. Ryan Austin told the programme that all the vulnerabilities his team found were patched, while noting that unrelated bugs could exist.
  • Did AI create the vulnerability? No. AI was used to scan PHP and confirm an exploit path the maintainers had already suspected since 2024. Criminals then used AI tools to try to reconstruct an attack after the flaw leaked, according to the BBC report.
  • Why were government websites taken offline? Taking a service offline removes exposure when a patch cannot be applied and verified immediately. The BBC reported 32 UK government services offline, along with sites in the Netherlands, France and Finland.
  • Does this mean PHP is unsafe to use? The incident shows that any widely deployed software needs a patching process and an inventory of internet-facing services. It does not establish that PHP is uniquely insecure, and the report says the known flaws were patched.

Source video