NewApp Monitoring is liveSign up free
AgentbeamBeta
AI agent vulnerability · vLLM

CVE-2025-9141: vLLM has remote code execution vulnerability in the tool call parser for Qwen3-Coder

highCVSS 3.1 8.8GHSA-79j6-g2m3-jgfw

vLLM 0.10.0 up to 0.10.1.0 runs Python's `eval()` on tool call parameters in its Qwen3-Coder tool parser. An authenticated user who can get the model to emit code as a tool argument gets remote code execution on the inference server. Only servers started with the `qwen3_coder` parser are affected. Fixed in 0.10.1.1.

Published Aug 21, 2025 · Analysis Nov 1, 2026

What an attacker can do

In qwen3coder_tool_parser.py, the parser converts each parameter of a tool call to a Python value. When the parameter type is not defined or recognized, the code falls back to eval() on the model's text. Whatever the model writes into that argument runs as Python in the vLLM process.

The attacker needs a valid API user and a way to make the model produce the payload. A direct prompt can ask for it, and a prompt injection in a document or web page given to the model can too. Both are plausible with a coding agent. The result is code execution with the privileges of the vLLM server: access to model weights, GPUs, environment variables, API keys and the internal network, and the ability to disrupt every other tenant.

Exposure needs all three conditions: tool calling enabled with --enable-auto-tool-choice, --tool-call-parser qwen3_coder, and a parameter with an unknown type.

Who is affected

vLLM from 0.10.0 before 0.10.1.1, only when started with both --enable-auto-tool-choice and --tool-call-parser qwen3_coder. Servers using other parsers or with tool calling off do not reach this code path. Check:

pip show vllm
ps aux | grep qwen3_coder

Also check your service files, Docker commands and Kubernetes manifests for the --tool-call-parser flag.

vllm

Ecosystem
PyPI
Affected
>= 0.10.0, < 0.10.1.1
Fixed in
0.10.1.1
Check
pip show vllm

How to fix it

Upgrade to vLLM 0.10.1.1:

pip install --upgrade vllm==0.10.1.1

The fix PR #21396 replaces eval() with the parser's type conversion: int(), float() and json.loads(), falling back to a plain string. The advisory gives no workaround. If you cannot upgrade right away, the conditions in the advisory suggest you could remove --enable-auto-tool-choice or switch the parser, but check that with your own testing. Restrict who holds API keys meanwhile.

How to tell if you were hit

Review vLLM request logs for chat completion requests with tools enabled that came from unexpected users. Look at model outputs or tool call arguments containing Python expressions such as __import__, os.system or subprocess. On the server, check for unexpected child processes of the vLLM process, outbound connections and new files. The advisory publishes no log signature. Beam records agent shell commands and MCP tool calls, which helps if a coding agent is what feeds the model the injected text.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Summary

An unsafe deserialization vulnerability allows any authenticated user to execute arbitrary code on the server if they are able to get the model to pass the code as an argument to a tool call.

Details

vLLM's Qwen3 Coder tool parser contains a code execution path that uses Python's eval() function to parse tool call parameters. This occurs during the parameter conversion process when the parser attempts to handle unknown data types.

This code path is reached when:

  1. Tool calling is enabled (--enable-auto-tool-choice)
  2. The qwen3_coder parser is specified (--tool-call-parser qwen3_coder)
  3. The parameter type is not explicitly defined or recognized

Impact

Remote Code Execution via Python's eval() function.

Credited to levigross, russellb.

Questions

Am I affected if I do not use Qwen3-Coder?

Only if you start vLLM with --tool-call-parser qwen3_coder. The vulnerable eval() sits in that parser, so other parsers do not reach it.

Does the attacker need to be authenticated?

The advisory says any authenticated user, and the CVSS vector shows low privileges. They must also get the model to pass code as a tool call argument.

Which version fixes CVE-2025-9141?

vLLM 0.10.1.1. The vulnerable range is 0.10.0 up to that release.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology

More vLLM vulnerabilities

All vLLM entries