Skip to main content

mistral.rs CVE-2026-124028

| EUVDEUVD-2026-118436 LOW
Improper Neutralization of Delimiters (CWE-140)
2026-11-06 VulnCheck GHSA-g3jq-5q72-jc6f
2.3
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Attacker plants delimiter tags in document
  2. Delivery
    Agent feeds untrusted content to model
  3. Exploit
    Model quotes poisoned text in output
  4. Execution
    Parser splits text into extra tool call
  5. Impact
    Forged 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.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Mistral.rs 0 <0.9.5

Affected Packages

euvd mistral_rs fix: 0.9.5

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

Vendor (VulnCheck) PRIMARY 2.3 LOW
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
vuln.today AI 4.2 MEDIUM

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.

3.1 AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N
4.0 AV:N/AC:H/AT:P/PR:N/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
High
Attack Requirements
Present
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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

EPSS Score
0.2%
Top 91% exploitable
Prevalence
Low
niche open-source Rust LLM inference engine, limited production footprint
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity LOW
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Low

Priority Score

12
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +12
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy