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

 

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

Published: November 19, 2026


Vulnerability identifier: #VU167929
CSH Severity: High
CVSS v4: 9.2 [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]
CVE-ID: CVE-2026-129182
CWE-ID: CWE-416
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to corrupt memory, crash a PHP worker, and potentially execute arbitrary code.

The vulnerability exists due to a use-after-free in PHP's fatal-error backtrace handling when restoring memory-limit or zlib output settings raises a fatal diagnostic after executor cleanup, recreating a backtrace that remains referenced after the request heap is freed. A remote attacker can trigger an early diagnostic in a subsequent request handled by the same worker to access the freed backtrace before executor initialization, potentially corrupting memory, crashing the worker, or executing arbitrary code.

Both settings-restoration paths can occur under PHP-FPM and mod_php, but the max_memory_limit override requires administrative configuration.


Affected software

PHP
Fedora
php

How to mitigate CVE-2026-129182

Install security update from vendor's website.

PHP - update to 8.5.13
php - addressed in versions 8.5.13-1.fc44, 8.5.13-1.fc45

External References

Related Security Bulletins