Amazon runs sensors across the internet designed to be attacked, so that its threat intelligence team can watch what attackers try. On 17 October 2026 those sensors recorded an attempt to exploit a flaw in PHP. The PHP project published the fix, and the rest of the world learned the flaw existed, on 21 October.
Somebody was using it four days before it was announced. That ordering is the story — not the bug.
The window used to run the other way
For most of the past decade the rhythm of a serious vulnerability was familiar enough to plan around. A fix shipped. Security teams read the advisory and scheduled the work. Somewhere between several days and several weeks later, working exploit code appeared and the opportunistic scanning began. The gap was uncomfortable, but it was a gap, and patching inside it was a realistic goal for a competent team.
With the PHP flaws disclosed last week — the pair nicknamed PHP2Shell — the gap had already closed before the starting gun fired. Cloudflare had protective rules live roughly nine hours before the public announcement. Its chief executive described attempts numbering in the thousands before disclosure, rising to millions afterwards. There was never a quiet period in which to plan.
AI is part of why
It would be convenient to treat this as one unusual bug. The researchers who found it do not.
Wiz, who co-reported one of the two flaws, observed that the underlying weaknesses had been sitting in PHP for years, and that what made them hard to exploit was the complexity of the chain required — a barrier they credit current AI models with substantially lowering. Amazon made the same structural point from the defensive side: the interval between a patch shipping and a working exploit existing is compressing, partly because AI-assisted analysis makes the job of turning one into the other cheaper than it used to be.
That cuts both ways, and it is worth reading carefully. The same capability that lets a defender read a code change and understand its significance lets an attacker do it faster than before. The asymmetry has not reversed. It has simply accelerated, and the side with less process is the side that feels the acceleration first.
The arithmetic most organisations are quietly failing
Qualys measured patch uptake in the first twelve hours after the PHP release and counted roughly 199,000 instances updated. Against its own telemetry of around 156 million installations, that is a rounding error.
The deeper number is worse. Qualys put roughly 110 million of those installations — about 71% — on branches already past end of life, meaning no patch exists for them at any speed. Independent scans by other firms place the end-of-life share somewhere between 71% and 79%. Whatever the precise figure, the majority of PHP reachable from the internet cannot be fixed by patching at all.
For those systems, "patch faster" is not advice. It is a category error.
What actually helps
The useful response is not a resolution to move quicker next time. It is a short list of capabilities that either exist in your organisation or do not.
Knowing what you run. Most organisations that struggled in October did not struggle with the patch itself; they struggled to produce a list of every system running PHP, including the copies buried inside appliances and third-party products nobody thinks of as software at all. You cannot patch an inventory you do not have.
Being able to ship a fix the same day — not in principle, but on an ordinary Tuesday, without waiting three weeks for a change advisory board. Amazon's recommendation after this incident was blunt: measure your patch timeline for critical internet-facing systems in hours rather than days.
Having a route off end-of-life software before the moment you need one. The PHP 5 and PHP 7 portals that cannot be patched today did not become unpatchable in October. They became unpatchable years ago; October merely removed the option of continuing to ignore it.
Assuming exposure rather than only closing it. One of the two flaws can read live server memory, which may hold database passwords and API keys. Patching shuts the door. It does nothing about anything already carried out through it, which is why rotation belongs in the plan and why the order matters: patch first, then rotate.
What we would tell you not to do
Do not panic-buy. As of the end of October there is still no publicly confirmed victim of these particular flaws, and one security firm withdrew an earlier claim that there had been. The proof-of-concept code circulating publicly works only against specific combinations of operating system, PHP version and web server.
None of that is reassurance and it should not be read as any. It is a reason to act deliberately rather than reactively — to fix the structural problem you can see rather than the headline you happened to read. The next one of these will not arrive with four days of warning either. It may not arrive with any.