CVE-2026-129182 PHP - Use After Free

PHP 8.5.* < 8.5.13 contains a use-after-free vulnerability caused by repopulation of last_fatal_error_backtrace global after shutdown, letting remote attackers cause memory corruption and potential remote code execution, exploit requires specific configuration of max_memory_limit or zlib.output_compression with output_handler and Apache or PHP-FPM parameters.

CVSS base score 9.2 /10
Critical
CISA KEV
Not listed
Public exploit
None known
EPSS
11.01% chance of exploitation in 30 days
View the NVD record ↗

Details

Type
Use After Free
Impact
Remote Code Execution, Denial Of Service
CVSS vector
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
Published
19 November 2026
Updated
21 November 2026
Weakness
CWE-416

Vendor fix

Update to PHP version 8.5.13 or later.

Patching closes this CVE. It does not tell you which of your systems run the affected version, or what else is exposed alongside them.

References

← All CVEs