PHP patches two critical RCEs that sit below every framework, and composer update will not fix them
PHP 8.5.12, 8.4.27, 8.3.36, and 8.2.35 fix two critical flaws that can allow unauthenticated remote code execution on PHP-FPM, mod_php, and FrankenPHP. The bugs live in the runtime, so the fix is a PHP upgrade and redeploy, not a dependency bump.
Most PHP security news is about a plugin, a package, or a framework. This one is about the interpreter itself. The PHP project shipped 8.5.12, 8.4.27, 8.3.36, and 8.2.35 on October 21 to fix two flaws that it says “can allow unauthenticated remote code execution,” and because the bugs sit beneath application code, no composer update will close them. Every PHP service that answers web requests needs a new runtime and, in most setups, a redeploy.
What the two bugs do
Both flaws come from how PHP recovers from fatal errors, mainly running out of memory, partway through a request. The PHP advisory describes them this way:
- CVE-2026-109618, RCE via OOM corruption: out-of-memory handling can interrupt PHP while internal request data is only partially initialized, and request cleanup may then treat that invalid data as valid.
- CVE-2026-109619, RCE via stale global state: request-owned state can survive after its memory is freed, and a later request on the same worker may use it before normal initialization resets it.
PHP’s pre-announcement rated both at CVSS v4.0 9.2. Wiz Research, which reported most of the issues (TechCrunch reports that a separate team working under an OpenAI program found one), breaks them into four underlying memory-safety bugs, including a use-after-free in session upload-progress decoding and a remote memory disclosure that can leak heap contents through a PHPSESSID cookie even when the application never starts a session. Wiz says it demonstrated unauthenticated RCE against current WordPress, Drupal, and Joomla container images, and that even a “Hello World” app on an affected version can be exposed.
Who is exposed
The advisory names “all PHP installations serving web requests, including PHP-FPM, Apache with mod_php, php-cgi, FrankenPHP and LiteSpeed,” and calls the risk highest for mod_php, where an unauthenticated request can trigger the attack before any application code runs. Google Cloud’s bulletin puts the affected range at PHP 5.4 through 8.5.11.
The supported-version line matters more than usual here. PHP 8.1 and older get no official patched release. The PHP security team did publish minimal source backports for 7.4, 8.0, and 8.1 for teams that build from source, and some distributions and LTS vendors backport fixes. For everyone else, an 8.1 server is now a migration problem rather than a patch. PHP 8.2 itself reaches end of life on December 31, 2026.
Exploitation status is the one area still moving. Wiz and TechCrunch reported no known in-the-wild exploitation at disclosure. Cloudflare, which deployed WAF rules about nine hours before the announcement, says it has since seen attack traffic aimed at its customers and attackers modifying payloads to evade those rules. That is evidence of active probing, not of confirmed compromises, but it removes any case for waiting.
What to do this week
The practical work depends on where PHP runs:
- Containers and serverless: rebuild images on a patched base and redeploy. Google Cloud says App Engine standard runtimes are patched automatically, but Cloud Run, GKE, and custom images need a rebuild. Laravel Vapor native runtimes need a redeploy, and custom or Docker runtimes need a new deployment.
- Managed servers: Laravel Forge users are told to run “Update PHP” on each server, and servers on Ubuntu 20.04 or older cannot get the update at all. Laravel Cloud patched running apps in place.
- Verify the binary, not the lockfile:
php -von the actual host or image is the only check that counts. A cleancomposer auditsays nothing about this issue.
If an upgrade cannot happen immediately, the advisory lists interim settings, including memory_limit = -1, a low post_max_size, and session.upload_progress.enabled = 0, applied in php.ini or the FPM pool rather than through ini_set(), followed by restarting every worker. PHP is explicit that these “reduce exposure to specific attack paths but do not make an installation safe.” WAF rules from Cloudflare, Google Cloud Armor, and others fall in the same category: useful cover while the rollout happens, not a fix.
Why the runtime layer is the story
Framework teams have spent years making dependency hygiene routine for PHP developers, and that tooling assumes the vulnerable code arrives through Composer. These flaws reach Laravel, Symfony, and WordPress sites through the interpreter they share, which shifts responsibility to whoever owns the base image or the server. For many teams that is a platform group, a host, or nobody in particular. The quickest responses so far appear to have come from managed platforms that control the runtime directly, and that gap may shape how teams weigh self-managed PHP hosting after this week.
- Security advisory: Critical remote code execution vulnerabilities, update now (PHP, October 21, 2026) www.php.net
- GHSA-w8hw-w9fx-j79w, CVE-2026-109618 (php/php-src) github.com
- GHSA-6wmf-4rv5-p3rp, CVE-2026-109619 (php/php-src) github.com
- PHP2Shell: unauthenticated RCE in PHP (Wiz Research) www.wiz.io
- PHP Armageddon: OpenAI, Google's Wiz find ancient holes, panicking the internet (TechCrunch) techcrunch.com
- Cloudflare deploys protections against php2shell vulnerability (Cloudflare) blog.cloudflare.com
- Responding to core PHP vulnerabilities CVE-2026-109618 and CVE-2026-109619 (Google Cloud) cloud.google.com
- PHP critical vulnerability response updates (Laravel) laravel.com