Skip to main content

PHP-FPM CVE-2026-129291

| EUVDEUVD-2026-130184 HIGH
Use After Free (CWE-416)
2026-11-19 php
8.8
CVSS 4.0 · Vendor: php
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Execute PHP code in FPM worker
  2. Delivery
    Stop forked sibling to retain pipe descriptors
  3. Exploit
    Trigger delayed cleanup use-after-free on worker record
  4. Execution
    Fire epoll event through freed pointer
  5. Persist
    Corrupt free list and hijack callback
  6. Impact
    Execute 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
1 PoC candidate (unverified) Patch available 1.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

PHP 8.2.7 <8.2.36
PHP 8.3.0 <8.3.37
PHP 8.4.0 <8.4.28
PHP 8.5.0 <8.5.13

Affected Packages

euvd php fix: 8.2.36, 8.3.37, 8.4.28, 8.5.13

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

Vendor (php) PRIMARY 8.8 HIGH
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
vuln.today AI 7.8 HIGH

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.

3.1 AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
4.0 AV:L/AC:H/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H

Primary rating from Vendor (php).

CVSS VectorVendor: php

Attack Vector
Local
Attack Complexity
High
Attack Requirements
Present
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
High
Subsequent system: Integrity
High
Subsequent system: Availability
High

Lifecycle Timeline

2
Patch available
Nov 19, 2026 - 16:18 EUVD
CVE Published
Nov 19, 2026 - 14:44 cve.org
HIGH 8.8

DescriptionCVE.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

Why It Matters

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.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis

Threat Intelligence Overview

EPSS Score
1.2%
Top 30% exploitable
Prevalence
Ubiquitous
PHP-FPM is the standard PHP runtime across a huge fraction of web deployments
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment MSRC GitHub VulDB

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 1.2%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

65
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +44
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

More in PHP

View all
CVE-2019-11043 CRITICAL POC
9.8 Oct 28

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

CVE-2012-1823 CRITICAL POC
9.8 May 11

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

CVE-2016-1555 CRITICAL POC
9.8 Apr 21

(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear

CVE-2018-11138 CRITICAL POC
9.8 May 31

The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by

CVE-2024-11680 CRITICAL POC
9.8 Nov 26

ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C

CVE-2025-49113 CRITICAL POC
9.9 Jun 02

Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au

CVE-2017-9841 CRITICAL POC
9.8 Jun 27

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

CVE-2025-0108 HIGH POC
8.8 Feb 12

Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers

CVE-2021-25298 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2021-25296 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2013-4983 CRITICAL POC
10.0 Sep 10

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

CVE-2023-6553 CRITICAL POC
9.8 Dec 15

The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy