Use-after-free via repopulation of last_fatal_error_backtrace global after shutdown
CVE-2026-129182Published 19 Nov 2026, 14:41 UTC
Real-world risk
4.1/ 10Medium
Schedule in the normal cycle
If the vulnerable configuration applies to you: 9.0
PreliminaryFrom the CVSS vector only · confidence low
CVSS
9.2
scored by the vendor (CNA), CVSS 4.0
In plain words
No plain-language summary yet. The original description is below.
Original description (from php)
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.
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| PHPUbiquitous | >= 8.5.0, < 8.5.13 | 8.5.13 |
What to do
Update to a fixed version: 8.5.13.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | Full compromiseCode execution or full control of the system or application | From the CVSS vector | 1.00 |
| Attacker position | InternetAnyone on the Internet can reach a typical deployment | From the CVSS vector | 1.00 |
| Privileges needed | NoneNo account | From the CVSS vector | 1.00 |
| Victim interaction | NoneNothing | From the CVSS vector | 1.00 |
| Configuration | UncommonNeeds a non-default feature that a minority enables | From the CVSS vector | 0.45 |
| Reliability | ReliableDeterministic: injection, logic bug, path traversal | From the CVSS vector | 1.00 |
Threat level T2: Likely to be exploited (× 0.90)
EPSS probability at least 0.10, or EPSS percentile at least 0.95
EPSS 24.0% chance of exploitation in 30 days (percentile 98), as of 2026-12-04.
The arithmetic
- Prerequisites multiplied together0.450
- Threat T2: Likely to be exploited0.900
- 10 × impact 1 × prerequisites 0.45 × threat 0.94.050
- Rounded to one decimal between 0.1 and 104.1
Exploitation and evidence timeline
- 19 Nov 2026 Published
- 3 Dec 2026 Risk 4.1 (cvss fallback)
Weakness
CWE-416, CWE-459