A vulnerability in libphp's session file handling allows partially overwritten session files to lead to remote code execution. This occurs because the default session save handler writes updated session data without clearing the file first, potentially causing mixed old and new session data to be unserialized as objects. An attacker able to influence session data and interrupt writes can inject malicious objects, leading to code execution if suitable gadget chains exist. This affects PHP versions before 8.2.36, 8.3.37, 8.4.28, and 8.5.13.