Skip to content
This repository was archived by the owner on May 15, 2026. It is now read-only.
This repository was archived by the owner on May 15, 2026. It is now read-only.

[BUG] [SECURITY] [CRITICAL] Auto-Approve: Denied command filter bypass #12292

Description

@PlanBernhard

Problem (one or two sentences)

The agent ignores the denied command rm, he bypasses it with such code:

cat > verify-hook-install.nu << 'HEREDOC'
use scripts/development/modules/nu/install_hooks.nu [install-git-hooks]
let project_root = ($env | get -o FILE_PWD | default (pwd))
install-git-hooks $project_root
HEREDOC
nu verify-hook-install.nu && rm verify-hook-install.nu

Context (who is affected and when)

Everyone

Reproduction steps

  1. Open Settings -> Auto Approve
  2. Write inside "Denied Commands" the word "rm" -> Add
  3. Press "Save"
  4. Now the agent is still be able to use rm without approval

Expected result

Asking for approval

Actual result

The agent could execute the code without approval

Variations tried (optional)

No response

App Version

Version: 3.53.0 (44f6bba)

API Provider (optional)

None

Model Used (optional)

No response

Roo Code Task Links (optional)

No response

Relevant logs or errors (optional)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions