
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-129291 is a use-after-free (UAF) vulnerability in PHP-FPM's worker output capture mechanism that can lead to local privilege escalation. When catch_workers_output is enabled and the epoll event backend is used, the PHP-FPM master process can dispatch an epoll event referencing a freed worker record, allowing a local attacker who can execute PHP code in an FPM worker to crash the master or execute arbitrary commands with its privileges (commonly root). Affected versions include PHP 8.2.7–8.2.35, 8.3.0–8.3.36, 8.4.0–8.4.27, and 8.5.0–8.5.12. It was published on November 19, 2026, with a CVSS v4.0 base score of 8.8 (High) (GitHub Advisory).
The vulnerability is classified as CWE-416 (Use After Free) and was introduced in the delayed-cleanup path added in PHP 8.1.20 and 8.2.7. When catch_workers_output is enabled, the FPM master monitors worker stdout/stderr pipes via epoll, with event structures embedded in worker records. When a worker exits and fpm_child_close() drains output pipes, if a helper process holds the pipe's write end open, the read returns EAGAIN instead of EOF; the master then closes the pipe's read descriptor without removing its epoll event or invalidating the stored descriptor number, deferring cleanup by one second. An attacker can stop a newly forked sibling worker after it drops to the pool user but before it closes inherited descriptors, keeping the original pipe and epoll watch alive; the delayed cleanup then operates on a reused descriptor number, and a subsequent write to the old pipe causes epoll to return a pointer into freed memory, which is passed to fpm_event_fire(). The demonstrated exploit uses the stale output callback to corrupt the allocator's free list and replace the callback with an arbitrary command, with Curl and OPcache used for memory address resolution (though not required to trigger the UAF) (GitHub Advisory).
Successful exploitation allows a local attacker executing PHP code in an unprivileged FPM worker to escalate privileges to those of the FPM master process, which commonly runs as root, achieving full system compromise including arbitrary command execution, access to all data on the host, and complete loss of confidentiality, integrity, and availability. In containerized environments (such as the official PHP-FPM Docker images, which enable catch_workers_output by default), exploitation grants the master's container privileges but does not by itself constitute a container escape. Even without full exploitation, the underlying descriptor-lifetime bug can close another worker's reused descriptor, disrupt logging or request handling, cause repeated worker respawns, or crash the master process (GitHub Advisory).
As of the disclosure date (November 19, 2026), there is no public proof-of-concept exploit and no evidence of in-the-wild exploitation. The EPSS score is 0.0, and the vulnerability is not listed in the CISA KEV catalog. Exploitation requires several preconditions: local code execution in an FPM worker, catch_workers_output enabled in the pool configuration, the epoll event backend, and the ability to manipulate worker lifetimes and retain inherited pipe descriptors. The exploit is also dependent on memory layout and process timing, increasing complexity. Root command execution was reproduced internally against unmodified PHP 8.5.12 Docker images on Linux arm64 and x86-64 (GitHub Advisory).
catch_workers_output is enabled in the pool configuration (default in official PHP-FPM Docker images) and that the epoll event backend is active (default on Linux).fpm_event_fire() with the corrupted pointer, invoking the attacker-controlled callback and executing arbitrary commands with the FPM master's privileges (commonly root) (GitHub Advisory)./bin/sh, bash, curl, wget) with the master's UID (often root); FPM worker processes in a stopped (T) state for extended periods (indicating deliberate SIGSTOP).fpm_event_fire() crashes; unusual EAGAIN patterns on worker output pipes in FPM debug logs./var/crash or the FPM working directory; unexpected epoll_ctl or close syscall errors in strace output from the master process (GitHub Advisory).Upgrade PHP to the fixed versions: 8.2.36, 8.3.37, 8.4.28, or 8.5.13 depending on your deployed branch. The fix unregisters each stdio epoll event while its original descriptor is still valid, closes the descriptor, and sets the stored descriptor to -1 to prevent delayed cleanup from acting on it again. As an immediate workaround, disable catch_workers_output in all affected pool configurations (set catch_workers_output = no), which eliminates the attack surface entirely. Running the FPM master as an unprivileged user limits the impact of exploitation but does not fix the underlying UAF. Disabling Curl or OPcache only removes parts of the demonstrated exploit chain and should not be treated as a complete mitigation (GitHub Advisory).
The vulnerability received broad coverage from the security community shortly after its November 19, 2026 disclosure. Security news outlets including BleepingComputer, Infosecurity Magazine, CyberSecurityNews, and SecurityOnline.info covered the release as part of a larger PHP security update fixing 18 flaws. WordPress and Joomla ecosystem blogs (Patchstack, MySites.guru) highlighted the impact on PHP-FPM Docker deployments. Mattias Geniar published a dedicated security release summary, and HeroDevs added it to their vulnerability directory. Tenable flagged it in their plugin pipeline. Community sentiment emphasized the elevated risk for users of official PHP-FPM Docker images, where catch_workers_output is enabled by default (GitHub Advisory).
Fix availability across major Linux distributions and their releases.
bookworm
php8.2: 8.2.36-1~deb12u1
sid
php8.4: 8.4.28-2
trixie
php8.4: 8.4.28-1~deb13u1
bionic (esm-infra)
php7.2: 7.2.24-0ubuntu0.18.04.17+esm15
devel
php8.5
focal (esm-infra)
php7.4: 7.4.3-4ubuntu2.29+esm6
jammy
php8.1: 8.1.2-1ubuntu2.29
noble
php8.3: 8.3.6-0ubuntu0.24.04.14
resolute
php8.5: 8.5.4-0ubuntu1.6
trusty (esm-infra-legacy)
php5: 5.5.9+dfsg-1ubuntu4.29+esm19
xenial (esm-infra-legacy)
php7.0: 7.0.33-0ubuntu0.16.04.16+esm23
RHEL 8
php:7.4/php.src
RHEL 9
:appstream:php-0:8.2-9080020261120141350.9.src
RHEL 10
php8.4-0:8.4.28-1.el10_2.src
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."