Note
PHP2Shell: two PHP bugs, a broken embargo, and a day of sites taken offline
Two remote code execution bugs in PHP 8.2 to 8.5 were fixed on 21 October 2026, a day early, after the embargo leaked. Sites and government services went offline to patch. Older PHP versions get no fix.
Today's PHP security release, and how we're strengthening PHP security (The PHP Foundation) ↗
What happened. On 21 October 2026 at 14:00 UTC, PHP released 8.5.12, 8.4.27, 8.3.36 and 8.2.35. The PHP Foundation’s post describes two critical bugs, both in memory management and error handling. Both allow remote code execution (RCE). The score is CVSS 9.2.
- CVE-2026-109618. When a request reaches
memory_limitat the wrong moment, PHP can keep partly built internal data and later use it as valid. On Apache with mod_php, a request without authentication can trigger it before any application code runs; the researchers got full RCE with default settings. On PHP-FPM, RCE needs a suitable path in the application code. - CVE-2026-109619. A fatal error at the wrong moment can leave internal state that points to memory from an earlier request. A later request on the same worker can use it. The researchers showed RCE against a real application on Apache mod_php.
The AWS bulletin lists the versions. PHP 8.2.0 to 8.5.11 are affected. PHP 5.4 to 8.1 are end of life, and get no fix. For CVE-2026-109618 on those versions, AWS says: “No fix is available”.
How it was found, and why it took months. The first signs came from a 2024 audit by Quarkslab, organised by OSTIF and paid for by the Sovereign Tech Agency. Then nobody found a way to exploit it. In August 2026, Calif reported a working RCE on 11 August, OpenAI reported the same root cause on the same day, and Wiz reported more ways in on 24 August. The PHP security team then argued for months between fixes that each broke something: compatibility, new denial-of-service risk, or many third-party extensions. The Foundation’s own words: “the delay was a structural failure.”
How the embargo broke.
| Time (UTC) | Event |
|---|---|
| 20 Oct, about 15:00 | The CVE IDs leaked, with a wrong release time and a wrong score of 10.0. |
| 20 Oct, 19:30 | PHP published its pre-announcement and moved the release to 21 October. |
| 20 Oct, about 20:00 | Calif published a video of its exploit against several targets by mistake. It was deleted, but copies spread. |
| 21 Oct, 07:41 | Chainguard published images with the fix, six hours before the agreed release. |
| 21 Oct, 14:00 | PHP released the fixed versions. |
What it did to the web. GamesRadar reports that the Steam store was down on 21 October with “E502 L2 - We were unable to service your request”. Downloads and games still worked. Valve gave no reason; the link to PHP is GamesRadar’s guess. The same article quotes CERT-EU, which told organisations to consider “isolating internet-facing applications from public networks until a fix can be applied”, and cites Reuters: many government websites were taken offline. In the Hacker News thread, operators reported automated POST requests probing their servers within hours.
What to do.
- Find every PHP. Not only the apps you call PHP apps. PHP is inside WordPress, Drupal, Nextcloud, phpMyAdmin, Laravel dashboards and many self-hosted tools. Check the hosts (
php -v,php-fpm -v) and each container (docker exec <container> php -v). - Update and restart. Install the fixed version. Then restart PHP-FPM, Apache or the container: the running workers keep the old code until they restart. On Debian, the fixes are DSA-6574-1 (php8.4 in Debian 13) and DLA-4848-1 (php8.2 in Debian 12).
- Rebuild images that bundle PHP, and update self-hosted tools to their security releases.
- Managed platforms. AWS Elastic Beanstalk updates with Managed Platform Updates, or by hand. AWS says it “cannot update running Lightsail instances in place”: you make a new instance from the new blueprint and move to it.
- If you can not update today, reduce exposure: put the app behind a VPN or an IP allowlist, or take it offline as CERT-EU suggests. AWS gives two temporary WAF rules: limit request bodies to 8 KB, and block POST requests that contain
PHP_SESSION_UPLOAD_PROGRESS. AWS calls these temporary; only the update fixes the bugs. - End-of-life PHP (8.1 and older) has no fix for CVE-2026-109618. Move to a supported version.
Our opinion. Two lessons. First, the dangerous PHP is the one you forgot: an admin panel, a deploy dashboard or a tool in a container that nobody thinks of as “our PHP app”. An inventory of runtimes, not of apps, is what tells you where to patch in the first hour. Second, the fix was ready for weeks and the release still came as a scramble, because the embargo leaked in three places. Plan for that: an embargoed release date is a best case, not a promise. Know in advance how you would take a service off the internet for a day, because that is what CERT-EU, and many government sites, chose here.