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.
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Amazon_linux_2023 | — | Upgrade php8.5Upgrade php8.5-bcmathUpgrade php8.5-bcmath-debuginfoUpgrade php8.5-cliUpgrade php8.5-cli-debuginfoUpgrade php8.5-commonUpgrade php8.5-common-debuginfoUpgrade php8.5-dbaUpgrade php8.5-dba-debuginfoUpgrade php8.5-dbgUpgrade php8.5-dbg-debuginfoUpgrade php8.5-debuginfoUpgrade php8.5-debugsourceUpgrade php8.5-develUpgrade php8.5-embeddedUpgrade php8.5-embedded-debuginfoUpgrade php8.5-enchantUpgrade php8.5-enchant-debuginfoUpgrade php8.5-ffiUpgrade php8.5-ffi-debuginfoUpgrade php8.5-fpmUpgrade php8.5-fpm-debuginfoUpgrade php8.5-gdUpgrade php8.5-gd-debuginfoUpgrade php8.5-gmpUpgrade php8.5-gmp-debuginfoUpgrade php8.5-intlUpgrade php8.5-intl-debuginfoUpgrade php8.5-ldapUpgrade php8.5-ldap-debuginfoUpgrade php8.5-mbstringUpgrade php8.5-mbstring-debuginfoUpgrade php8.5-modphpUpgrade php8.5-modphp-debuginfoUpgrade php8.5-mysqlndUpgrade php8.5-mysqlnd-debuginfoUpgrade php8.5-odbcUpgrade php8.5-odbc-debuginfoUpgrade php8.5-pdoUpgrade php8.5-pdo-debuginfoUpgrade php8.5-pgsqlUpgrade php8.5-pgsql-debuginfoUpgrade php8.5-processUpgrade php8.5-process-debuginfoUpgrade php8.5-snmpUpgrade php8.5-snmp-debuginfoUpgrade php8.5-soapUpgrade php8.5-soap-debuginfoUpgrade php8.5-sodiumUpgrade php8.5-sodium-debuginfoUpgrade php8.5-tidyUpgrade php8.5-tidy-debuginfoUpgrade php8.5-xmlUpgrade php8.5-xml-debuginfoUpgrade php8.5-zipUpgrade php8.5-zip-debuginfo | Nov 23, 2026 | Nov 19, 2026 |
| Gentoo Linux | — | Upgrade dev-lang/php. | Nov 22, 2026 | Nov 19, 2026 |
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub