A vulnerability in PHP session file handling allows partially overwritten session files to lead to remote code execution. The default session save handler writes updated session data without clearing the file first, which can cause mixed old and new session data if a write is interrupted. An attacker able to influence session data and interrupt writes can inject objects that may be unserialized, potentially triggering code execution if the application has suitable gadget chains. This affects PHP versions before 8.2.36, 8.3.37, 8.4.28, and 8.5.13.