CVE-2026-129291: PHP-FPM use-after-free with catch_workers_output, and how to patch it

Data Security

CVE-2026-129291 is a flaw in the PHP-FPM master process. Code that already runs inside a PHP-FPM worker can use it to crash the master or to run code with the master's privileges, which are usually root. It was published on November 19, 2026, and Opensolr has been protected against it since that same day.

01 · At a glance

Identifier
CVE-2026-129291
Severity
8.8 High (CVSS v4.0)
Published
November 19, 2026
Affected
PHP 8.2.7 up to 8.2.35, 8.3 before 8.3.37, 8.4 before 8.4.28, 8.5 before 8.5.13
Fixed in
PHP 8.2.36, 8.3.37, 8.4.28 and 8.5.13
Opensolr
Protected since November 19, 2026
Last reviewed
November 20, 2026

02 · What it is

With catch_workers_output on, the PHP-FPM master reads what each worker writes to its output through a pipe and an event registered on it. When a worker exits, the master can close that pipe without removing the event, and a delayed cleanup can free the worker record while the event is still registered.

A later event is then dispatched through a pointer into freed memory. This is a local privilege escalation: the attacker must first be able to run PHP code in a worker. From there the master can be crashed or taken over.

03 · Who is affected

  • The server runs PHP-FPM in an affected version.
  • catch_workers_output is yes in at least one pool. It is off by default, but the official PHP-FPM Docker images turn it on.
  • The event mechanism is epoll, the default on Linux.

04 · How to fix it

Upgrade to PHP 8.2.36, 8.3.37, 8.4.28 and 8.5.13, depending on your branch, then restart PHP-FPM. A reload is not enough: the master process itself must be replaced.

sudo apt update && sudo apt install --only-upgrade 'php8.*'
sudo systemctl restart php8.4-fpm

05 · How to mitigate until you can upgrade

Turn worker output capture off in every pool. So that no PHP error is lost, give each pool its own error log first.

; /etc/php/8.4/fpm/pool.d/www.conf
catch_workers_output = no
php_admin_flag[log_errors] = on
php_admin_value[error_log] = /var/log/php8.4-fpm-www.log
sudo touch /var/log/php8.4-fpm-www.log
sudo chown www-data:www-data /var/log/php8.4-fpm-www.log
sudo php-fpm8.4 -t && sudo systemctl restart php8.4-fpm

06 · How to check a server

grep -rn '^catch_workers_output' /etc/php/*/fpm/pool.d/
grep -rn 'error_log' /etc/php/*/fpm/pool.d/

No output from the first command means the setting is at its default, off.

07 · Opensolr and this vulnerability

Status on November 20, 2026. Opensolr is protected against CVE-2026-129291. The condition it needs was closed on the platform on November 19, 2026, the day the advisory was published. Nothing is required from you: your Opensolr Index, your account and your data are not exposed to it.

  • Opensolr watches newly published vulnerabilities for every component of the platform, around the clock.
  • Each advisory is assessed against the platform as soon as it is published.
  • The fix is applied, or the vulnerable condition is closed, and the result is verified before the case is closed.

More on how Opensolr protects your data: Opensolr Trust Center and all security pages. Questions about a vulnerability that is not listed: contact Opensolr.

Official advisory: PHP security advisory GHSA-jm4m-qfqx-967m · NVD entry.