CVE-2026-129182
Description
Use-after-free via repopulation of last_fatal_error_backtrace global after shutdown.
A fatal error raised while modified INI settings are restored during request shutdown can repopulate the stored fatal error backtrace after the executor has been cleaned up. The request memory is then freed, and a diagnostic emitted before executor initialization in a later request handled by the same PHP-FPM or mod_php worker can access the stale backtrace. The shutdown error requires per-path configuration of max_memory_limit, or of zlib.output_compression together with output_handler (which .user.ini can also set). The early diagnostic requires Apache per-directory configuration or, for PHP-FPM, a PHP_VALUE or PHP_ADMIN_VALUE parameter sent by the front end. This can cause memory corruption and worker crashes, and may allow remote code execution.
This issue affects PHP versions 8.5.* before 8.5.13.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected products
2Patches
Vulnerability mechanics
References
1News mentions
8- CVE-2026-129289 and Other Critical PHP Vulnerabilities: What WordPress Site Owners Need to KnowWordfence Blog · Nov 20, 2026
- How Cloudflare WAF helps protect against phpAfterShell and other critical PHP flawsCloudflare Blog · Nov 20, 2026
- Critical PHP Flaws Allow Code Execution, but Don't Panic 'PHP2Shell'-StyleDark Reading · Nov 19, 2026
- PHP Patches Seven Critical RCE VulnerabilitiesSecurityWeek · Nov 19, 2026
- PHP Releases Patches to Fix 18 VulnerabilitiesInfosecurity Magazine · Nov 19, 2026
- PHP’s November 2026 Security Release: What Reaches WordPressPatchstack Blog · Nov 19, 2026
- PHP Fixes 7 Critical Flaws, Including Bugs That Could Allow Remote Code ExecutionThe Hacker News · Nov 19, 2026
- PHP Warns of Critical Security Flaws Affecting All Supported Versions, Urges Users to UpdateCyber Security News · Nov 19, 2026