OpenAI's GPT-5.6 Codex Bug Deletes User Files When Attempting to Override $HOME Environment Variable
OpenAI has identified a critical bug in GPT-5.6's Codex implementation that causes unexpected file deletions. According to Thibault Sottiaux, the issue occurs when the model attempts to override the $HOME environment variable to define a temporary directory but mistakenly deletes $HOME instead, particularly when full access mode is enabled without sandboxing protections.
GPT-5.6 Codex Bug Deletes User Files
OpenAI has confirmed a critical bug in GPT-5.6's Codex implementation that causes the model to delete user files under specific conditions.
The Bug
According to Thibault Sottiaux, OpenAI has investigated multiple reports of GPT-5.6 unexpectedly deleting files. The issue occurs when:
- Full access mode is enabled
- Codex runs without sandboxing protections
- Auto review is not enabled
- The model attempts to override the
$HOMEenvironment variable to define a temporary directory - The model makes an "honest mistake" and mistakenly deletes
$HOMEinstead
Sottiaux describes the bug as "pretty gnarly," indicating its severity and complexity.
Technical Context
The bug appears to stem from the model's attempt to manage temporary directories by overriding system environment variables. When the $HOME variable override fails or is mishandled, the deletion operation targets the actual home directory rather than the intended temporary location.
The issue specifically affects deployments running Codex without proper sandboxing protections—a configuration that gives the AI model broader file system access but removes critical safety guardrails.
What This Means
This bug highlights fundamental challenges in giving AI coding assistants file system access. The issue is particularly concerning because it occurs through what Sottiaux characterizes as an "honest mistake" by the model, rather than intentional behavior or adversarial manipulation.
The fact that this happens specifically when auto review is disabled suggests OpenAI implemented safety mechanisms that would have caught these operations, but users running in full access mode without these protections are vulnerable. Organizations deploying GPT-5.6 Codex should immediately verify that sandboxing and auto review features are enabled, or restrict file system access until a fix is deployed.
OpenAI has not yet announced a timeline for a patch or whether affected versions will be rolled back.
Related Articles
OpenAI to watermark ChatGPT and Codex text in the EU with textGrain; API watermarking is opt-in worldwide
OpenAI will switch on invisible text watermarks called textGrain for ChatGPT and Codex users in the EU over the coming weeks. API watermarking will be opt-in worldwide, unlike Anthropic's mandatory approach for Claude. OpenAI's own data shows detection drops sharply when text is edited.
GPT-6 Astra Ultrafast Claims Up to 8x Faster Token Generation on NVIDIA Blackwell GPUs
GPT-6 Astra Ultrafast, running on NVIDIA Blackwell GPUs, is available now in the OpenAI API and to eligible ChatGPT Work and Codex users. NVIDIA says it generates tokens up to 8x faster than Astra Standard mode. Pricing and context window details were not disclosed in the source.
Mathematicians' group calls for OpenAI boycott after release of 700+ AI-generated proof files
The Association for Human Mathematics (AHM), chaired by Fields Medalist Terence Tao, is urging mathematicians to stop working with OpenAI after the company released more than 700 AI-generated manuscripts at once. The group says the release violates scientific norms. Critics say many of the papers are too dense to verify without AI assistance.
Only 10 of OpenAI's 719 math manuscripts include chain of thought, falling short of expert guidelines
OpenAI released 719 manuscripts claiming solutions to open math problems, but only 10 include the model's chain of thought. A Cambridge and King's College London paper also documents at least two discrepancies between the natural-language and Lean versions of OpenAI's Navier-Stokes-derived result.
Comments
Loading...