BIT-libphp-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 to a fixed release 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?

Deployments using PHP 8.5 versions before 8.5.13 are affected. Exploitation requires requests to be handled by the same persistent PHP-FPM or mod_php worker across the shutdown-triggering request and a later request.

2

What configuration conditions are needed for exploitation?

The shutdown condition requires per-path configuration of max_memory_limit, or both zlib.output_compression and output_handler; .user.ini can set the latter pair. The later early diagnostic requires Apache per-directory configuration, or, with PHP-FPM, a PHP_VALUE or PHP_ADMIN_VALUE parameter supplied by the front end.

3

What can happen if the issue is exploited?

The stale fatal-error backtrace can be accessed after its request memory has been freed, causing memory corruption and worker crashes. Remote code execution may also be possible.

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