Use-after-free in PHP - CVE-2026-129182
Published: November 19, 2026
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
Fedora
php
How to mitigate CVE-2026-129182
php - addressed in versions 8.5.13-1.fc44, 8.5.13-1.fc45