Introduction
Around 23:00 JST on November 19, 2026, the PHP team shipped security releases for 8.2 through 8.5. There were 17 GitHub Security Advisories (GHSAs), 7 of them critical. Thirty-eight minutes after the GHSAs went public, we put production back behind the load balancer (LB), running patched PHP.
This post shows how to get patched on release day when you run PHP from Ubuntu packages on an LB → Auto Scaling group (ASG) → EC2 stack.
Some PHP versions have reached end of life on php.net, so upstream ships no fixes for them
Neither Ubuntu nor the ondrej PPA had fixed packages that day, so we backported the upstream fixes onto the Ubuntu source and built the packages ourselves
Instead of patching ASG instances one by one, we built a patched AMI and replaced every instance
Assumed setup
This post assumes a mix of environments that use an ASG and environments that don't.
With ASG Without ASG
Topology LB → ASG → EC2.…