Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAttacker plants delimiter tags in document
-
DeliveryAgent feeds untrusted content to model
-
ExploitModel quotes poisoned text in output
-
ExecutionParser splits text into extra tool call
-
ImpactForged call runs declared tool with chosen args
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Delimiter neutralization
|
| Exploitation Conditions | Exploitation requires an agentic deployment of mistral.rs that (1) uses the qwen-xml, gemma4, or a tag-based reasoning parser in mistralrs-core, (2) processes untrusted runtime content - documents, web pages, support tickets, files, or other tools' output - that the model then quotes in its output, and (3) has the target tool already declared in the request's tool set (undeclared names such as 'bash' are validated and dropped). The attacker embeds parser delimiters (</tool_call>, </parameter>, </function>, or the reasoning closing tag) inside that content. Limiting factors: impact is bounded to already-declared tools and their capabilities (no arbitrary code execution or DoS claimed); the flaw is pre-0.9.5 only; and exploitation depends on the model actually quoting the poisoned text (reflected in AC:H, AT:P, and UI:P/passive interaction). Deployments registering many tools, especially multi-server MCP setups, face higher residual risk because security-sensitive tools remain reachable. |
| Impact | This is a genuine but low-priority integrity flaw, and the multiple signals agree on that assessment rather than conflict. The input CVSS 4.0 score is 2.3 with AV:N/AC:H/AT:P/PR:N/UI:P, and the vuln.today decision label is 'monitor' - both pointing to low urgency. There is no CISA KEV listing and no EPSS score supplied, so there is no evidence of active or widespread exploitation; status is 'no public exploit identified at time of analysis' for a confirmed working exploit, though a public PoC reference exists (poc.zip in the GHSA advisory) that is not verified here as working exploit code. The vendor advisory itself constrains impact: the forged tool name must already be declared for the request, there is no claim of arbitrary code execution or denial of service, and only tool-call integrity is affected. The realistic ceiling is therefore an attacker who controls runtime content (a document, web page, support ticket, or upstream tool output) nudging an agent into an extra invocation of an already-declared tool - meaningful in agentic/MCP deployments that register many sensitive tools, but low-severity against typical setups. Note a version-scope inconsistency: the NVD description says 'before 0.9.5' while the package advisory states vulnerable < 0.9.3, fixed in >= 0.9.5 - verify the exact affected range with the vendor. |
| Exploit ScenarioDerived | An agent built on mistral.rs with declared tools (e.g. via MCP) ingests an attacker-controlled document, web page, or upstream tool output and quotes it while answering. The quoted text contains delimiter strings such as </tool_call>, </parameter>, or a reasoning closing tag, which the qwen-xml, gemma4, or reasoning parser interprets as the end of one region and the start of a second valid tool call - so the model emits one call but mistralrs-core returns two, the forged one carrying attacker-chosen arguments to an already-declared tool. A PoC demonstrating the parser behavior is referenced in the GHSA advisory. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 06, 2026
Delimiter injection in mistralrs-core (mistral.rs before 0.9.5) lets attacker-controlled runtime content - documents, web pages, support tickets, files or another tool's output - that the model quotes in its output be re-parsed as an extra tool call with attacker-chosen arguments. It affects deployments using the qwen-xml or gemma4 tool parsers, or a tag-based reasoning parser, and the forged call is restricted to tools already declared in the request; undeclared names are validated and dropped, so the reporter claims no arbitrary code execution or denial of service. No evidence of active exploitation (not CISA KEV); a public PoC reference exists (a reproducer test module attached to the advisory) but it is not verified as working exploit code, and the independent assessment rates this a low-priority integrity issue (CVSS 3.1 base 3.1-ish, AC:H/UI:R/PR:N).
RemediationAI
Vendor-released patch: mistral.rs 0.9.5 (release tag v0.9.5), delivered through commit b43d3443e946752c0f662c2df42a2974410c9532 and PR https://github.com/EricLBuehler/mistral.rs/pull/2455; upgrade mistralrs-core to >= 0.9.5 per advisory GHSA-34w8-j94f-8c5w. If upgrading is delayed, reduce residual exposure by minimizing the declared tool set per request - the parser drops undeclared tool names, and the advisory notes that multi-server MCP deployments aggregating many tools can keep security-sensitive tools reachable - and by treating documents, tickets, web pages, files and other tools' outputs as untrusted input to any agent that quotes them; the reporter's format sweep observed forged calls with qwen-xml and gemma4 (and via the reasoning boundary), while other tested formats either rejected the forged call or dropped the model's original call, although that sweep was not exhaustive, so parser substitution is not a validated substitute for patching.
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
The root cause is CWE-140 (improper neutralization of delimiters); the GitHub advisory additionally classifies it as CWE-138 and CWE-436. mistralrs-core parses tool-call formats by locating delimiter strings in decoded model text before interpreting argument contents: qwen.rs uses regular expressions such as (?s)<tool_call>(?P<inner>.*?)</tool_call>, (?s)<function=(?P<name>[^>\n]+)>\s*(?P<body>.*?)\s*</function> and (?s)<parameter=(?P<key>[^>\n]+)>(?P<value>.*?)</parameter>. A </parameter>, </function> or </tool_call> sequence embedded in quoted document text therefore closes the current region early and opens a second, syntactically valid call; the same structural problem exists on the reasoning boundary, where TagReasoningContext ends the reasoning span at the first closing tag in decoded text and the remainder is handed to the tool parser. This is a trust-boundary issue distinct from the previously closed chat-template report: it needs no malicious model file, tokenizer configuration or template, only untrusted runtime content processed with a trusted model. The upstream fix (commit b43d3443e946752c0f662c2df42a2974410c9532, PR #2455) adds a mistralrs-core special_text module that collects the vocabulary's special/control-token spellings from the token trie (ignoring entries shorter than three bytes), defuses those delimiters in tool-output-role messages via a reserved noncharacter marker (U+FDD0) before the chat template is applied, carries a streaming SpecialTextGuard over completion bytes, and restores the original text in the returned message content, reasoning content, tool calls and completions. Only tool/function/ipython/observation role content is neutralized; user text is deliberately left untouched. Trigger details for cases beyond quoted document text are not described in the available sources.
Know when Mistral Rs 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:H/AT:P/PR:N/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N
Remote untrusted content (AV:N, PR:N) but needs specific parsers, the model to quote attacker text, and a pre-declared tool (AC:H, UI:R); impact is limited integrity/confidentiality of tool calls (I:L/C:L), no availability effect.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
mistral.rs before 0.9.5 contains a delimiter injection vulnerability in mistralrs-core that allows attackers to inject tool calls by placing delimiter strings in text the model quotes. Attackers controlling documents, web pages or tool outputs can embed tags like </tool_call> to make qwen-xml, gemma4 or reasoning parsers return extra calls to declared tools with attacker-chosen arguments.
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
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
More in Mistral Rs
View allImproper link following in mistral.rs 0.9.0 through 0.9.4 allows code running in the mistralrs-code-exec sandbox to read
Out-of-bounds read in mistral.rs versions 0.8.0 through 0.8.22 allows a remote attacker to crash the GGUF tokenizer by s
Path traversal in the mistral.rs inference server (mistralrs-server-core) through version 0.9.3 lets a remote, unauthent
Server-side request forgery in EricLBuehler mistral.rs 0.9.3 and earlier allows remote unauthenticated attackers to bypa
EUVD-2026-118436
GHSA-g3jq-5q72-jc6f
NVD
CVE.org
EPSS
Exploit-DB