← VULNERABILITIES

CVE-2026-129182

Use-after-free via repopulation of last_fatal_error_backtrace global after shutdown

Critical · 9.2Fix available
CVSS
9.2
EPSS
23.98% (p98)
Published
2026-11-19
Age
15d old
Modified
2026-11-24
Product
PHP Group PHP
Aliases
GHSA-2fjv-p558-g82m

CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

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.

Fixed in

8.5.13

Affected packages

EcosystemPackageRangeFixed
vendorPHP>=8.5.0, <8.5.138.5.13

Sources

  • NVD · first seen 15d ago · NVD terms of use
  • OSV · first seen 10d ago · CC-BY 4.0
  • CVE List · first seen 15d ago · CVE Terms of Use

References

JSON