PHP Group PHP
Use-after-free via repopulation of last_fatal_error_backtrace global after shutdown
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 8.5.0, < 8.5.13
Fixed in 8.5.13
Mitigation
Upgrade PHP to 8.5.13 or later.
References
- Vendor advisory github.com/php/php-src/security/advisories/GHS…
Timeline
Days relative to CVE publicationFirst public PoC 6.9 days after publication; not in CISA KEV. First PoC: googlesky/CVE-2026-129182 (created 26 Nov 2026, found by us: 26 Nov 2026).
PoC repositories
Found on GitHub.1 PoCs
PoCs 1
| Repository | Created | Found by us | Stars | Assessment |
|---|---|---|---|---|
| googlesky/CVE-2026-129182 | 26 Nov 2026 +6.9 d | 26 Nov 2026 | 0 | PoC |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.