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

 

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

Published: November 19, 2026


Vulnerability identifier: #VU167915
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-129496
CWE-ID: CWE-416
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to crash a PHP worker and potentially execute arbitrary code with that worker's privileges.

The vulnerability exists due to a use-after-free in PHP's timezone cache when a diagnostic logged to a file during process startup leaves a stale cache reference that a later diagnostic accesses before the date extension resets it. A remote attacker can trigger a diagnostic during early request initialization to corrupt memory, crash the worker, or potentially execute arbitrary code.

In FPM and Apache mod_php, workers can inherit the stale reference from the parent process. The vulnerable window lasts until the worker completes its first normal request.


Affected software

PHP
Debian Linux
Fedora
php
php8.4 (Debian package)

How to mitigate CVE-2026-129496

Install security update from vendor's website.

PHP - addressed in versions 8.2.36, 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
php8.4 (Debian package) - update to 8.4.28-1~deb13u1

External References

Related Security Bulletins