Track vulnerabilities like this one. Sign up free to get alerted when software you use is affected.
9.9

CVE-2026-129182: PHP 8.5 may crash or be exploited after request ends

CVE-2026-129182 · published 14 days ago
Summary

Versions of PHP 8.5 before the latest update can mishandle error information when certain memory or compression settings are changed, causing the program to use memory that has already been cleared. This can lead to the PHP worker stopping unexpectedly or, in rare cases, allow an attacker to run code on the server. Upgrade PHP to the newest 8.5 release to stop the issue.

What to do
  • Update canonical php8.5 to version 8.5.9-0ubuntu2.2.
  • Update canonical php8.5 to version 8.5.4-0ubuntu1.6.
  • Update libphp to version 8.5.13.
  • Update php to version 8.5.13.
  • Update php-min to version 8.5.13.
  • Update php group php to version 8.5.13 or later.
Affected software
Ecosystem VendorProductAffected versions
– php group php < 8.5.13
Ubuntu:26.10 canonical php8.5 < 8.5.9-0ubuntu2.2
Fix: upgrade to 8.5.9-0ubuntu2.2
Ubuntu:26.04:LTS canonical php8.5 < 8.5.4-0ubuntu1.6
Fix: upgrade to 8.5.4-0ubuntu1.6
Bitnami – libphp >= 8.5.0, < 8.5.13
Fix: upgrade to 8.5.13
Bitnami – php >= 8.5.0, < 8.5.13
Fix: upgrade to 8.5.13
Bitnami – php-min >= 8.5.0, < 8.5.13
Fix: upgrade to 8.5.13
Original advisory text
Use-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.
Fix within
Internet-facing 14 days
Internal At next upgrade
  • Not known to be exploited
  • Needs hands-on effort to exploit
  • Gives an attacker full control
Severity
9.9 Critical
Exploitation
24% chance of attack within 30 days
Type
CWE-416Use After Free
CWE-459Incomplete Cleanup
Timeline
Published19 Nov 2026
Updated2 Dec 2026
First seen19 Nov 2026
Track software like this
Free during beta