CVE-2025-48943: vLLM allows clients to crash the openai server with invalid regex
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 vllmShared 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
Read for this analysis:
- https://github.com/vllm-project/vllm/security/advisories/GHSA-9hcf-v7m4-6m2j
- https://github.com/vllm-project/vllm/issues/17313
- https://github.com/vllm-project/vllm/pull/17623
- https://github.com/vllm-project/vllm/commit/08bf7840780980c7568c573c70a6a8db94fd45ff
- https://nvd.nist.gov/vuln/detail/CVE-2025-48943
- https://github.com/pypa/advisory-database/tree/main/vulns/vllm/PYSEC-2025-55.yaml
- https://github.com/advisories/GHSA-9hcf-v7m4-6m2j
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
