
Applying emergency security fixes to end-of-life PHP versions
Contents
On October 21st 2026, the PHP Group announced two critical vulnerabilities [1] that can allow Remote Code Execution (RCE) CVE-2026-109618 and CVE-2026-109619 [2] [3]. The announcement urges everyone running PHP to update immediately. This has prompted many major corporations and government organizations to preemptively take down their services to perform maintenance [4] [5].
For applications that are already running a supported PHP branch, the immediate course of action is to update to the latest version. For teams maintaining applications running on end-of-life (EOL) versions, it gets more complicated. These branches no longer receive official routine updates, and migrating to a supported branch might require significant changes to the application.
When upgrading takes more than an update
PHP follows a defined support lifecycle: each release branch has an active support period, followed by a security fixes only period. Once a version reaches EOL, teams need to either migrate to a supported version or they can obtain extended support from a 3rd party provider [6].
Migrating between PHP versions is not as simple as just updating the runtime. Changes to the language behaviour, extensions, frameworks and dependencies can require additional development work and testing before we can consider the upgrade as finished.
Even moving between minor PHP versions can introduce breaking changes. For example, the PHP 8.1 migration guide documents backwards-incompatible changes from PHP 8.0. So even if you are within 8.x it might still be quite a big task.
Emergency backports for older PHP branches
According to W3Techs figures for October 23, 2026, approximately 48% of the websites using PHP run version 8.1 or earlier. Given the severity of these vulnerabilities, the PHP security team decided to provide minimal source backports for PHP 7.4, 8.0 and 8.1. There are some efforts by other parties to further backport these patches into even older versions such as 5.6 [7].
While these backports provide a quick solution for now, future support is not guaranteed and this incident should be taken as a wake-up call to start migrating to a newer version.
Packages for Debian and Ubuntu
Ubuntu users should check Canonical’s advisory for their release. Ubuntu 22.04 receives fixes for its PHP 8.1 packages through standard support, despite PHP 8.1 having reached upstream EOL. Older Ubuntu releases require the applicable Ubuntu Pro/ESM coverage.
Another option for Ubuntu and Debian users is to obtain patched PHP packages from deb.sury.org maintained by Ondřej Surý, a prominent figure in the PHP community. For more information follow the main Codeberg issue.
Windows builds of the patched sources
PHP documents the process in its Windows build instructions, but preparing the toolchain and dependencies can take time. To make the upstream backports easier to use, I created the repository php-windows-security-builds which provides pre-compiled binaries for PHP 7.4, 8.0 and 8.1.
Both thread-safe (TS) and non-thread-safe (NTS) variants are included. The repository contains the build recipes and documentation so that everyone can inspect how the packages are produced and verify their downloads.
I want to reinforce that these are community builds of end-of-life PHP versions, not official PHP releases or a promise of continued support. They are to be used as a temporary fix while a migration effort to a more recent supported version is made.
October 23 update: session upload progress
On October 23, the PHP Group published an additional advisory concerning an unlikely RCE vector involving session upload progress and runtime changes to the session serializer. It recommends setting session.upload_progress.enabled=0 until the next regular bugfix release. If you already applied this setting following the original advisory, keep it in place.