Security context

What an agent needs to avoid regressing past fixes and find the next vuln in this repo.

charmbracelet/crush
main @ 6b68930
10
Fixes
5
CVEs
HIGH
Peak severity
33.3%
Coverage
Highlights
Auth Bypass: 3 prior fixes. Scrutinize any change in this area.
internal/shell: most-fixed (2 issues). Treat as high-risk during review.
5 high-severity fixes in this history; regressions here are high-impact.
Recurring patterns

The bug types that recur here, drawn from past fixes, not open vulnerabilities.

Auth Bypass: LLM tools like edit, multiedit, and write bypass path restrictions when evaluating raw relative paths instead of canonicalized absolute paths, allowing unauthorized access to files outside the workspace directory.
Command Injection: The shell's command blocklist can be bypassed by injecting special flags with equals signs or using alternate flag ordering, letting unauthorized commands run.
Sandbox Escape: The bash tool could execute nested, arbitrary administrative commands or shell sub-commands chained to safe-listed read-only commands without prompting for permission.