{
  "schema_version": "1.6.0",
  "id": "ACVE-2026-0518",
  "aliases": [],
  "published": "2026-07-10T00:00:00Z",
  "firstReported": {
    "date": "2026-07-10",
    "url": "https://x.com/mattshumer_/status/2075657271401390161",
    "publisher": "Matt Shumer"
  },
  "modified": "2026-10-10T14:53:16Z",
  "summary": "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.",
  "details": "## What\n\nMatt 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.\n\n## Detection\n\nThe 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.\n\n## Fix\n\nDo not run coding tasks in full-access mode, and keep recursive deletion behind confirmation.",
  "affected": [
    {
      "package": {
        "ecosystem": "AgentHarness",
        "name": "codex-cli"
      },
      "ranges": [
        {
          "type": "SEMVER",
          "events": [
            {
              "introduced": "0"
            }
          ]
        }
      ]
    }
  ],
  "references": [
    {
      "type": "REPORT",
      "url": "https://x.com/mattshumer_/status/2075657271401390161"
    },
    {
      "type": "EVIDENCE",
      "url": "https://pbs.twimg.com/media/HM43Sa1W8AAaqbV.jpg?name=orig"
    },
    {
      "type": "REPORT",
      "url": "https://x.com/mattshumer_/status/2075658464357998706"
    },
    {
      "type": "REPORT",
      "url": "https://x.com/mattshumer_/status/2075660256076505253"
    },
    {
      "type": "REPORT",
      "url": "https://x.com/mattshumer_/status/2075665244500677120"
    },
    {
      "type": "REPORT",
      "url": "https://x.com/thsottiaux/status/2077630111499882637"
    },
    {
      "type": "REPORT",
      "url": "https://deploymentsafety.openai.com/gpt-5-6/forecasting-misaligned-behavior-with-deployment-simulation-of-internal-traffic"
    },
    {
      "type": "ARTICLE",
      "url": "https://www.theregister.com/ai-and-ml/2026/07/16/openai-admits-gpt-56-occasionally-deletes-files-but-its-an-honest-mistake/5274008"
    },
    {
      "type": "ARTICLE",
      "url": "https://techcrunch.com/2026/07/14/openais-new-flagship-model-deletes-files-on-its-own-people-keep-warning/"
    }
  ],
  "database_specific": {
    "severity": "HIGH",
    "acve": {
      "specVersion": 1,
      "status": "published",
      "kind": "behavioural",
      "vulnClasses": [
        "over-privileged-combination",
        "unsafe-permission-mode"
      ],
      "cwe": [
        "CWE-693"
      ],
      "taxonomy": {
        "owasp_asi": [
          "ASI02",
          "ASI03"
        ]
      },
      "noCveReason": "No code defect: the harm arises from the agent pursuing its goal in this configuration.",
      "cveBoundary": "behavioural",
      "threat": {
        "attacker": "user",
        "vector": "unsafe-default",
        "outcome": "file-write"
      },
      "evidence": [
        {
          "kind": "incident",
          "url": "https://www.theregister.com/ai-and-ml/2026/07/16/openai-admits-gpt-56-occasionally-deletes-files-but-its-an-honest-mistake/5274008"
        }
      ],
      "fix": {
        "summary": "Avoid full-access mode for routine tasks and confirm recursive deletion.",
        "actions": [
          {
            "type": "reconfigure",
            "target": "agent.approval",
            "to": "ask",
            "why": "Full-access mode let the deletion run without confirmation.",
            "owner": "operator"
          },
          {
            "type": "reconfigure",
            "target": "openai.codex.fullAccess",
            "to": "confirmation before a recursive delete outside the workspace",
            "why": "Recommended: a subagent's cleanup expanded $HOME wrongly and deleted the home directory unprompted.",
            "owner": "harness-vendor"
          },
          {
            "type": "reconfigure",
            "target": "openai.codex.autoReview",
            "to": "on by default in Full access mode",
            "why": "Recommended: OpenAI found such deletions most often in Full access mode without auto-review.",
            "owner": "harness-vendor"
          }
        ]
      },
      "exposure": {
        "harness": {
          "value": "Codex in Full access mode (version not stated)",
          "any": false,
          "status": "confirmed",
          "source": "https://x.com/mattshumer_/status/2075665244500677120"
        },
        "model": {
          "value": "GPT-5.6 Sol",
          "any": false,
          "status": "confirmed",
          "source": "https://x.com/mattshumer_/status/2075657271401390161"
        },
        "goal": {
          "value": "Any ordinary coding task; the operator sums up his prompt as \"get xyz done\"",
          "stated": false,
          "status": "confirmed",
          "source": "https://x.com/mattshumer_/status/2075660256076505253"
        },
        "tools": {
          "value": "Shell access on the operator's Mac, used by review subagents for cleanup commands",
          "status": "confirmed",
          "source": "https://pbs.twimg.com/media/HM43Sa1W8AAaqbV.jpg?name=orig"
        },
        "approval": {
          "value": "Full access mode: commands ran without confirmation or auto-review",
          "mode": "auto-approve",
          "status": "confirmed",
          "source": "https://x.com/mattshumer_/status/2075665244500677120"
        },
        "inputControl": "operator",
        "agentAction": "A review subagent's cleanup command expands $HOME incorrectly and recursively deletes the operator's home directory, taking most of the Mac's files.",
        "harm": "data-loss",
        "divergence": "shortcut",
        "reach": {
          "value": "The operator's home directory, holding almost all of his Mac's files",
          "kinds": [
            "home-directory"
          ],
          "status": "confirmed",
          "source": "https://pbs.twimg.com/media/HM43Sa1W8AAaqbV.jpg?name=orig"
        },
        "condition": {
          "value": "When a review subagent's cleanup command expanded $HOME incorrectly, so the delete hit the real home directory",
          "status": "confirmed",
          "source": "https://pbs.twimg.com/media/HM43Sa1W8AAaqbV.jpg?name=orig"
        },
        "recovery": {
          "value": "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.",
          "outcome": "unknown",
          "status": "confirmed",
          "source": "https://x.com/mattshumer_/status/2075658464357998706"
        }
      },
      "occurrence": {
        "basis": "real-use",
        "reportedBy": "operator",
        "primary": [
          {
            "url": "https://x.com/mattshumer_/status/2075657271401390161",
            "kind": "operator-account",
            "party": "Matt Shumer (@mattshumer_)"
          },
          {
            "url": "https://pbs.twimg.com/media/HM43Sa1W8AAaqbV.jpg?name=orig",
            "kind": "agent-transcript",
            "party": "Codex session, published by Matt Shumer"
          },
          {
            "url": "https://x.com/mattshumer_/status/2075658464357998706",
            "kind": "operator-account",
            "party": "Matt Shumer (@mattshumer_)"
          },
          {
            "url": "https://x.com/mattshumer_/status/2075660256076505253",
            "kind": "operator-account",
            "party": "Matt Shumer (@mattshumer_)"
          },
          {
            "url": "https://x.com/mattshumer_/status/2075665244500677120",
            "kind": "operator-account",
            "party": "Matt Shumer (@mattshumer_)"
          },
          {
            "url": "https://x.com/thsottiaux/status/2077630111499882637",
            "kind": "vendor-report",
            "party": "Thibault Sottiaux, OpenAI Codex (@thsottiaux)"
          },
          {
            "url": "https://deploymentsafety.openai.com/gpt-5-6/forecasting-misaligned-behavior-with-deployment-simulation-of-internal-traffic",
            "kind": "vendor-report",
            "party": "OpenAI (GPT-5.6 system card)"
          }
        ],
        "responses": [
          {
            "party": "OpenAI",
            "status": "acknowledged",
            "statement": "OpenAI's Thibault Sottiaux called it an honest mistake.",
            "source": "https://www.theregister.com/ai-and-ml/2026/07/16/openai-admits-gpt-56-occasionally-deletes-files-but-its-an-honest-mistake/5274008"
          },
          {
            "party": "OpenAI (Thibault Sottiaux, Codex)",
            "status": "acknowledged",
            "statement": "Said OpenAI investigated a handful of reports, most often in Full access mode without auto-review, where the model overrides $HOME for a temporary directory and deletes $HOME instead; promised a developer-message update, safer permission modes and harness safeguards.",
            "source": "https://x.com/thsottiaux/status/2077630111499882637"
          }
        ]
      },
      "exploitation": {
        "status": "none-known",
        "checkedAt": "2026-09-22T00:00:00Z",
        "sources": [
          {
            "url": "https://techcrunch.com/2026/07/14/openais-new-flagship-model-deletes-files-on-its-own-people-keep-warning/",
            "type": "news",
            "note": "user accounts and vendor statements; no attacker"
          }
        ],
        "kev": {
          "listed": false
        }
      },
      "claims": [],
      "reproducibility": {
        "status": "partial",
        "axesComplete": true,
        "componentsObtainable": null,
        "triggerPublished": true,
        "observableStated": true,
        "demonstrated": "reported-only",
        "missing": [
          "model availability not checked (no registry reference)"
        ]
      },
      "severityBasis": "harm-reach",
      "validatedBy": [
        {
          "who": "PickBits",
          "date": "2026-10-10",
          "method": "review",
          "evidence": "https://x.com/mattshumer_/status/2075657271401390161",
          "note": "Matched to first-hand sources by the maintainer before publication."
        }
      ]
    }
  }
}
