CVE-2026-124028: mistral.rs tool-call parsers let delimiter strings in quoted documents, web pages or tool output forge extra tool calls (fixed 0.9.5)
mistralrs-core found tool-call regions by matching delimiters such as <tool_call>, </parameter> and </tool_call> in decoded text before interpreting argument contents. If the model quoted attacker-controlled text (a support ticket, web page, file or another tool's output) containing those tags, the qwen-xml and gemma4 parsers returned an extra tool call with attacker-chosen arguments, and quoted text could also end the reasoning span and be parsed as a tool call the model never made. Fixed in 0.9.5.
What it is
The model emits one call, but mistralrs-core returns two; the forged call is assembled from bytes in the runtime document. It needs no malicious model file, tokenizer or chat template.
Limit from the advisory: the forged tool name must already be declared. The reporters claim tool-call integrity impact only, not code execution or denial of service; real impact depends on what your declared tools can do.
GitHub advisory published 18 October 2026; NVD published CVE-2026-124028 on 6 November 2026. Fixed in v0.9.5 (PR #2455, commit b43d344).
How to check
- Check whether you use mistral.rs (mistralrs-core) with tool calling, especially Qwen-XML or Gemma 4 formats or reasoning models; versions before 0.9.5 are affected.
How to fix
- Upgrade mistral.rs / mistralrs-core to 0.9.5 or later.
- Validate tool-call arguments server-side and require confirmation for tools with side effects, regardless of the parser.
cargo tree -i mistralrs-core # or: mistralrs-server --version