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.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
Mitigation details
CVE-2026-129182 NameCVE-2026-129182 DescriptionUse-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…
CVE-2026-129182
| Name | 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. |
| Source | CVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
Vulnerable and fixed packages
The table below lists information on source packages.
| Source Package | Release | Version | Status |
|---|---|---|---|
| php8.2 (PTS) | bookworm | 8.2.32-1~deb12u1 | fixed |
| bookworm (security) | 8.2.36-1~deb12u1 | fixed | |
| php8.4 (PTS) | trixie | 8.4.24-1~deb13u1 | fixed |
| trixie (security) | 8.4.28-1~deb13u1 | fixed | |
| forky | 8.4.27-1 | fixed | |
| sid | 8.4.28-2 | fixed |
The information below is based on the following data on fixed versions.
| Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
|---|---|---|---|---|---|---|
| php8.2 | source | (unstable) | (not affected) | |||
| php8.4 | source | (unstable) | (not affected) |
Notes
- php8.4 <not-affected> (Only affects PHP 8.5 version)
- php8.2 <not-affected> (Only affects PHP 8.5 version)
https://github.com/php/php-src/security/advisories/GHSA-2fjv-p558-g82m
Apply commands
- php8.4 <not-affected> (Only affects PHP 8.5 version)- php8.2 <not-affected> (Only affects PHP 8.5 version)https://github.com/php/php-src/security/advisories/GHSA-2fjv-p558-g82m
OS impact
Debian Fixed 4 releases
| Version | Package | Status | Fixed in |
|---|---|---|---|
| trixie | php8.4 |
Not affected | — |
| sid | php8.4 |
Not affected | — |
| forky | php8.4 |
Not affected | — |
| bookworm | php8.2 |
Not affected | — |
Gentoo Fixed 1 release
| Version | Package | Status | Fixed in |
|---|---|---|---|
| — | — | Fixed | 8.2.36 |
Ubuntu Fixed 8 releases
| Version | Package | Status | Fixed in |
|---|---|---|---|
| xenial | php7.0-xml php7.0-xmlrpc php7.0-xsl +36 more |
Fixed | 7.0.33-0ubuntu0.16.04.16+esm23 |
| trusty | php5-gd php5-gmp php5-intl +26 more |
Fixed | 5.5.9+dfsg-1ubuntu4.29+esm19 |
| stonking | php8.5-odbc php8.5-sqlite3 php8.5-sybase +30 more |
Fixed | 8.5.9-0ubuntu2.2 |
| resolute | php8.5-odbc php8.5-phpdbg php8.5-readline +30 more |
Fixed | 8.5.4-0ubuntu1.6 |
| noble | libphp8.3-embed php8.3 php8.3-bcmath +32 more |
Fixed | 8.3.6-0ubuntu0.24.04.14 |
| jammy | php8.1-zip libapache2-mod-php7.4 libapache2-mod-php8.0 +34 more |
Fixed | 8.1.2-1ubuntu2.29 |
| focal | libapache2-mod-php7.4 libphp7.4-embed php7.4 +34 more |
Fixed | 7.4.3-4ubuntu2.29+esm6 |
| bionic | php7.2-snmp php7.2-soap php7.2-sqlite3 +35 more |
Fixed | 7.2.24-0ubuntu0.18.04.17+esm15 |
SUSE Tracked 1 release
| Version | Package | Status | Fixed in |
|---|---|---|---|
| — | — | Unknown | — |
Application impact
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| php | php | {"startIncluding":"8.5.0","endExcluding":"8.5.13"} | 8.5.13 |
References
CWEs
CWE-416 CWE-459
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.