Article chapter 02 of 08
Pick the fix for each PHP branch
Every server kept its PHP branch. A site on 8.3 stayed on 8.3, a site on 7.4 stayed on 7.4. Our job was to get the vulnerability fix onto the branch already running, without dragging production sites through a version upgrade they hadn't been tested for.
That meant a different fix route depending on where each branch stood:
- Supported branch, package available. Where the distribution or the package archive already had a fixed build, we installed that. One 8.3 server took the distribution's fixed package revision, and one 8.2 server took the archive's 8.2.35 packages.
- Supported branch, no package yet. Where the distribution's package hadn't caught up, we built the official release locally into packages matching the existing layout. Two 8.4 servers moved from older 8.4 builds to a local package of 8.4.27.
- End-of-life branch with an official backport. For 7.4 and 8.1, the PHP security team's source backports were the starting point. Where a distribution had already shipped them, as Ubuntu had for one 8.1 server, we used that package. Elsewhere we applied the backport to the installed version and built it.
- Older than any available fix. PHP 5.6 and 5.3 get no fix from the PHP project. The next chapter is about those.
On one server, the change was packaged as an update to the same 8.4 branch. Before installing it, the agent checked that all 63 PHP extensions the sites used would still load, and that the PHP and Nginx configuration and the FPM pool sockets would stay as they were. A security fix shouldn't come with surprise changes to how a site is configured.
The order was set by exposure, which is what CISA's guidance asks for too. Internet-facing production servers came first, especially those running mod_php, because the PHP Foundation rates that setup highest risk. Development and staging servers came after. CISA added both vulnerabilities to its Known Exploited Vulnerabilities catalogue on 26 October, which settles any doubt about whether this was urgent.