mistral-vibe: Mistral Vibe < 2.25.5 Permission Bypass via Bash Line Continuation
What fixes it
- 2.25.5mistral-vibeCVE List
A fixed version on one release line is not the upgrade target for every line. Check your exact version and any vendor backports.
Description
Mistral Vibe before 2.25.5 contains a permission validation bypass vulnerability that allows attackers to execute unauthorized commands by exploiting a parsing discrepancy between tree-sitter-bash and bash in handling backslash-newline line continuations in the _extract_commands() function of bash.py. Attackers can craft a command string where tree-sitter-bash extracts only an allowlisted prefix such as cd while bash joins the line continuation into a materially different and hidden command such as a curl request, causing resolve_permission to grant ALWAYS permission while bash executes unauthorized arbitrary commands.
Text from CVE List
Affected versions 1
- mistral-vibeaffected: all versions before 2.25.5CVE List
References 4
- github.com/mistralai/mistral-vibe/releases/tag/v2.25.5Fixvia CVE List
- github.com/mistralai/mistral-vibe/pull/1111Fixvia CVE List
- github.com/mistralai/mistral-vibe/commit/c069ffa1e12fb5f2487b489217c40ab97721d553Fixvia CVE List
- vulncheck.com/advisories/mistral-vibe-permission-bypass-via-bash-line-continuationAdvisoryvia CVE List