Use-after-free in PHP - CVE-2026-129291
Published: November 19, 2026
Vulnerability details
The vulnerability allows a local user to execute commands with the privileges of the PHP-FPM master process or cause a denial of service.
The vulnerability exists due to a use-after-free in PHP-FPM's epoll event handling when the master process dispatches an event that still references a freed worker record. A local user can exploit the stale event reference from an unprivileged FPM worker to execute commands as the master process, gaining root privileges if the master runs as root. The same descriptor-lifetime flaw can disrupt logging or request handling or crash the master process.
Exploitation requires the affected pool to have catch_workers_output enabled. In a container, gaining the master's privileges does not by itself establish a container escape.
Affected software
Debian Linux
Fedora
php
php8.4 (Debian package)
How to mitigate CVE-2026-129291
php - addressed in versions 8.4.28-2.fc43, 8.5.13-1.fc44, 8.5.13-1.fc45
php8.4 (Debian package) - update to 8.4.28-1~deb13u1