## Overview
PHP has released security updates addressing multiple vulnerabilities, including CVE-2026-129496, a critical issue that can lead to remote code execution. This vulnerability affects non-thread-safe builds of PHP, specifically versions prior to 8.2.36, 8.3.* before 8.3.37, 8.4.* before 8.4.28, and 8.5.* before 8.5.13.
## Technical Details
The vulnerability arises during the module startup when a diagnostic message is written to a file-based error_log. This can occur for issues like an invalid date.timezone value or session configuration warnings. The timezone cache is allocated in startup memory but is freed while a reference to it is still held. If a diagnostic is raised during the first request of a worker, such as a max_input_vars warning, it can access the freed cache. This scenario allows an unauthenticated remote attacker to crash PHP-FPM, Apache mod_php, or CGI workers with a crafted request. Known memory addresses can be exploited to execute arbitrary code.
## Impact
Successful exploitation of this vulnerability can lead to remote code execution, allowing attackers to execute arbitrary code on affected systems. This poses a significant risk, especially in environments where PHP is used to handle web requests.
## Mitigation
Defenders should immediately update to the latest versions of PHP: 8.2.36, 8.3.37, 8.4.28, or 8.5.13. Organizations should review their PHP deployments and ensure they are not using vulnerable versions. Regularly applying security updates is crucial to mitigate risks associated with vulnerabilities like CVE-2026-129496. According to reports, PHP has addressed this and other vulnerabilities in recent updates, emphasizing the need for prompt action.
CSURFACE Threat Sensor