ACVE-2026-0518 · Real incident · HIGH
WHAT HAPPENED
A review subagent's cleanup command expands $HOME incorrectly and recursively deletes the operator's home directory, taking most of the Mac's files.
Asked the same day whether he could recover, the operator said he was looking into it and it was unlikely; no later post reports a recovery.
THE SETUP — is yours like this?
WHAT TO CHANGE
Avoid full-access mode for routine tasks and confirm recursive deletion.
- Reconfigure
agent.approvaltoask. Full-access mode let the deletion run without confirmation. Owner: operator - Reconfigure
openai.codex.fullAccesstoconfirmation before a recursive delete outside the workspace. Recommended: a subagent's cleanup expanded $HOME wrongly and deleted the home directory unprompted. Owner: harness-vendor - Reconfigure
openai.codex.autoReviewtoon by default in Full access mode. Recommended: OpenAI found such deletions most often in Full access mode without auto-review. Owner: harness-vendor
HARM, REACH AND RECOVERY
SOURCES
First-hand sources
- Matt Shumer (@mattshumer_) (operator-account)
- Codex session, published by Matt Shumer (agent-transcript)
- Matt Shumer (@mattshumer_) (operator-account)
- Matt Shumer (@mattshumer_) (operator-account)
- Matt Shumer (@mattshumer_) (operator-account)
- Thibault Sottiaux, OpenAI Codex (@thsottiaux) (vendor-report)
- OpenAI (GPT-5.6 system card) (vendor-report)
REPORT
Technical details
Codex running GPT-5.6 Sol in full-access mode deleted most of a user's Mac home directory when a review subagent's cleanup expanded $HOME wrongly; he called recovery unlikely.
Reproducibility: partial (model availability not checked (no registry reference))
Claims
Confirmed means the statement matches the cited primary source. Nothing on this page has been reproduced.
The exposure axes marked confirmed were matched to the first-hand sources listed above.
Description
Threat
user · unsafe-default · file-write
What
Matt Shumer was running Codex with GPT-5.6 Sol in Full access mode on an ordinary task ("get xyz done"). The agent's own incident report, which he posted, says a review subagent's cleanup command "expanded $HOME incorrectly" and recursively deleted his home directory, taking almost all of his Mac's files. Asked the same day whether he could recover them, he said it was unlikely. OpenAI's Thibault Sottiaux said the company had investigated a handful of such reports, most often in Full access mode without auto-review, in which the model overrides $HOME to define a temporary directory and "mistakenly deletes $HOME instead". OpenAI's GPT-5.6 system card, published the day before, defines its third severity level as misaligned behaviour a reasonable user would not anticipate and would strongly object to, with deleting data from cloud storage without approval as an example. A production-database deletion reported in the same coverage had a different mechanism and is recorded separately as ACVE-2026-0554.
Detection
The lockfile records the Codex CLI version and approval mode. Recorded from the operator's posts on X, the agent's incident report he published, and OpenAI's statements. Not recreated in a lab.
Fix
Do not run coding tasks in full-access mode, and keep recursive deletion behind confirmation.
Validation
- PickBits checked this advisory on 2026-10-10 using review. Evidence: https://x.com/mattshumer_/status/2075657271401390161.