Skip to content
Threat Brief

← All advisories

CVE-2026-129182

Critical 9.2No known exploitationFix available

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

Record last updated

CVSS score

9.2

Critical on a 0 to 10 scale

EPSS, chance of exploitation in 30 days

11%

Higher than 96% of scored CVEs. A prediction, not evidence.

CISA remediation deadline

None

Not in the KEV catalog

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.

Weakness: CWE-416, CWE-459

Patching and mitigation

Patch status
Fix available (source: CVE record (php))
Fix documented (source date)
Mitigation
None documented
Vendor guidance
github.com (opens in a new tab)

Affected products

VendorProductAffected versionsFixed inPer
PHP GroupPHPfrom 8.5.0 before 8.5.138.5.13CVE Program

Timeline

  1. Disclosure

    CVE record published by php

    Source: CVE Program (opens in a new tab)

  2. Patch

    Fix documented by CVE record (php)

    Source: CVE record (php) (opens in a new tab)

Vendor guidance and references