Use-after-free in PHP - CVE-2026-129291

 

Use-after-free in PHP - CVE-2026-129291

Published: November 19, 2026


Vulnerability identifier: #VU167917
CSH Severity: Low
CVSS v4: 7.3 [CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-129291
CWE-ID: CWE-416
Exploitation vector: Local access
Exploit availability: No public exploit available

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

PHP
Debian Linux
Fedora
php
php8.4 (Debian package)

How to mitigate CVE-2026-129291

Install security update from vendor's website.

PHP - addressed in versions 8.2.36, 8.3.37, 8.4.28, 8.5.13
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

External References

Related Security Bulletins