Written by: James Macintyre, Technical Director
At about 21:15 on 20 October, a message landed in our engineering channel. Community chatter suggested the PHP project was about to release an emergency fix for something serious.
Our DevSecOps lead, James Varney, didn’t wait to find out how serious. He posted a plan: the moment the fix lands, we update every service we can.
It was the right call. PHP powers roughly 70% of the web, and almost everything we build and support runs on it. The flaws, nicknamed PHP2Shell, let an attacker run code on a server from the other side of the internet, without logging in. And attackers had been testing them four days before the fix existed.
This is the story of what happened next: how we found every affected platform, agreed a plan with each client, and had production patched in about 24 hours.
The details
- Project type: Emergency security response
- Software: PHP (Drupal, WordPress, Magento/Adobe Commerce and Yii platforms)
- Industry: Public sector and private sector
Services delivered
- Vulnerability management
- Security audits
- Delivery and release management
- Client communications
- Support and maintenance
The challenges
The attackers were already ahead of the industry
The severity score (9.2 out of 10) wasn’t the scariest thing about PHP2Shell. The calendar was. Amazon’s threat team recorded the first exploitation attempt on 17 October, four days before the emergency fixes arrived on 21 October.
A week after disclosure, 32.5 million PHP services were reportedly still running vulnerable versions, against 11.2 million that had been fixed.
On 26 October, the US cyber agency, CISA, added the flaws to its list of vulnerabilities known to be exploited.
PHP sits underneath almost everything we run
The flaws affected every PHP installation serving web requests. For us, that meant Drupal, WordPress, Magento and Yii sites across different hosting set-ups, many for public sector clients. Before we could fix anything, we had to know exactly where it was.
The 24 hours
The night before
We’re a fully remote team of around 20 devs. Within an hour of that first message, the team was comparing researcher write-ups, and just after midnight the details were shared with everyone. The NCSC advises treating vulnerability feeds as business as usual. This is what that habit looks like.
Morning: the fix isn’t even out yet, and we’re already moving
By 09:54 on 21 October, about five hours before the fix was due at 15:00, the first critical (P1) ticket was created. We treated PHP2Shell like a major outage, using our existing P1 process. That’s what the National Cyber Security Centre (NCSC) recommends: run rapid remediation through your normal incident process. With P1 handling, on-call roles and change control already in place, nobody had to invent anything under pressure.
Everyone knew their part. Our Delivery Director, Michael Barker, opened tickets in each client’s service desk or Jira project. Our Development Director, Andy Ingham, pulled together a dashboard, which dynamically tracked the 21 tickets across 10 delivery projects, all raised within 64 minutes. Our DevSecOps lead, James Varney, fed in intelligence as it emerged, and the interim mitigation was on every parent ticket by 11:21.
Roughly 24 hours after the fixes became available, all 21 tickets were closed and production was patched across all relevant clients.
Telling clients before they had to ask
By 10:48, before the fix had even been released, every affected client had a short note covering what PHP2Shell was, whether their platform was in scope, what we were doing and what we needed from them. No jargon, no alarm, and a named contact.
Then came the harder question: what do we patch first?
A severity score of 9.2 applied to everything, so it couldn’t help us choose. The evidence could: Apache with mod_php looked the highest-risk setup. We weighed that against whether each platform was public-facing, whether it handled personal or sensitive data, what protection it already had, and what the client had going on. The most exposed environments went first, and the rest were scheduled around each client’s releases and freezes.
Where a client couldn’t take an immediate change, we agreed a stopgap together: switching off a PHP feature (session upload progress) that one of the flaws relies on, with a firm date for the permanent fix.
Every risk and decision was written down, so everyone knew who had accepted what. When CISA added the flaws to its exploited list, we re-rated every environment and updated clients.
Two questions that mattered more than the patch
Is it really fixed? On 21 October, a cloud vendor published a Linux image update that didn’t include the fixed PHP version. A team could easily have seen a green tick and believed it was protected when it wasn’t. So we didn’t take the release note’s word for it. We checked the version actually running on each environment.
Did anyone get there first? Updating doesn’t evict an attacker who got in earlier, and Amazon’s advice was to investigate from at least 17 October. So, on 22 October, we opened 10 P1 security audits across 10 delivery projects, all inside a 21-minute window, to check each platform for signs of exploitation.
Why we could move that fast
None of this was improvised on the night. A few habits did the heavy lifting:
- Software bills of materials (SBOMs): an ingredients list for every build, so “what’s affected?” is a lookup, not a guess.
- Automated vulnerability scanning and regression testing, so changing a core part of a platform has a safe routine and doesn’t feel risky.
- An ISO 27001 management system, so incident roles, change control and supplier records already existed.
- Every PHP version we run was also on a supported branch, so a fix existed for every environment from day one.
The impact
The plan posted at 21:15 on 20 October was, more or less, the plan we ran: be ready before the fix lands, then move the moment it does. Each client received confirmation of the final PHP version, the checks we’d performed, any residual risk and the next steps. They heard from us the morning the fix landed, had a say in the trade-offs, and now have a clear record of what we did and what we found.
What we learned
Attackers used to wait for a public proof of concept before exploiting a new flaw. That wait is shrinking. AI tools make it more plausible for someone to find a flaw independently, before it’s disclosed, so we can’t count on a quiet gap between advisory and attack any more.
Three things we’d tell anyone running PHP:
- Know exactly where PHP runs before the next advisory lands. SBOMs and hosting records turn a scramble into a checklist.
- Treat disclosure day as a late starting point, not day zero. Look back as well as forward.
- Make risk decisions with your clients, and record them. Speed without shared understanding creates its own problems.
Is your PHP estate ready for the next one?
Early, honest communication. Decisions based on your actual risk. Your input on the trade-offs. And a clear record at the end of what we did and what we found. That’s what you can expect from us when the next critical advisory lands.
Reach out to talk through your own PHP estate, and how ready your platforms are.

“Just a moment amid the whirl of today to say thank you to you and the team for being so proactive on the PHP issue on our website. I gather one of the patches was applied at 1:30am this morning.
Impressive as ever. Heartfelt thanks from a longstanding client.”
NHS Head of Commuications
