OpenAI patches Codex bug that deleted users’ files
OpenAI has released a security update for Codex after several users reported that GPT-5.6 Sol was autonomously deleting files during operation. The company said a cleanup command intended for temporary working data could instead target real user files, including an entire home directory.
According to OpenAI, the problem occurred when the model used system variables such as $HOME for temporary folders. A faulty deletion command could then resolve to the user’s actual home directory. Codex has been changed to create fresh temporary folders and verify deletion targets before executing commands.
The update also introduces stricter checks for potentially dangerous deletion commands and prevents full-access mode from being enabled accidentally. OpenAI recommends that users select one of Codex’s sandbox modes and keep the application updated. The safeguards are intended to stop the same command-handling error from removing user data without confirmation.
Written by Sakhanda Wire AI from reporting by The Decoder. Facts, quotes and full context are in the original article below.