Bash permission allow patterns don't validate compound commands (&&, ||, ;)
Status Fixed / completed
Maintainer reply None cached
Activity 4 comments · opened Feb 21, 2026 · closed Feb 21, 2026
Closed as Duplicate of:
- #16180
- #16561
- #13371
4 Comments
Found 3 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
Additional finding: model-level guardrails may mask the pattern issue
We attempted to reproduce the bypass from within Claude Code but couldn't — the model's safety layer strips or refuses to construct
cd <allowed-path> && <unauthorized-command>compound commands before they ever reach the permission pattern matching.This is good defense-in-depth, but:
The core issue remains: permission patterns should parse compound commands and validate each sub-command independently.
Closing — model-level guardrails prevent constructing the bypass in practice. The pattern matching concern remains valid in theory but we couldn't reproduce an actual exploit. Reopening if a concrete bypass is found.
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.