Use-after-free via repopulation of last_fatal_error_backtrace global after shutdown
- CVE-2026-129182
- EUVD-2026-130122
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.
Text from the CVE.org record.
Recommendation
PHP Group PHP
- If you run 8.5.xupdate to 8.5.13 or laterPatch update: breaking changes are unlikely
Taken from the version ranges of the CVE.org record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.
Affected
PHP Group PHP
Affected versions Fixed in from 8.5.0 to before 8.5.13 8.5.13
Product versions from the CVE.org record.
Timeline
- Published
- EPSS first scored at 24%
Related news
No article from the followed outlets names this vulnerability.