sadrobot

← Back to the monthly list

CVE-2026-129182 PHP Group · PHP

9.2 Critical

AI summary

In PHP 8.5.* before 8.5.13, a fatal error during request shutdown INI restoration can repopulate the last_fatal_error_backtrace global, which a later request on the same PHP-FPM or mod_php worker accesses after it is freed. With specific per-path configuration (e.g. max_memory_limit, zlib.output_compression with output_handler, or PHP_VALUE), this can cause memory corruption, worker crashes and possibly remote code execution. Critical (CVSS 9.2): update to 8.5.13.

Official 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.

Published
2026-11-19 15:17 UTC
Modified
2026-11-20 15:17 UTC
CVSS
9.2 Critical 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
EPSS
0.67% (percentile 47)
ENISA EUVD
EUVD-2026-130122
CISA SSVC
Exploitation: none · Automatable: no · Technical impact: total
CWE
CWE-416

CVSS vector

Attack vector
network
Attack complexity
low
Attack requirements
present
Privileges required
none
User interaction
none
Confidentiality
high
Integrity
high
Availability
high

References