Patching 22 PHP environments in 72 hours

On the evening of 20 October 2026 the PHP security team gave advance notice of two critical vulnerabilities. PHP is the language behind most content management systems and a large share of business web applications, and we manage a number of those for clients and for ourselves. Over the next 72 hours we patched, tested and shipped a fixed PHP to 22 environments. This is how the work was organised.

The clients are unnamed, as in all our case studies.

What we were dealing with

  • Two flaws, both rated 9.2 out of 10. PHP’s advisories name them CVE-2026-109618 and CVE-2026-109619. Each lets an attacker on the internet run their own commands on the server, with no login.
  • The flaws are in PHP itself. No change inside an application closes them. The fix is a new PHP on every server that runs one.
  • Details leaked a day early. Screenshots of a working exploit tool were circulating before the fix existed, which is why PHP took the unusual step of announcing ahead of the release.
  • The fix arrived on 21 October at 16:00 South African time, as PHP 8.2.35, 8.3.36, 8.4.27 and 8.5.12.

That left less than a day between the warning and the fix, with exploit details already public. We wrote a separate guide to the flaws for any business that runs PHP. This piece covers our own response.

The numbers

  • 22 environments. An environment is one running copy of an application: the live system, or a staging or test copy of it. Each one carries its own PHP and each one had to be patched.
  • 72 hours from the first warning to the last environment confirmed on a fixed release.
  • Three steps for every environment: patch, test, ship. None was skipped to save time.

What we did

  1. Listed every environment before touching one. One row for each: the application, the PHP version it ran, how it is deployed, and who approves a release. The list came to 22 rows, and it became the checklist for everything that followed.
  2. Narrowed the attack while we waited for the fix. PHP published two interim settings. We switched off session upload progress, which the applications did not use. Where an application takes no file uploads from the public, we also refused upload-style requests at the web server.
  3. Put the environments in order. Systems open to the internet came first, and internal ones after. Within each application, the staging copy went ahead of the live one.
  4. Patched by rebuilding. Where an application runs from a container image, we pulled the updated base image and rebuilt it, so the patched system is a clean build with a known PHP inside.
  5. Tested each application on its staging copy. A short written check for each one: sign in, submit a form, upload a file, run a scheduled job, and read the error log. A security fix can still change behaviour, and staging is the place to find that out.
  6. Shipped to live with a person approving each release. The same build that passed on staging went to production.
  7. Confirmed the version from inside the running application. The PHP that answers on the command line can differ from the one serving the website, so we checked the one that serves requests, and wrote the result and the time against the row.
  8. Removed the interim block. Once an environment was confirmed on a fixed release, the temporary upload restriction came off. The upload progress setting stayed off.

Why testing stayed in

Under time pressure the tempting route is to patch the live systems directly and deal with any breakage afterwards. With 22 environments, that trades one risk for another: a public flaw for an untested change across every application at once.

Testing was affordable because the interim settings were already in place. They reduced the exposure for the hours it took to do the work properly. Each application’s check was short and written down, so it could be run the same way on staging and again after the live release.

What we would tell any business

  • Keep the list before you need it. Every environment, what it runs, and who looks after it. Building that list during an emergency costs the hours that matter most.
  • Count the copies. Staging and test systems run the same software as the live one and are often easier to reach. They belong on the list.
  • Know the interim step. When a fix is hours or days away, ask what setting or block reduces the risk now, and what it will break.
  • Write a short test for each application. Five checks that prove it still works. It turns “we think it is fine” into a record.
  • Confirm and record. A patch is finished when someone has checked the running version and written it down.
  • Take the temporary measures off. A block added in an emergency and then forgotten becomes next year’s unexplained fault.

If a critical fix landed tomorrow, do you know how many systems you would have to patch? Tell us what’s on fire