PHP Addresses Critical Vulnerabilities with Remote Code Execution Risks
The PHP Foundation has released updates to fix multiple critical vulnerabilities, including CVE-2026-115560 and CVE-2026-129182, which could allow remote code execution and memory corruption.
Overview of Critical Vulnerabilities in PHP
The PHP Foundation has released security updates to address multiple critical security flaws that could be exploited to achieve remote code execution on affected deployments, including CVE-2026-115560. The list of vulnerabilities includes CVE-2026-115560 (CVSS score: 9.2), an improper input validation vulnerability that could result in remote code execution, file modification, session corruption, or denial-of-service. This vulnerability was fixed in PHP versions 8.2.36, 8.3.37, 8.4.28, 8.5.13, and 8.6.0. Another critical flaw, CVE-2026-129182 (CVSS score: 9.2), is a use-after-free vulnerability that could result in memory corruption and possible full remote code execution, as in the case of CVE-2026-109619.
Details of Specific Vulnerabilities and Their Fixes
PHP has addressed seven critical vulnerabilities in its latest updates, including flaws that could allow remote code execution. One of the most severe issues is CVE-2026-126714, a Time-of-check Time-of-use (TOCTOU) vulnerability fixed in PHP 8.5.13 and 8.6.0. This flaw could enable the execution of arbitrary code with the privileges of the PHP worker. Another critical vulnerability, CVE-2026-129289, fixed in multiple PHP versions including 8.2.36 and 8.3.37, involves an inconsistent interpretation of HTTP requests, potentially allowing attackers to execute PHP code without user interaction. Additionally, CVE-2026-129474, a use-after-free vulnerability fixed in PHP 8.5.13 and later, could lead to remote code execution on PHP 8.5 and later versions. These fixes highlight the importance of timely updates to mitigate potential security risks.
Exploitation Requirements and Impact of Vulnerabilities
Exploitation of the vulnerabilities addressed in PHP's latest update requires specific conditions to be met. According to The Hacker News, attackers must have influence over session data and be able to interrupt the write process at a critical moment, while also having access to a deserialization gadget chain within the application. The Hacker News highlights that exploitation is possible only in environments with a front end that supports persistent backend connections, such as nginx with fastcgi_keep_conn enabled, Apache mod_proxy_fcgi with enablereuse=on, HAProxy FastCGI applications that retain backend connections, or LSAPI. Additionally, The Hacker News notes that successful exploitation depends on the application's configuration and requires control over request data to influence memory allocation, a reachable magic method call, and a fatal error occurring at a specific point in the execution flow.
Additional Vulnerabilities and Their Fixes
In addition to the previously mentioned vulnerabilities, PHP has addressed several critical flaws in its latest updates. One such issue is CVE-2026-129481, fixed in PHP 8.5.13 and 8.6.0, which involves a use-after-free vulnerability that could lead to session cleanup failures, memory corruption, or even remote code execution. Another critical fix addresses CVE-2026-129496, also fixed in PHP 8.5.13 and 8.6.0, which could allow an unauthenticated remote attacker to crash PHP workers or execute arbitrary code with their privileges. Additionally, CVE-2026-129291, fixed in PHP 8.2.36 and later versions, presents a use-after-free vulnerability that could enable local privilege escalation. These fixes highlight the importance of timely updates to mitigate potential security risks.
Third-Party Analysis and Description of CVE-2026-126714
A third-party analysis of CVE-2026-126714, codenamed "phpAfterShell," highlights a critical vulnerability in PHP that could allow remote code execution. According to Depthfirst, the flaw arises when a pwrite()/ftruncate() update is interrupted, potentially leaving behind a malformed session file. This malformed file may be later loaded by session_start(), resulting in an arbitrary deserialization primitive. Depthfirst noted that this issue, when combined with another PHP-native deserialization-to-RCE finding, could directly enable remote code execution. The vulnerability affects any application using an affected PHP version with file-based sessions. PHP has released updates to address this issue, including versions 8.2.36, 8.3.37, 8.4.28, 8.5.13, and 8.6.0.
Sources and reporting notes
Based on published source material. No independent hands-on testing is claimed.