The PHP2Shell week
A flaw in PHP on a Wednesday, around fifty client sites to deal with, and government bodies taking theirs offline the next day.
Andrew · Founder, project directorOn Wednesday 21 October, PHP releases four versions at once: 8.5.12, 8.4.27, 8.3.36, 8.2.35. The release note is two lines and two numbers, CVE-2026-109618 and CVE-2026-109619. Remote code execution, no authentication required. Severity score: 9.2 out of 10.
Ben, our technical director, read it at the same time as I did. His first message:
— It’s not WordPress. It’s PHP. Everything that runs on PHP.
Usually, a flaw affects a plugin, a theme, a CMS: you check who uses it, you update, you move on. Here, the problem is underneath the sites, in the engine. No setting gets around it. A fixed version of PHP is needed, and versions 8.1 and older will never get one.
Across our clients, that makes around fifty sites. Some were set up ten years ago, they work, and nobody remembers their PHP version.
The list
We start with the list, that same Wednesday. For each site, the same questions. What runs on it? Which database? Which PHP version does the code require? And which one actually runs on the server? The last one is the hardest: the server does not display it, it has to be checked by hand.
Everyone works with Claude Code, which reads the repositories and the servers with us. For a single client, we open seven repositories: a Joomla site, hand-written PHP pages, a home-made members’ area, a site under construction that never went live.
The groups
The list is long. We stop thinking site by site and sort the sites by what needs to be done to them.
There are those for which a PHP update is enough: simple pages that work with any version 8. There are those that will need testing after the update, because they have a members’ area, forms, a minimum version. There is a travel site on WordPress 6.6 and PHP 7.4, which has to go up two steps at once, and whose staging environment we audit first, plugin by plugin.
And there are the showcase sites. Old WordPress sites, with plugins from 2022, which have not been changed for months. Updating them means updating WordPress, the theme, each plugin, and hoping the layout holds. For those, we decide to remove PHP and make a copy in static pages. That is the subject of another article.
Sharing the work
We split the work on Wednesday afternoon. Ben and Adri take the servers: check each site’s PHP version, apply the fixes, run the scanner published for the flaw, test the site afterwards. I take the static copies. While one agent copies a site, another prepares the acceptance tests for the next one, in a separate session, so that the one who builds is not the one who checks.
The simplest sites are up to date that same evening.
On Thursday, the flaw has a name, PHP2Shell, and the articles pile up. Amazon says it has seen exploitation attempts since 17 October, four days before the announcement. In Europe, government bodies take their sites offline as a precaution. In France, prefecture websites switch to “maintenance”. In Australia, the website of the cybersecurity agency itself disappears for a few hours. One headline talks about AI, said to have turned an old forgotten flaw into a global emergency: attackers use it to write their tools faster than teams can apply the fixes.
On our side, the whole team is on the list. Ben and Adri go from one server to the next. Another batch of sites is updated during the day. On Friday, another one, with the sites that needed longer testing.
On Saturday, we carry on. Most sites are already up to date, and Ben and Adri start on the oldest servers. The showcase sites are still left, set aside since Wednesday because they take more work than an update: each site has to be copied, the copy compared with the original page by page, the contact form rebuilt. The first one is copied and checked during the day, and switches over in the evening. On Sunday, the team is still at it: at noon, the second showcase site switches over, and the last sites of the week are updated in the afternoon. Each switch has its rollback written before starting, and each one teaches us something: a certificate that is only issued after the DNS change, a login page shown to the public for eight minutes. The third showcase site follows the next Saturday, at six in the morning.
On Monday 26, CISA, the US cybersecurity agency, adds PHP2Shell to its list of exploited vulnerabilities.
What remains
As long as an old WordPress site runs on its old server, it answers anyone who knows the server’s IP address. So these services also had to be stopped and the machines decommissioned.
All the sites now run on a fixed version of PHP or are served as static pages. The old WordPress sites were shut down one by one, a week after each switch, to make sure nobody needed them any more. Their files and databases are backed up, then the servers are handed back to the hosting provider.