BIT-php-2026-129182: Use-after-free via repopulation of last_fatal_error_backtrace global after shutdown

Published Nov 27, 2026
·
Updated

Use-after-free via repopulation of lastfatalerrorbacktrace 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 modphp worker can access the stale backtrace. The shutdown error requires per-path configuration of maxmemorylimit, or of zlib.outputcompression together with outputhandler (which .user.ini can also set). The early diagnostic requires Apache per-directory configuration or, for PHP-FPM, a PHPVALUE or PHPADMINVALUE 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.

Affected Software

3 affected componentsFixes available
bitnami/libphp>=8.5.0<8.5.13
8.5.13
bitnami/php>=8.5.0<8.5.13
8.5.13
bitnami/php-min>=8.5.0<8.5.13
8.5.13

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade bitnami/libphp to a version that resolves this vulnerability.

    Fixed in 8.5.13
  2. Upgrade

    Upgrade bitnami/php to a version that resolves this vulnerability.

    Fixed in 8.5.13
  3. Upgrade

    Upgrade bitnami/php-min to a version that resolves this vulnerability.

    Fixed in 8.5.13
  4. Upgrade

    Upgrade php/php to a version that resolves this vulnerability.

    Fixed in 8.5.13

Event History

Nov 27, 2026
Advisory Published
via OSV·05:47 AM
Data Sourced
via OSV·05:47 AM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

Which deployments are exposed to this issue?

Affected deployments use PHP 8.5 versions before 8.5.13 and process more than one request in the same PHP-FPM or mod_php worker. Exploitation depends on configuration paths available in the relevant PHP-FPM or Apache deployment.

2

What conditions are required for exploitation?

A fatal error must occur during request shutdown while modified INI settings are restored. This requires per-path max_memory_limit configuration, or zlib.output_compression together with output_handler; .user.ini can also set the latter combination. A later request to the same worker must trigger an early diagnostic through Apache per-directory configuration or, with PHP-FPM, a PHP_VALUE or PHP_ADMIN_VALUE parameter supplied by the front end.

3

What can be done if an update is not immediately available?

Remove or avoid the configuration combinations needed to trigger the shutdown error, particularly per-path max_memory_limit and zlib.output_compression used with output_handler. Also prevent the front end from supplying PHP_VALUE or PHP_ADMIN_VALUE to PHP-FPM, and review Apache per-directory PHP configuration that can produce early diagnostics.

4

What impact should operators expect if the issue is triggered?

The stale backtrace can be accessed after request memory has been freed, causing memory corruption and worker crashes. The issue may also permit remote code execution.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203