Menu

1 / 2

Patching a PHP security release in 40 minutes on an LB ASG EC2 stack

DEV Community: php·Mizuho Yukinoshita·15 days ago
#Wi66fmeU
#devto#dev#instances#version#instance
Long article (1725 words) — no AI summary yet.
Reading 0:00
15s threshold

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.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.