CVE-2026-129182Use-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.
What to do
Fixed builds are available from Ubuntu: see the table below for the fixed version per release.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | php8.5 | Fixed | 8.5.9-0ubuntu2.2 | UBUNTU-CVE-2026-129182 |
| Ubuntu 26.04 | php8.5 | Fixed | 8.5.4-0ubuntu1.6 | UBUNTU-CVE-2026-129182 |
| Ubuntu 24.04 | php8.3 | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | php8.1 | Not affected vulnerable_code_not_present | ||
| Red Hat Enterprise Linux 10 | php | Not affected | ||
| Red Hat Enterprise Linux 10 | php-bcmath | Not affected | ||
| Red Hat Enterprise Linux 10 | php-cli | Not affected | ||
| Red Hat Enterprise Linux 10 | php-common | Not affected | ||
| Red Hat Enterprise Linux 10 | php-dba | Not affected | ||
| Red Hat Enterprise Linux 10 | php-dbg | Not affected | ||
| Red Hat Enterprise Linux 10 | php-devel | Not affected | ||
| Red Hat Enterprise Linux 10 | php-embedded | Not affected | ||
| Red Hat Enterprise Linux 10 | php-enchant | Not affected | ||
| Red Hat Enterprise Linux 10 | php-ffi | Not affected | ||
| Red Hat Enterprise Linux 10 | php-fpm | Not affected | ||
| Red Hat Enterprise Linux 10 | php-gd | Not affected | ||
| Red Hat Enterprise Linux 10 | php-gmp | Not affected | ||
| Red Hat Enterprise Linux 10 | php-intl | Not affected | ||
| Red Hat Enterprise Linux 10 | php-ldap | Not affected | ||
| Red Hat Enterprise Linux 10 | php-mbstring | Not affected | ||
| Red Hat Enterprise Linux 10 | php-mysqlnd | Not affected | ||
| Red Hat Enterprise Linux 10 | php-odbc | Not affected | ||
| Red Hat Enterprise Linux 10 | php-opcache | Not affected | ||
| Red Hat Enterprise Linux 10 | php-pdo | Not affected | ||
| Red Hat Enterprise Linux 10 | php-pgsql | Not affected | ||
| Red Hat Enterprise Linux 10 | php-process | Not affected | ||
| Red Hat Enterprise Linux 10 | php-snmp | Not affected | ||
| Red Hat Enterprise Linux 10 | php-soap | Not affected | ||
| Red Hat Enterprise Linux 10 | php-xml | Not affected | ||
| Red Hat Enterprise Linux 10 | php8.4 | Not affected | ||
| Red Hat Enterprise Linux 10 | php8.4-bcmath | Not affected | ||
| Red Hat Enterprise Linux 10 | php8.4-cli | Not affected | ||
| Red Hat Enterprise Linux 10 | php8.4-common | Not affected | ||
| Red Hat Enterprise Linux 10 | php8.4-dba | Not affected | ||
| Red Hat Enterprise Linux 10 | php8.4-dbg | Not affected | ||
| Red Hat Enterprise Linux 10 | php8.4-devel | Not affected | ||
| Red Hat Enterprise Linux 10 | php8.4-embedded | Not affected | ||
| Red Hat Enterprise Linux 10 | php8.4-enchant | Not affected | ||
| Red Hat Enterprise Linux 10 | php8.4-ffi | Not affected | ||
| Red Hat Enterprise Linux 10 | php8.4-fpm | Not affected | ||
| Red Hat Enterprise Linux 10 | php8.4-gd | Not affected | ||
| Red Hat Enterprise Linux 10 | php8.4-gmp | Not affected | ||
| Red Hat Enterprise Linux 10 | php8.4-intl | Not affected | ||
| Red Hat Enterprise Linux 10 | php8.4-ldap | Not affected | ||
| Red Hat Enterprise Linux 10 | php8.4-mbstring | Not affected | ||
| Red Hat Enterprise Linux 10 | php8.4-mysqlnd | Not affected | ||
| Red Hat Enterprise Linux 10 | php8.4-odbc | Not affected | ||
| Red Hat Enterprise Linux 10 | php8.4-opcache | Not affected | ||
| Red Hat Enterprise Linux 10 | php8.4-pdo | Not affected | ||
| Red Hat Enterprise Linux 10 | php8.4-pgsql | Not affected | ||
| Red Hat Enterprise Linux 10 | php8.4-process | Not affected | ||
| Red Hat Enterprise Linux 10 | php8.4-snmp | Not affected | ||
| Red Hat Enterprise Linux 10 | php8.4-soap | Not affected | ||
| Red Hat Enterprise Linux 10 | php8.4-xml | Not affected | ||
| Red Hat Enterprise Linux 9 | php | Not affected | ||
| Red Hat Enterprise Linux 9 | php-bcmath | Not affected | ||
| Red Hat Enterprise Linux 9 | php-cli | Not affected | ||
| Red Hat Enterprise Linux 9 | php-common | Not affected | ||
| Red Hat Enterprise Linux 9 | php-dba | Not affected | ||
| Red Hat Enterprise Linux 9 | php-dbg | Not affected | ||
| Red Hat Enterprise Linux 9 | php-devel | Not affected | ||
| Red Hat Enterprise Linux 9 | php-embedded | Not affected | ||
| Red Hat Enterprise Linux 9 | php-enchant | Not affected | ||
| Red Hat Enterprise Linux 9 | php-ffi | Not affected | ||
| Red Hat Enterprise Linux 9 | php-fpm | Not affected | ||
| Red Hat Enterprise Linux 9 | php-gd | Not affected | ||
| Red Hat Enterprise Linux 9 | php-gmp | Not affected | ||
| Red Hat Enterprise Linux 9 | php-intl | Not affected | ||
| Red Hat Enterprise Linux 9 | php-ldap | Not affected | ||
| Red Hat Enterprise Linux 9 | php-mbstring | Not affected | ||
| Red Hat Enterprise Linux 9 | php-mysqlnd | Not affected | ||
| Red Hat Enterprise Linux 9 | php-odbc | Not affected | ||
| Red Hat Enterprise Linux 9 | php-opcache | Not affected | ||
| Red Hat Enterprise Linux 9 | php-pdo | Not affected | ||
| Red Hat Enterprise Linux 9 | php-pgsql | Not affected | ||
| Red Hat Enterprise Linux 9 | php-process | Not affected | ||
| Red Hat Enterprise Linux 9 | php-snmp | Not affected | ||
| Red Hat Enterprise Linux 9 | php-soap | Not affected | ||
| Red Hat Enterprise Linux 9 | php-xml | Not affected | ||
| Red Hat Enterprise Linux 8 | apcu-panel | Not affected | ||
| Red Hat Enterprise Linux 8 | libzip | Not affected | ||
| Red Hat Enterprise Linux 8 | libzip-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | libzip-tools | Not affected | ||
| Red Hat Enterprise Linux 8 | php | Not affected | ||
| Red Hat Enterprise Linux 8 | php-bcmath | Not affected | ||
| Red Hat Enterprise Linux 8 | php-cli | Not affected | ||
| Red Hat Enterprise Linux 8 | php-common | Not affected | ||
| Red Hat Enterprise Linux 8 | php-dba | Not affected | ||
| Red Hat Enterprise Linux 8 | php-dbg | Not affected | ||
| Red Hat Enterprise Linux 8 | php-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | php-embedded | Not affected | ||
| Red Hat Enterprise Linux 8 | php-enchant | Not affected | ||
| Red Hat Enterprise Linux 8 | php-ffi | Not affected | ||
| Red Hat Enterprise Linux 8 | php-fpm | Not affected | ||
| Red Hat Enterprise Linux 8 | php-gd | Not affected | ||
| Red Hat Enterprise Linux 8 | php-gmp | Not affected | ||
| Red Hat Enterprise Linux 8 | php-intl | Not affected | ||
| Red Hat Enterprise Linux 8 | php-json | Not affected | ||
| Red Hat Enterprise Linux 8 | php-ldap | Not affected | ||
| Red Hat Enterprise Linux 8 | php-mbstring | Not affected | ||
| Red Hat Enterprise Linux 8 | php-mysqlnd | Not affected | ||
| Red Hat Enterprise Linux 8 | php-odbc | Not affected | ||
| Red Hat Enterprise Linux 8 | php-opcache | Not affected | ||
| Red Hat Enterprise Linux 8 | php-pdo | Not affected | ||
| Red Hat Enterprise Linux 8 | php-pear | Not affected | ||
| Red Hat Enterprise Linux 8 | php-pecl-apcu | Not affected | ||
| Red Hat Enterprise Linux 8 | php-pecl-apcu-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | php-pecl-rrd | Not affected | ||
| Red Hat Enterprise Linux 8 | php-pecl-xdebug | Not affected | ||
| Red Hat Enterprise Linux 8 | php-pecl-xdebug3 | Not affected | ||
| Red Hat Enterprise Linux 8 | php-pecl-zip | Not affected | ||
| Red Hat Enterprise Linux 8 | php-pgsql | Not affected | ||
| Red Hat Enterprise Linux 8 | php-process | Not affected | ||
| Red Hat Enterprise Linux 8 | php-recode | Not affected | ||
| Red Hat Enterprise Linux 8 | php-snmp | Not affected | ||
| Red Hat Enterprise Linux 8 | php-soap | Not affected | ||
| Red Hat Enterprise Linux 8 | php-xml | Not affected | ||
| Red Hat Enterprise Linux 8 | php-xmlrpc | Not affected | ||
| Red Hat Enterprise Linux 7 | php | Not affected | ||
| Red Hat Enterprise Linux 7 | php-bcmath | Not affected | ||
| Red Hat Enterprise Linux 7 | php-cli | Not affected | ||
| Red Hat Enterprise Linux 7 | php-common | Not affected | ||
| Red Hat Enterprise Linux 7 | php-dba | Not affected | ||
| Red Hat Enterprise Linux 7 | php-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | php-embedded | Not affected | ||
| Red Hat Enterprise Linux 7 | php-enchant | Not affected | ||
| Red Hat Enterprise Linux 7 | php-fpm | Not affected | ||
| Red Hat Enterprise Linux 7 | php-gd | Not affected | ||
| Red Hat Enterprise Linux 7 | php-intl | Not affected | ||
| Red Hat Enterprise Linux 7 | php-ldap | Not affected | ||
| Red Hat Enterprise Linux 7 | php-mbstring | Not affected | ||
| Red Hat Enterprise Linux 7 | php-mysql | Not affected | ||
| Red Hat Enterprise Linux 7 | php-mysqlnd | Not affected | ||
| Red Hat Enterprise Linux 7 | php-odbc | Not affected | ||
| Red Hat Enterprise Linux 7 | php-pdo | Not affected | ||
| Red Hat Enterprise Linux 7 | php-pgsql | Not affected | ||
| Red Hat Enterprise Linux 7 | php-process | Not affected | ||
| Red Hat Enterprise Linux 7 | php-pspell | Not affected | ||
| Red Hat Enterprise Linux 7 | php-recode | Not affected | ||
| Red Hat Enterprise Linux 7 | php-snmp | Not affected | ||
| Red Hat Enterprise Linux 7 | php-soap | Not affected | ||
| Red Hat Enterprise Linux 7 | php-xml | Not affected | ||
| Red Hat Enterprise Linux 7 | php-xmlrpc | Not affected | ||
| Red Hat Enterprise Linux 6 | php | Not affected | ||
| Red Hat Enterprise Linux 6 | php-bcmath | Not affected | ||
| Red Hat Enterprise Linux 6 | php-cli | Not affected | ||
| Red Hat Enterprise Linux 6 | php-common | Not affected | ||
| Red Hat Enterprise Linux 6 | php-dba | Not affected | ||
| Red Hat Enterprise Linux 6 | php-devel | Not affected | ||
| Red Hat Enterprise Linux 6 | php-embedded | Not affected | ||
| Red Hat Enterprise Linux 6 | php-enchant | Not affected | ||
| Red Hat Enterprise Linux 6 | php-fpm | Not affected | ||
| Red Hat Enterprise Linux 6 | php-gd | Not affected | ||
| Red Hat Enterprise Linux 6 | php-imap | Not affected | ||
| Red Hat Enterprise Linux 6 | php-intl | Not affected | ||
| Red Hat Enterprise Linux 6 | php-ldap | Not affected | ||
| Red Hat Enterprise Linux 6 | php-mbstring | Not affected | ||
| Red Hat Enterprise Linux 6 | php-mysql | Not affected | ||
| Red Hat Enterprise Linux 6 | php-odbc | Not affected | ||
| Red Hat Enterprise Linux 6 | php-pdo | Not affected | ||
| Red Hat Enterprise Linux 6 | php-pgsql | Not affected | ||
| Red Hat Enterprise Linux 6 | php-process | Not affected | ||
| Red Hat Enterprise Linux 6 | php-pspell | Not affected | ||
| Red Hat Enterprise Linux 6 | php-recode | Not affected | ||
| Red Hat Enterprise Linux 6 | php-snmp | Not affected | ||
| Red Hat Enterprise Linux 6 | php-soap | Not affected | ||
| Red Hat Enterprise Linux 6 | php-tidy | Not affected | ||
| Red Hat Enterprise Linux 6 | php-xml | Not affected | ||
| Red Hat Enterprise Linux 6 | php-xmlrpc | Not affected | ||
| Red Hat Enterprise Linux 6 | php-zts | Not affected |
What the vendor says
As published in the CVE record by php, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- PHP Group PHP: affected: 8.5.0 to before 8.5.13; fixed in
8.5.13
Vendor advisories:
- https://github.com/php/php-src/security/advisories/GHSA-2fjv-p558-g82m (vendor-advisory)
References
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.