{
  "schema_version": "1.6.0",
  "id": "ACVE-2026-0520",
  "aliases": [],
  "published": "2026-08-05T00:00:00Z",
  "firstReported": {
    "date": "2026-08-05",
    "url": "https://www.reddit.com/r/ClaudeCode/comments/1vg18yu/claude_rm_rf_ed_my_pc/",
    "publisher": "u/Ecstatic-Big5126"
  },
  "modified": "2026-10-10T19:51:10Z",
  "summary": "Claude Code with Claude Opus 5, in bypass-permissions mode on Windows, recursively deleted part of a user's profile, including SSH keys, after mistaking it for a stray backup it had made.",
  "details": "## What\n\nThe operator asked Claude Opus 5 in Claude Code to create a backup, with permissions bypassed. The agent's backup command had a typo in the destination path: it wrote to the Unix-style /c/Users/... path instead of C:\\Users\\..., which is the same folder. Taking the profile for a stray folder it had created, the agent recursively deleted it \"to clean up my mistake\", then found that it was a real, populated user profile and that it should have asked before deleting anything there. Its damage check at the time showed .ssh deleted, including SSH private keys, while Documents (70,201 files) and Desktop still existed; the rest of the list is cut off in the operator's photo. The operator does not say whether anything was restored.\n\n## Detection\n\nThe lockfile records the Claude Code version and permission mode. Recorded from the operator's Reddit post, his replies in the thread and his photo of the session. Not recreated in a lab.\n\n## Fix\n\nRecursive deletion by an agent needs confirmation, and a backup task should not carry delete permission on the source.",
  "affected": [
    {
      "package": {
        "ecosystem": "AgentHarness",
        "name": "claude-code"
      },
      "ranges": [
        {
          "type": "SEMVER",
          "events": [
            {
              "introduced": "0"
            }
          ]
        }
      ]
    }
  ],
  "references": [
    {
      "type": "REPORT",
      "url": "https://www.reddit.com/r/ClaudeCode/comments/1vg18yu/claude_rm_rf_ed_my_pc/"
    },
    {
      "type": "EVIDENCE",
      "url": "https://i.redd.it/gxqv5gdumihh1.jpeg"
    },
    {
      "type": "REPORT",
      "url": "https://www.reddit.com/r/ClaudeCode/comments/1vg18yu/claude_rm_rf_ed_my_pc/p1w2s73/"
    },
    {
      "type": "REPORT",
      "url": "https://www.reddit.com/r/ClaudeCode/comments/1vg18yu/claude_rm_rf_ed_my_pc/p1w0jj5/"
    },
    {
      "type": "ARTICLE",
      "url": "https://www.tomshardware.com/tech-industry/artificial-intelligence/claude-opus-5-mistakenly-deletes-devs-entire-profile-directory-ai-tool-mistakes-users-home-directory-as-temporary-backup-proceeds-to-wipe-everything-to-undo-error"
    }
  ],
  "database_specific": {
    "severity": "HIGH",
    "acve": {
      "specVersion": 1,
      "status": "published",
      "kind": "behavioural",
      "vulnClasses": [
        "over-privileged-combination"
      ],
      "cwe": [
        "CWE-693"
      ],
      "taxonomy": {
        "owasp_asi": [
          "ASI02"
        ]
      },
      "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.tomshardware.com/tech-industry/artificial-intelligence/claude-opus-5-mistakenly-deletes-devs-entire-profile-directory-ai-tool-mistakes-users-home-directory-as-temporary-backup-proceeds-to-wipe-everything-to-undo-error"
        }
      ],
      "fix": {
        "summary": "Confirm recursive deletion; do not give a backup task delete permission on the source.",
        "actions": [
          {
            "type": "reconfigure",
            "target": "agent.approval",
            "to": "ask",
            "why": "The deletion ran without a person confirming the target.",
            "owner": "operator"
          },
          {
            "type": "reconfigure",
            "target": "anthropic.claude-code.bypassPermissions",
            "to": "confirmation before recursively deleting a user profile or home directory",
            "why": "Recommended: the agent deleted a real user profile it took for its own stray backup.",
            "owner": "harness-vendor"
          }
        ]
      },
      "exposure": {
        "harness": {
          "value": "Claude Code on Windows, running Unix-style shell commands (version not stated)",
          "any": false,
          "status": "confirmed",
          "source": "https://i.redd.it/gxqv5gdumihh1.jpeg"
        },
        "model": {
          "value": "Claude Opus 5",
          "any": false,
          "status": "confirmed",
          "source": "https://www.reddit.com/r/ClaudeCode/comments/1vg18yu/claude_rm_rf_ed_my_pc/"
        },
        "goal": {
          "value": "Create a backup",
          "stated": true,
          "status": "confirmed",
          "source": "https://www.reddit.com/r/ClaudeCode/comments/1vg18yu/claude_rm_rf_ed_my_pc/"
        },
        "tools": {
          "value": "Claude Code's shell tool, addressing the user profile through Unix-style /c/Users/ paths",
          "status": "confirmed",
          "source": "https://i.redd.it/gxqv5gdumihh1.jpeg"
        },
        "approval": {
          "value": "Bypass permissions mode: commands ran without confirmation",
          "mode": "auto-approve",
          "status": "confirmed",
          "source": "https://www.reddit.com/r/ClaudeCode/comments/1vg18yu/claude_rm_rf_ed_my_pc/p1w2s73/"
        },
        "inputControl": "operator",
        "agentAction": "The agent recursively deletes the user's profile directory to clean up what it believed was its own misplaced backup.",
        "harm": "data-loss",
        "divergence": "scope-exceeded",
        "reach": {
          "value": "The user's Windows profile directory; the agent's damage check showed .ssh deleted while Documents and Desktop still existed",
          "kinds": [
            "home-directory"
          ],
          "status": "confirmed",
          "source": "https://i.redd.it/gxqv5gdumihh1.jpeg"
        },
        "condition": {
          "value": "When the agent mistook the Unix-style path to the user's real profile for a stray folder its mistyped backup command had created",
          "status": "confirmed",
          "source": "https://i.redd.it/gxqv5gdumihh1.jpeg"
        },
        "recovery": {
          "value": "Not reported: the operator does not say whether anything was restored.",
          "outcome": "unknown",
          "status": "unconfirmed"
        }
      },
      "occurrence": {
        "basis": "real-use",
        "reportedBy": "operator",
        "primary": [
          {
            "url": "https://www.reddit.com/r/ClaudeCode/comments/1vg18yu/claude_rm_rf_ed_my_pc/",
            "kind": "operator-account",
            "party": "u/Ecstatic-Big5126"
          },
          {
            "url": "https://i.redd.it/gxqv5gdumihh1.jpeg",
            "kind": "agent-transcript",
            "party": "Claude Code session, photographed by u/Ecstatic-Big5126"
          },
          {
            "url": "https://www.reddit.com/r/ClaudeCode/comments/1vg18yu/claude_rm_rf_ed_my_pc/p1w2s73/",
            "kind": "operator-account",
            "party": "u/Ecstatic-Big5126"
          },
          {
            "url": "https://www.reddit.com/r/ClaudeCode/comments/1vg18yu/claude_rm_rf_ed_my_pc/p1w0jj5/",
            "kind": "operator-account",
            "party": "u/Ecstatic-Big5126"
          }
        ]
      },
      "exploitation": {
        "status": "none-known",
        "checkedAt": "2026-09-22T00:00:00Z",
        "sources": [
          {
            "url": "https://www.tomshardware.com/tech-industry/artificial-intelligence/claude-opus-5-mistakenly-deletes-devs-entire-profile-directory-ai-tool-mistakes-users-home-directory-as-temporary-backup-proceeds-to-wipe-everything-to-undo-error",
            "type": "news",
            "note": "operator account; 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://www.reddit.com/r/ClaudeCode/comments/1vg18yu/claude_rm_rf_ed_my_pc/",
          "note": "Matched to first-hand sources by the maintainer before publication."
        }
      ]
    }
  }
}
