CVE-2026-129182 Use-after-free via repopulation of last_fatal_error_backtrace global after shutdown
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: total
- Technology
- PHPUbuntuDebianRed Hat
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.
Upgrade path
6 packages: 1 fixed, 5 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| redhat/php(Red Hat hummingbird 1) | All versions | No fix listed | No fix yet |
| ubuntu/php8.1(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/php8.3(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/php8.5(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/php8.5(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| PHP | >= 8.5.0, < 8.5.13 | 8.5.13 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| ubuntu/php8.1(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/php8.3(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/php8.5(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/php8.5(Ubuntu:26.10) | All versions | No fix listed |
| PHP | >= 8.5.0, < 8.5.13 | 8.5.13 |
| redhat/php(Red Hat:hummingbird:1) | All versions | No fix listed |
References
- github.com vendor-advisory
- Red Hat CVE page mitigation vendor-advisory
- Red Hat Bugzilla 2576579 issue-tracking
- www.cve.org
- nvd.nist.gov
- Debian Security Tracker CVE-2026-129182 vendor-advisory
- ENISA EUVD EUVD-2026-130122 third-party-advisory
- Ubuntu CVE tracker vendor-advisory