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 release of the patch follows an advance notice in which the project maintainers alerted users to multiple critical vulnerabilities affecting all supported PHP versions under specific conditions, including non-default configuration or uncommon setups.
At a high level, successful exploitation of the defects could pave the way for remote code execution, session corruption, denial-of-service, memory corruption, or local privilege escalation.
Depthfirst, which has codenamed CVE-2026-126714 "phpAfterShell," has described it as a critical flaw that can enable a remote attacker to run arbitrary code on affected servers.
"If a pwrite()/ftruncate() update is interrupted, PHP may leave behind a malformed session file that is later loaded by session_start(), yielding an arbitrary deserialization primitive," Depthfirst said. "Chained with another of our PHP-native deserialization-to-RCE findings, this leads directly to remote code execution."
Put differently, the vulnerability turns an interrupted file write into a potential remote code execution primitive by manipulating how PHP writes session data to disk, causing it to interpret previously harmless data as executable object data.
It then exploits the unexpected session state where the PHP worker either dies while the write process is underway, leaving a partially updated file, or dies after the write is complete, but before content from the previous session is removed. Both scenarios lead to a mixture of two different session states.
"Depending on where the interruption happens, part of the new Session may already have been written while bytes from the previous Session remain on disk," security researcher Yuhang Wu said.
Source link







