Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessExecute PHP code in FPM worker
-
DeliveryStop forked sibling to retain pipe descriptors
-
ExploitTrigger delayed cleanup use-after-free on worker record
-
ExecutionFire epoll event through freed pointer
-
PersistCorrupt free list and hijack callback
-
ImpactExecute command as root master
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Memory lifecycle management
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Privilege Escalation The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires all of the following concrete prerequisites stated in the advisory: the attacker must be able to execute PHP code inside an FPM worker; the affected pool must have catch_workers_output enabled; the FPM master must use the epoll event backend; and the attacker must be able to manipulate worker lifetimes and retain inherited pipe (stdout/stderr) descriptors - specifically stopping a newly forked sibling after it drops to the pool user but before it closes inherited descriptors. Limiting factors that reduce real-world risk: catch_workers_output is disabled by default in upstream PHP-FPM (catch_workers_output = no), so default non-container configurations are not affected - however it is enabled in the official PHP-FPM Docker images, which are a common affected configuration. Escalation to root only occurs if the master runs as root; if the master runs as an unprivileged user, impact is limited to that user, and in a container it grants the master's container privileges without by itself establishing a container escape. Exploitation also depends on memory layout and process timing (AC:H/AT:P), making it probabilistic rather than deterministic. |
| Impact | This is a genuine local privilege-escalation issue whose real-world priority is moderate-to-high but tightly scoped, not a mass-exploitation emergency. The CVSS 4.0 vector (AV:L/AC:H/AT:P/PR:L/UI:N) tells a consistent story: exploitation is local (AV:L), requires an attacker who can already run PHP code in an FPM worker (PR:L), and depends on winning a timing window and controlling memory layout (AC:H plus the attack-requirement AT:P). That makes this a post-compromise escalation primitive rather than an initial-access flaw. The impact metrics (VC:H/VI:H/VA:H and subsequent-system SC:H/SI:H/SA:H) correctly reflect that success yields code execution as the FPM master, commonly root, crossing a privilege boundary. KEV status is NO and no EPSS score was supplied, so there is no signal of active or widespread exploitation; the vuln.today decision label is 'this_week', consistent with a serious-but-not-emergency triage. Signals do not conflict: high severity is driven by impact, while the AC:H/AT:P/PR:L metrics correctly dampen likelihood. The main caveat is the gating configuration - catch_workers_output must be enabled and the epoll backend in use - which is non-default for upstream PHP but is the shipped default in official PHP-FPM Docker images, so containerized deployments are disproportionately exposed. Note that no CVSS 3.1 vector or EPSS value was provided in the input; only the 4.0 vector and base score were given. |
| Exploit ScenarioDerived | An attacker who can execute PHP in an unprivileged www-data FPM worker (for example via a vulnerable web application or on a shared-hosting pool) stops a newly forked sibling after it drops privileges but before it closes inherited pipe descriptors, keeping a stale epoll watch alive after the master closes its own descriptors. The delayed cleanup then fires an event through a pointer into the freed worker record, which is leveraged to corrupt the allocator free list and replace a callback to run a command as the root master. The reporter states a working exploit was reproduced against unmodified PHP 8.5.12 Docker images on arm64 and x86-64, but no public exploit code is referenced in the input. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 19, 2026
PHP-FPM can pass a stale epoll event referring to an already-freed worker record to its callback dispatcher, letting an attacker who can already run PHP code inside a worker crash the FPM master or execute commands with the master's privileges - commonly root. The flaw lives in the master's worker-output handling and is only reachable when a pool has catch_workers_output enabled and the epoll event backend is in use; that setting is off by default upstream but is enabled in the official PHP-FPM Docker images, a widely deployed configuration. Affected branches are 8.2.7 through 8.2.35, 8.3.x before 8.3.37, 8.4.x before 8.4.28 and 8.5.x before 8.5.13, with fixes in 8.2.36, 8.3.37, 8.4.28 and 8.5.13. The advisory documents a demonstrated exploit chain achieving root command execution from a www-data worker against unmodified PHP 8.5.12 Docker images on arm64 and x86-64, but exploitation is probabilistic, depending on memory layout and process timing; no public exploit release or active exploitation (CISA KEV) is confirmed in the supplied data.
RemediationAI
Upgrade to the fixed release for the installed branch: PHP 8.2.36, 8.3.37, 8.4.28 or 8.5.13. The fix unregisters each stdio event while its original descriptor is still valid, closes the descriptor, and sets the stored descriptor to -1 so delayed cleanup cannot act on a reused number; the vendor advisory is https://github.com/php/php-src/security/advisories/GHSA-jm4m-qfqx-967m. Where an immediate upgrade is not possible, the vendor's temporary workaround is to set catch_workers_output = no (or remove it) in every affected pool - this removes the worker-output monitoring path entirely, at the cost of losing captured worker stdout/stderr in the FPM error log, which reduces debuggability of pool failures. Running the FPM master as a non-root user limits what a successful exploit yields to that user's privileges, but it does not correct the use-after-free and is not a fix. Disabling Curl or OPcache removes only portions of the demonstrated exploit chain and should not be treated as a complete mitigation. Note also that the same descriptor-lifetime error can disrupt logging or request handling, cause repeated worker respawns or crash the master even without deliberate exploitation, so patching is preferable to relying on configuration alone.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
This is a CWE-416 use-after-free in the PHP-FPM master's event loop. When catch_workers_output is enabled, the master monitors pipe descriptors connected to each worker's stdout and stderr, and the epoll registrations for those descriptors store pointers to event structures embedded inside the corresponding worker record. On worker exit, fpm_child_close() tries to drain the output pipes; if a helper still holds a pipe's write end open, the read returns EAGAIN rather than EOF, and the master closes the read descriptor without unregistering its event or invalidating the descriptor number cached in the worker record. Cleanup of that record is deferred for one second. An attacker who stops a freshly forked sibling after it has dropped to the pool user but before it closes inherited descriptors keeps the original pipe readers and epoll descriptor alive, so the original watch can outlive the master's own descriptors; when delayed cleanup then acts on a descriptor number that has since been reused, it removes the wrong watch or fails to remove the original one, and the worker record is freed while the epoll registration still points into it. A later write to the old pipe makes epoll return a pointer into freed memory, which the master hands to fpm_event_fire(); that function reads and invokes the crafted callback - in the demonstrated chain, through a freed logging buffer and a corrupted allocator free list. The underlying technology is the Linux epoll interface plus FPM's event abstraction layer, and the vulnerable delayed-cleanup path was introduced in PHP 8.1.20 and 8.2.7. Curl and OPcache were used only to obtain memory addresses in the proof of concept and are not required to trigger the use-after-free.
Know when PHP gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:L/AC:H/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
Local code execution in an unprivileged worker (AV:L/PR:L), success depends on a timing race and memory layout (AC:H), and escalation from pool user to the root master crosses a privilege boundary (S:C) with full code-execution impact.
Primary rating from Vendor (php).
CVSS VectorVendor: php
Lifecycle Timeline
2DescriptionCVE.org
PHP-FPM epoll use-after-free can lead to local privilege escalation.
When catch_workers_output is enabled and the epoll event backend is used, the PHP-FPM master can close a worker's output pipe in fpm_child_close() without removing the associated event, and the delayed cleanup can free the worker record while its epoll registration is still active. A later event is then dispatched through a pointer into freed memory. A local attacker who can execute PHP code in an FPM worker can crash the master or execute code with its privileges, commonly root. catch_workers_output is disabled by default but enabled in the official PHP-FPM Docker images.
This issue affects PHP versions from 8.2.7 before 8.2.36, 8.3.* before 8.3.37, 8.4.* before 8.4.28 and 8.5.* before 8.5.13.
Technical POC Analysis
Evidence note: the supplied data is the GitHub Security Advisory GHSA-jm4m-qfqx-967m only.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Latest POC
1 PoC candidate from github (unverified)
Sign in to open the public PoC links collected for this CVE.
Executive ViewAI
CVE-2026-129291 is a high-severity vulnerability in PHP-FPM that allows an attacker with existing PHP code execution to escalate privileges to the FPM master process, often running as root. This affects organizations using the official PHP-FPM Docker images (where the vulnerable configuration is enabled by default) in versions 8.2.7-8.2.35, 8.3.x before 8.3.37, 8.4.x before 8.4.28, and 8.5.x before 8.5.13, potentially leading to full system compromise if exploited. Leadership should prioritize patching because the flaw enables container escape and root-level access, though exploitation is probabilistic and no public exploit is identified at time of analysis.
No vendor-released patch identified at time of analysis
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Privilege escalation occurs when an attacker leverages flaws in access control mechanisms to gain permissions beyond what they were originally granted.
Use-after-free vulnerabilities occur when a program continues to access memory through a pointer after that memory has been deallocated.
Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.
In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it
sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not
(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear
The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by
ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C
Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au
Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c
Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows
The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1
EUVD-2026-130184
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB