Use-after-free in PHP - CVE-2026-129481

 

Use-after-free in PHP - CVE-2026-129481

Published: November 19, 2026


Vulnerability identifier: #VU167923
CSH Severity: High
CVSS v4: 9.2 [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]
CVE-ID: CVE-2026-129481
CWE-ID: CWE-416
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to corrupt memory or crash a reused PHP worker and potentially execute arbitrary code, although code execution has not been demonstrated.

The vulnerability exists due to a heap use-after-free in PHP's session extension when a fatal error interrupts session shutdown and leaves a script filename pointer behind after the request heap is freed. A remote attacker can trigger the cleanup failure through an affected application path to corrupt memory when the same worker later releases the stale string during session startup or session-module shutdown.

The recorded script filename must be allocated on the request heap. A filename stored in persistent OPcache memory does not become a dangling pointer through this path.


Affected software

PHP
Fedora
php

How to mitigate CVE-2026-129481

Install security update from vendor's website.

PHP - addressed in versions 8.3.37, 8.4.28, 8.5.13
php - addressed in versions 8.4.28-2.fc43, 8.5.13-1.fc44, 8.5.13-1.fc45

External References

Related Security Bulletins