[Bug] Dangerous rm Command Execution with Unintended Path Parsing

Resolved 💬 4 comments Opened Sep 7, 2025 by woodsyb Closed Jan 8, 2026

Bug Description
I had claude working within my code repo. I asked it to clean the repo up. It tried to run a rm command with a bunch of folders.. ie
rm /folder1/ /folder2/ c: /logs/ when I didn't catch that it had put a space between c: and logs I pressed okay on the command. It was trying to clean up some bogus c:\program files\somefolder\somepqaruet.parquet folder structure it created INSIDE my working directory. In explorer this looked like C with a box after it.. like a bad Unicode char or something. But when it ran the rm c: it removed my c drive, or tried to. I noticed it was failing to delete a bunch of windows locations.. I canceled but by then it was too late. It had deleted pretty much everything else that it could, including ALL of my user directory files.

Environment Info

  • Platform: win32
  • Terminal: windows-terminal
  • Version: 1.0.108
  • Feedback ID: 1880c490-b781-4378-b247-d1ae65c161c6

Errors

[]

View original on GitHub ↗

This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗