Skip to content
PHP released the fixed versions on 21 October at 14:00 UTC. Update PHP on every server you run.CERT-EU advisory
php2shell.xyz
Application serverAction needed

Patch PHP2Shell on RoadRunner

RoadRunner is a Go server that keeps PHP workers alive between requests. The Go binary is not affected; the PHP workers are. Update PHP on the worker hosts, then reset the workers so they reload the patched PHP.

You need
Root or sudo on the hosts that run the PHP workers. To reset workers remotely you need RoadRunner’s RPC listener reachable from where you run ./rr.
Updated
By
PXL

Fixed in

  • 8.2.35
  • 8.3.36
  • 8.4.27
  • 8.5.12

Affected: The PHP workers of any RoadRunner deployment running a PHP version older than the fixed versions.

What is affected

RoadRunner has two parts: the Go server (the rr binary) and the PHP workers it keeps alive to handle requests. The flaw is in PHP, so the Go binary needs no change. The workers do, and because they are long-lived, the stale-state path in CVE-2026-109619 is relevant to them. The fix is to update PHP on the hosts that run the workers and then reload the workers so they launch the patched binary.

Update PHP on the worker hosts

  1. 01Install the fixed version for your branch

    Update the PHP that runs the workers to the first fixed release on its branch. Each one closes both CVEs.

    PHP 8.2 → 8.2.35
    PHP 8.3 → 8.3.36
    PHP 8.4 → 8.4.27
    PHP 8.5 → 8.5.12

Build PHP from source if there is no package

If your branch has no packaged release, build the fixed PHP from source and install it as the PHP the workers run. The steps are the same as for any PHP build; see the PHP guide for detail. Rebuild any PECL extensions your workers load against the new PHP as well.

  1. 01Build and install PHP

    Fetch the fixed version’s source for your branch from php.net, then configure, build and install it.

    ./configure --prefix=/usr/local
    make -j"$(nproc)"
    sudo make install

Reload the workers

The workers run the patched PHP only once they are replaced. ./rr reset starts a fresh worker pool on the new PHP while in-flight requests finish; restarting the service does the same. A worker that stays up keeps the old PHP.

  1. 01Reset the worker pools

    From the directory with your configuration, reset the workers. You can target one plugin, for example ./rr reset http.

    ./rr reset
  2. 02Or restart the service

    If RoadRunner runs under a service manager, restarting it starts a fresh pool on the updated PHP.

    sudo systemctl restart roadrunner

Verify

Check the PHP that RoadRunner launches workers with. Run the same php binary the workers use; it must report the fixed release for its branch or later.

php -v

Sources