Use-After-Free Vulnerability in PHP Affects Multiple Versions and Releases
CVE-2026-129496
Key Information:
Badges
What is CVE-2026-129496?
CVE-2026-129496 is a serious use-after-free vulnerability identified in multiple versions of the PHP programming language, which is widely used for web development and server-side scripting. This flaw arises from how timezone caches are managed in non-thread-safe builds of PHP. The issue occurs during module startup when diagnostics related to configuration warnings, such as invalid timezone settings, cause the allocation of memory that is subsequently freed while still being referenced. As a result, if a subsequent request accesses this freed memory, it can lead to critical consequences, including a denial of service via PHP-FPM, Apache mod_php, or CGI workers. More alarmingly, this vulnerability opens the door for remote code execution by an unauthenticated attacker, allowing for the possibility of executing arbitrary code within the affected systems.
The vulnerability affects various PHP versions, specifically those released prior to 8.2.36, and any versions in the 8.3., 8.4., and 8.5.* series that are older than their respective latest patch releases. Given PHP’s integral role in powering a vast number of websites and applications, the exploitation of CVE-2026-129496 could significantly impact organizations that rely on this technology for their operations.
Potential impact of CVE-2026-129496
-
Remote Code Execution: The primary consequence of this vulnerability is the potential for remote code execution, enabling attackers to run arbitrary commands on the server. This can result in unauthorized access to sensitive data, manipulation of data, and complete control over the web application environment.
-
Denial of Service (DoS): Attackers can exploit this vulnerability to crash PHP workers, leading to a denial of service. This can disrupt normal operations, making web applications unavailable to users and potentially causing significant business disruptions.
-
Data Breach Risks: The ability to execute arbitrary code could allow attackers to extract confidential information from the affected systems, leading to data breaches. Such incidents can result in financial losses, regulatory fines, and long-term damage to an organization’s reputation.
Affected Version(s)
PHP 0 < 8.2.36
PHP 8.3.0 < 8.3.37
PHP 8.4.0 < 8.4.28
Exploit Proof of Concept (PoC)
PoC code is written by security researchers to demonstrate the vulnerability can be exploited. PoC code is also a key component for weaponization which could lead to ransomware.
References
EPSS Score
8% chance of being exploited in the next 30 days.
CVSS V4
Timeline
- 🟡
Public PoC available
- 👾
Exploit known to exist
Vulnerability published
Vulnerability Reserved
