Critical PHP update (21 Oct 2026) First fixed upstream releases: 8.6.0, 8.5.13, 8.4.28, 8.3.37, 8.2.36. What to do now New (23 Oct): CVE-2026-115560

Guide · Developers, DevOps

Laravel and applications with persistent workers

Page last updated: Data verified:

Contents

Why persistent workers matter#

A long-running PHP worker loads the PHP binary once and serves thousands of jobs or requests. After PHP is upgraded it keeps running the old code until it exits. In addition, CVE-2026-109619 concerns state that survives between requests in the same worker. Scenarios with worker reuse are exactly what the advisory describes.

1. Discovery#

Read-only: changes nothing

# Persistent PHP processes and when they started
ps -eo pid,user,lstart,args | grep -E '[a]rtisan (queue:work|horizon|octane)|[r]r serve|[m]essenger:consume|[f]rankenphp' 

# Supervisor programs
sudo supervisorctl status 2>/dev/null

# systemd units with PHP
systemctl list-units --type=service | grep -Ei 'php|horizon|octane|queue|worker'

2. Restarting after the PHP upgrade#

Restart: possible brief service interruption

# Laravel queue workers: exit gracefully after the current job and Supervisor starts them again
php artisan queue:restart

# Laravel Horizon
php artisan horizon:terminate

# Laravel Octane
#   reload restarts the application workers, not necessarily the server process.
#   After a PHP upgrade prefer a full stop/start (or a restart of the Supervisor/systemd unit).
php artisan octane:stop && php artisan octane:start   # or: sudo supervisorctl restart octane

# Symfony Messenger
php bin/console messenger:stop-workers

# RoadRunner
rr reset            # restarts workers; for a PHP binary change prefer restarting the service

# Supervisor (all programs)
sudo supervisorctl restart all

queue:restart, horizon:terminate and messenger:stop-workers rely on a supervisor (Supervisor, systemd, Kubernetes) starting the processes again. If there is none, they will stop and not start again.

3. Cron and the scheduler#

php artisan schedule:run starts a new process on every run and automatically uses the new binary. Do check, however, which binary the crontab calls (e.g. /usr/bin/php or /opt/cpanel/ea-php84/root/usr/bin/php) and that it is the fixed one.

4. Verification#

Read-only: changes nothing

# Start time of all workers: must be after the upgrade
ps -eo pid,lstart,args | grep -E '[a]rtisan|[r]r serve|[m]essenger:consume|[f]rankenphp'

# No process with a deleted (old) binary
for p in $(pgrep -f 'php|rr|frankenphp'); do ls -l /proc/$p/exe 2>/dev/null; done | grep deleted

5. Secrets#

In persistent workers, process memory holds configuration, tokens and connections for a long time. If an HTTP-facing worker was vulnerable and exposed, consider rotating APP_KEY (with care, as it affects encrypted data and sessions), database passwords and API keys. See the table in the possible compromise guide.

Main source: PHP project · php-src (GitHub)