Mistral Vibe before 3.0.3 RCE via Git Filter Drivers in Worktree Mode
Impact
Mistral Vibe before 3.0.3 contains a remote code execution vulnerability that allows attackers to run commands by defining git filter drivers in an untrusted repository's .git/config. When started with --worktree, git worktree add applies .gitattributes and runs filter smudge, clean, or process commands before the trusted-folder check, executing attacker commands with user privileges.
Source excerpt · VulnCheckAffected packages
Affected products
Vendor version evidence. Product records are separate from automatic dependency matching.
mistralai · mistral-vibe
Other versions: unaffected
| Version / range | Source status |
|---|---|
| 0 to before 3.0.3 | affected |
Original source description
Mistral Vibe before 3.0.3 contains a remote code execution vulnerability that allows attackers to run commands by defining git filter drivers in an untrusted repository's .git/config. When started with --worktree, git worktree add applies .gitattributes and runs filter smudge, clean, or process commands before the trusted-folder check, executing attacker commands with user privileges.
References
- Source reference github.com/mistralai/mistral-vibe/issues/997
- Patch github.com/mistralai/mistral-vibe/commit/7bb48f213ac677f943d5c791199ed3dddf302f00
- Release notes github.com/mistralai/mistral-vibe/releases/tag/v3.0.3
- Source reference github.com/mistralai/mistral-vibe/blob/v2.24.1/vibe/core/worktree.py
- Security advisory www.vulncheck.com/advisories/mistral-vibe-before-3.0.3-rce-via-git-filter-drivers-in-worktree-mode