| CVE ID | CVE-2026-129182 |
|---|---|
| Affected product | PHP Group PHP |
| Severity | Critical CVSS 9.2 (v4.0) |
| Exploitation | No known exploitation |
| CISA KEV | Not listed |
| Fix available | Yes |
| Bulletin status | Analysis complete · Last updated 2026-11-20 |
CVE-2026-129182 is a use-after-free vulnerability in PHP affecting all 8.5.x releases before 8.5.13. During request shutdown, if a fatal error is raised while modified INI settings are being restored, the global last_fatal_error_backtrace can be repopulated after the executor has already been cleaned up. The associated request memory is then freed, and a diagnostic emitted early in a subsequent request handled by the same PHP-FPM or mod_php worker can access that stale backtrace, leading to memory corruption, worker crashes, and potentially remote code execution. The vulnerability was disclosed on 19 November 2026, and PHP 8.5.13 is available to address it.
The flaw (CWE-416, use-after-free; CWE-459, incomplete cleanup) stems from a race between PHP's request shutdown sequence and the global backtrace storage. When INI settings are restored at shutdown and a fatal error fires during that process, the backtrace global is written to memory that the runtime has already scheduled for release. A subsequent request on the same long-lived worker process — before executor re-initialization completes — can read that freed memory region through an early diagnostic path, corrupting the heap or triggering a crash. Exploitation is network-reachable and requires no authentication, but triggering the vulnerable shutdown path requires either per-path memory_limit configuration or zlib.output_compression combined with output_handler (both of which a .user.ini file can also set). The early diagnostic path further requires Apache per-directory configuration or, for PHP-FPM, a PHP_VALUE or PHP_ADMIN_VALUE parameter supplied by the front end. The CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H) reflects the network-reachable, unauthenticated nature of the flaw alongside the prerequisite configuration condition (AT:P). The exact exploitable code path has not been made fully public.
CVSS vector: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
| Product / branch | Affected versions | Fixed version |
|---|---|---|
| PHP | 8.5.0 through 8.5.12 | 8.5.13 |
As of 2026-11-20, no in-the-wild exploitation has been confirmed as of the disclosure date of 19 November 2026, and this CVE does not appear on the CISA Known Exploited Vulnerabilities catalog. No public proof-of-concept code has been identified. However, the CVSS 4.0 score of 9.2 (Critical), the network-reachable unauthenticated attack vector, and CISA's SSVC assessment that the vulnerability is automatable with total technical impact make prompt patching a high priority even in the absence of observed exploitation.
memory_limit overrides and for zlib.output_compression combined with output_handler in .user.ini files or virtual-host configurations; remove or restrict these settings where they are not operationally required..htaccess and <Directory> blocks) for INI directives that could be leveraged to meet the exploitation preconditions, and disable AllowOverride for untrusted directories where possible.php --version or your platform's package manager reports version 8.5.13 or later on all affected hosts.Uptycs vulnerability management continuously inventories PHP versions across hosts, containers, and cloud workloads, enabling security teams to immediately identify all assets running PHP 8.5.0 through 8.5.12 and prioritize patching. Uptycs Threat Research is actively monitoring CVE-2026-129182 for changes in exploitation activity and will update this bulletin if new evidence of in-the-wild attacks or public proof-of-concept code emerges.
See how Uptycs finds affected assets across your hybrid cloud.
Get a demoIndex