Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessDeliver crafted command via untrusted content
-
Deliverytree-sitter-bash extracts only allowlisted 'cd' prefix
-
Exploitresolve_permission grants ALWAYS permission
-
Executionbash joins backslash-newline continuation
-
ImpactExecute hidden unauthorized command (e.g. curl)
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V4 - API and Web Service Interpretation consistency
|
| Exploitation Conditions | Requires that Mistral Vibe's command-permission allowlist be in use (the mechanism abused is resolve_permission granting ALWAYS to an allowlisted prefix such as 'cd') and that the agent processes an attacker-crafted command string containing a backslash-newline line continuation, where tree-sitter-bash and bash disagree on the joined result. The principal limiting factor is UI:P - a user must run the agent against the malicious input (typically delivered as untrusted content the agent is directed to handle), so exploitation is not fully autonomous. Affected only in versions before 2.25.5; no elevated privileges or prior authentication on the host are needed (PR:N). |
| Impact | This is a genuine priority within its (niche) deployment footprint rather than a CVSS-inflated non-issue. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:P, score 8.7) indicates a low-complexity, no-privilege attack with high confidentiality, integrity, and availability impact, limited only by passive user interaction (UI:P). The root cause (CWE-436, interpretation conflict) is credible and well-documented: a parsing divergence between tree-sitter-bash and bash lets an attacker defeat the command-allowlisting control that is the product's core security boundary. However, risk signals are mixed and incomplete: there is NO CISA KEV listing and NO public proof-of-concept referenced, so exploitation is not confirmed in the wild - no public exploit identified at time of analysis. EPSS and SSVC (exploitation status, automatable, technical impact) values were NOT provided in the input and cannot be inferred; this is a material gap for prioritization. The flaw was reported by VulnCheck (a credible research org) and a vendor patch exists (v2.25.5, PR #1111, commit c069ffa), which raises confidence in the technical details even absent active-exploitation evidence. Net: high technical severity and a fully-disclosed, patched mechanism, but no evidence of active exploitation and a limited real-world install base - treat as high-priority to patch for Mistral Vibe operators, lower-priority at fleet scale given product prevalence. |
| Exploit ScenarioDerived | An attacker plants a crafted command string (e.g., within untrusted content the agent is asked to process, such as a repository file, web page, or task instruction) that begins with an allowlisted prefix like 'cd' followed by a backslash-newline continuation hiding a curl request. When the victim runs Mistral Vibe and it evaluates the command, tree-sitter-bash sees only the approved 'cd' and resolve_permission grants ALWAYS, while bash joins the continuation and executes the hidden arbitrary command. No public exploit code is referenced, but the mechanism is fully described in the VulnCheck advisory and vendor commit. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 13, 2026
Permission validation bypass in Mistral Vibe versions before 2.25.5 allows an attacker who can get crafted text in front of the agent to have arbitrary shell commands executed under the user's own privileges, despite the tool's command allowlist. The flaw is a parser disagreement: tree-sitter-bash truncates a backslash-newline continuation and sees only an allowlisted prefix such as 'cd', while bash joins the lines and runs a materially different command (for example a curl request), so resolve_permission grants ALWAYS for the benign-looking prefix and the hidden command executes. Exploitation requires the allowlist / auto-approval mechanism to be in use and requires the user to direct the agent at malicious input (UI:P per the CVSS 4.0 vector, UI:R in the CVSS 3.1 assessment), so it is not fully autonomous, and no public exploit code or confirmed active exploitation was identified at time of analysis. Vendor-released patch: 2.25.5.
RemediationAI
Vendor-released patch: upgrade Mistral Vibe to 2.25.5 or later, available from https://github.com/mistralai/mistral-vibe/releases/tag/v2.25.5; the fix is carried in https://github.com/mistralai/mistral-vibe/pull/1111 and commit c069ffa1e12fb5f2487b489217c40ab97721d553. Until the upgrade can be applied, the most effective compensating control is to stop relying on persistent allowlist approvals: clear existing ALWAYS/allowlist entries and require per-command confirmation for every shell tool call, accepting the added prompt friction as the trade-off. A second control is to restrict the agent from consuming untrusted content (fetched pages, repository files, issue text, pasted logs) without human review, since the exploit payload is delivered as the command string the agent is directed to run; this reduces exposure but cannot be fully enforced when the agent's purpose is to process external material. Where strict separation is required, run the agent in a sandbox or container with a read-only or disposable filesystem and no outbound network egress, and explicitly block outbound HTTP(S) tools such as curl/wget, noting that sandboxing and egress filtering can break legitimate build, package-install, and API-calling workflows. Disabling or bypassing the permission layer (for example auto-approve or bypass modes) is not a remediation and materially increases risk, since it removes the only check the bypass defeats; note also that the vulnerability abuses an allowlisted prefix such as 'cd', so reviewing the allowlist for short generic prefixes ('cd', 'echo', 'ls') and removing them shrinks the attack surface at the cost of more manual approvals. No vendor-released workaround other than upgrading is documented in the available advisory references.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Mistral Vibe is a coding/agent harness that mediates shell tool calls through a permission layer. Its bash.py module contains _extract_commands(), which uses tree-sitter-bash to parse a proposed command string into discrete commands so that each can be checked against the user's allowlist by resolve_permission. The vulnerability is an interpretation conflict (CWE-436) between the tree-sitter-bash grammar and the actual bash interpreter: when a command contains a backslash immediately followed by a newline (line continuation), the two parsers do not agree on the joined result. tree-sitter-bash's extraction sees only the allowlisted leading token (e.g. 'cd') and treats the remainder as not part of an executable command, while bash removes the backslash-newline and concatenates the text into a single, different command such as an outbound curl invocation. Because the security decision is made on the parser's truncated view while execution follows bash semantics, the check authorizes ALWAYS and the unintended command runs. The affected component is the cpe:2.3:a:mistralai:mistral-vibe:*:*:*:*:*:*:*:* package range (all releases prior to 2.25.5); the CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:P) and the independent CVSS 3.1 assessment (AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H) agree that no host authentication or elevated privileges are needed, but that user interaction - running the agent against the hostile string - is required. The release notes for 2.25.5 also describe a related behavioral tightening ('Approving a shell command with a variable expansion now covers the next call that differs only in the expansion'), consistent with continued hardening of the approval-matching logic.
Know when Mistral Vibe gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Crafted content is delivered remotely (AV:N) and the parsing discrepancy is reliable (AC:L); no privileges needed (PR:N) but the victim must run the agent on it (UI:R); arbitrary command execution yields full C/I/A impact.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
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.
Executive ViewAI
Organizations using Mistral Vibe versions before 2.25.5 for AI-assisted coding or automation face a permission bypass that could enable arbitrary commands under a user's own account, threatening source code, credentials, and connected systems. The flaw undermines built-in safeguards and primarily affects developers or other users who have enabled the allowlist or auto-approval features, making it a high-priority patching effort even though user interaction is required and no public exploit identified at time of analysis. Leadership should direct immediate remediation because the vendor has released a fixed version, and delayed patching leaves those users exposed to potential data loss or unauthorized access.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
More in Mistral Vibe
View allArbitrary file access in Mistral Vibe, Mistral AI's agentic coding assistant, lets an attacker read (and potentially mod
Arbitrary code execution in Mistral Vibe (mistralai:mistral-vibe) lets an attacker defeat the agent's command-approval a
Arbitrary code execution in Mistral AI's Mistral Vibe agentic coding assistant lets attackers smuggle commands past the
Arbitrary code execution in Mistral Vibe lets attackers slip past the tool's command-approval allowlist by wrapping mali
Arbitrary file write in Mistral Vibe (the AI coding agent), introduced in version 1.3.4, lets an attacker create or over
Arbitrary file read in Mistral Vibe (Mistral AI's agentic coding assistant), introduced in version 2.6.0, lets attackers
Command permission gate bypass in Mistral Vibe before 2.25.4 lets input processed by the agent cause arbitrary shell com
Remote code execution in Mistral Vibe before 2.25.5 allows an attacker to run arbitrary shell commands with the privileg
Remote code execution in Mistral Vibe before 2.23.3 allows any attacker who can deliver a crafted repository to a victim
EUVD-2026-99221
GHSA-66p3-rgrf-xjf3
NVD
CVE.org
EPSS
Exploit-DB