The most repeated claim about php2shell is that AI found a secret bug in a week. Derick Rethans gives a muddier timeline: an audit hint from 2024, a memory allocator fix that resisted a credible patch, and three leaks that forced the PHP security team to move a coordinated release forward by a day.
What Is the php2shell Timeline, According to Derick Rethans?
The php2shell timeline runs from a 2024 audit hint to an October 2026 coordinated release, and Derick Rethans, a PHP internals contributor, dates each stage precisely in a video interview with Nuno Maduro published on 23 October 2026. The short version: a funded audit noted something wrong in the memory allocator long before anyone could prove it exploitable.
Rethans separates the discovery from the proof. In 2024, an audit funded through the Sovereign Tech Fund, a German government-backed programme, reported a possible problem. The PHP side concluded that something could go wrong under certain circumstances but could not state whether it was exploitable. In August 2026, three organizations used AI models to hunt for bugs in PHP, found the same or a very similar issue independently, and demonstrated exploitation in specific conditions with a reproducible report.
The gap between those two dates is the part most coverage skips. Rethans says a correct fix touches the memory allocator, and when memory runs out things break in ways that are hard to patch without affecting extensions. A patch that works and a patch that does not break the ecosystem are different problems, and the security team is small.
Which Fixes Did PHP Backport to Unsupported Branches?
The PHP project publishes releases only for supported branches, which Rethans describes as PHP 8.2 through 8.5, and it backported some fixes to older branches that users must compile themselves. Anyone on PHP 7.4 or later should check the official PHP news announcements rather than assume an old install is untouched.
The practical rule is narrower than the headlines. If you are on a supported version, applying the latest release closes what is publicly known about php2shell. If you are on an older branch, the project may have published source fixes but will not ship you a ready binary, and third-party vendors sell long-term support builds for versions as old as PHP 5.
Which Three Leaks Broke the php2shell Embargo?
Three separate disclosures broke the php2shell embargo before the coordinated release date, and Rethans describes each one with different levels of blame. The first was a Hacker News post by someone who did not know the information was embargoed and later apologised. The second was a website and video demonstrating an exploit without publishing the technical details. The third was an organization that published its own builds to its customers, claiming it had evidence of live exploitation.
The third case draws Rethans' sharpest criticism. He says he has seen no substantiated evidence for the live-exploitation claim and points to a long LinkedIn post by Niels Aderman questioning it. Rethans adds that, in his personal view and not as a PHP Foundation position, that organization should be left off future private notification lists. The choice to widen an embargo to hundreds of downstream builders is what made leaks likely in the first place, and he treats that trade-off as unavoidable.
Why Did PHP Move the Release a Day Earlier?
PHP moved the php2shell release forward by one day after the exploit demonstration spread publicly, and Rethans says the shift was manageable rather than dramatic. The team had already assumed that sharing information with hundreds of partners could produce a leak, so an earlier date was within the plan. The visible cost was timing: he says the Docker build appeared later than the team would have preferred.
This is a useful detail for anyone outside coordinated disclosure. Embargoes are not secrecy for its own sake; they give distributors time to build and test. When the date moves, the binaries that ordinary users pull can lag behind the announcement.
Should You Take PHP Sites Offline After a php2shell Disclosure?
Taking PHP sites offline is a judgment call that PHP did not recommend, and the right answer depends on whether you can patch quickly. Rethans says some organizations were wise to do it because they did not know exactly what they were running. He handled the Xdebug website himself, knowing a Debian security update and a three-minute upgrade would resolve it.
The variable is inventory, not courage. If you can name the PHP version on every server and you have tested your upgrade path, an update is a short operation. If a PHP 4 application is hiding somewhere in your estate, discovering that takes longer than patching, and a brief shutdown can be the faster route.
What Roles Do AI and Coordinated Disclosure Play in Finding PHP Bugs?
AI-assisted bug hunting accelerated the php2shell proof, and coordinated disclosure is what kept the fix workable once that proof existed. Three organizations used AI models to search for bugs in PHP and produced the same finding with reproduction steps. Rethans credits the tooling for speed and for usable reports, and resists the framing that AI alone discovered the issue, since the audit had flagged the area two years earlier.
His complaint is about proportion rather than capability. Coverage that framed AI as uncovering a secret overnight ignored the patch difficulty and the disclosure work. He also points out that AI tools cut both ways: they help defenders find problems, and they raise the volume of reports that a small security team has to triage, which is why he says the team has grown.
How Can Developers and Businesses Fund PHP Security Work?
Funding PHP security work is the durable answer to php2shell, and Rethans asks developers to raise it with their employers. His argument is economic: the PHP Foundation operates on a small budget relative to the companies that depend on the language, and most of the software in a typical stack is maintained by volunteers. Paying for open source maintenance is what buys time for hardening.
He is direct about the model that no longer works. A lone developer cannot be expected to keep a project used by large corporations secure. More paid maintainers means more eyes and more capacity to respond when a difficult bug lands. He names the Debian and RPM package maintainers, Rémy Depoix and Ondřej Surý, as people whose capacity matters to the whole ecosystem.
Frequently Asked Questions
- Was php2shell reported in 2024 or 2026? Both dates are real. A 2024 German government-funded audit flagged a possible memory allocator problem without proving exploitation, and three organizations independently proved it exploitable in August 2026, as Rethans describes in the interview.
- Does updating PHP protect me from php2shell? Updating to the latest supported release closes what is publicly known about php2shell as of October 2026. Rethans says vulnerabilities will continue to be reported, so patching protects against this disclosure rather than all future ones.
- Which PHP versions received fixes? Rethans describes releases for PHP 8.2 through 8.5, with some backported fixes on older branches such as PHP 7.4 and later that users must compile themselves. Third-party vendors sell patched builds for versions going back to PHP 5.
- Who leaked the php2shell embargo? Rethans lists three disclosures: a Hacker News post by someone unaware of the embargo, an exploit demonstration on a website and video, and an organization that published patched builds to its customers while claiming live exploitation. He says that last claim was never substantiated.
- Did AI find the php2shell vulnerability? AI models accelerated the search in August 2026 and produced reproducible reports, but the area had been flagged in a 2024 audit. The allocator patch, not the discovery, was the hard part.
- Should PHP sites go offline during a disclosure? PHP made no such recommendation. Rethans says a temporary shutdown can be sensible when an organization does not know what it runs, while a prepared Debian host updated in about three minutes.
- Why did the release come a day early? The exploit demonstration spread publicly, so the team moved the date forward. Rethans says the work was already largely complete, though the Docker build appeared later than hoped.
- How large is the PHP Foundation budget? Rethans gives a rough figure of around 400,000 pounds a year, far below the revenue of the organizations using PHP. He notes the figure imprecisely in conversation.
- How do I support PHP security work? Developers can ask employers to fund the PHP Foundation and other open source projects they depend on. Rethans says paid maintenance time is how small projects keep up with security work.