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

CVE-2025-48943: vLLM allows clients to crash the openai server with invalid regex

mediumCVSS 3.1 6.5GHSA-9hcf-v7m4-6m2j

CVE-2025-48943 lets a client crash the vLLM OpenAI-compatible server by sending an invalid regular expression as a structured output constraint. The server shuts down instead of rejecting the request. vLLM 0.8.0 up to 0.9.0 is affected; upgrade to 0.9.0.

Published May 28, 2025 · Updated Jun 27, 2025 · Analysis Nov 1, 2026

What an attacker can do

When a request carries a guided_regex value, for example through extra_body in the OpenAI client, vLLM hands the pattern to the xgrammar grammar backend. If the pattern cannot be parsed, xgrammar raises a RuntimeError. In the linked issue the message was Regex parsing error at position 106: Invalid repetition count. The exception was not handled for that request, so the engine core fails and the server logs Got fatal signal from worker processes, shutting down.

Any client that can send a completion request can do this, with low privileges per the CVSS 3.1 vector, and one request is enough. All users of the instance lose service until someone restarts it. The impact is availability only.

The advisory presents this as the regex twin of the JSON schema crash in CVE-2025-48942, and both are fixed by pull request 17623. If you are handling one, handle the other.

Who is affected

The pip package vllm from 0.8.0 up to, but not including, 0.9.0, when the OpenAI-compatible server accepts structured output (guided decoding) parameters. Check:

pip show vllm

Shared API endpoints and any server open to users you do not control are the places where this matters.

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.0"

The patch is pull request 17623. The advisory lists no workaround. Until you upgrade, filter or reject guided_regex from untrusted clients at a gateway, restrict API access to trusted callers, and use a supervisor to restart the server on failure.

How to tell if you were hit

In vLLM logs, look for a RuntimeError from xgrammar's regex converter, such as Regex parsing error ... Invalid repetition count, followed by EngineCore hit an exception and CRITICAL Got fatal signal from worker processes, shutting down. Check request logs just before each shutdown for a guided_regex field and note the client. Unexplained restarts of the server are the main sign.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Impact

A denial of service bug caused the vLLM server to crash if an invalid regex was provided while using structured output. This vulnerability is similar to GHSA-6qc9-v4r8-22xg, but for regex instead of a JSON schema.

Issue with more details: https://github.com/vllm-project/vllm/issues/17313

Patches

  • https://github.com/vllm-project/vllm/pull/17623

Credited to g-eoj, russellb, Jason-CKY.

Questions

Which vLLM version fixes CVE-2025-48943?

0.9.0. Affected versions start at 0.8.0.

Which parameter is used?

A guided_regex structured-output value holding a pattern the grammar backend cannot parse, passed for instance through extra_body from the OpenAI client.

How does this differ from CVE-2025-48942?

That one uses an invalid JSON schema in guided_json. This one uses an invalid regex. Both crash the server and are fixed in 0.9.0.

Is it a remote code execution?

No. It is a denial of service. The server shuts down.

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