CVE-2025-29770: vLLM denial of service via outlines unbounded cache on disk
vLLM's V0 engine writes every compiled structured-output grammar from the outlines backend to a disk cache that has no size limit. A user of the OpenAI-compatible API can send many short requests with unique schemas and fill the disk. Versions before 0.8.0 are affected. Upgrade to vLLM 0.8.0.
Published Mar 19, 2025 · Updated Jun 8, 2026 · Analysis Nov 1, 2026
What an attacker can do
vllm/model_executor/guided_decoding/outlines_logits_processors.py always used the optional outlines cache on the local filesystem. Each guided-decoding request with a new schema adds an entry, and nothing prunes it. A stream of very short requests with unique schemas therefore grows the cache until the disk is full. Once the disk is full, vLLM and anything else on that volume can fail.
The attacker needs access to the OpenAI-compatible API server, with low privileges and no user interaction. Setting a different default backend does not help: a request can still choose outlines through the guided_decoding_backend key of extra_body. Only the V0 engine is affected. The V1 engine is not.
The effect is availability only. The advisory states that the only workaround for existing versions is to keep untrusted users away from the API server.
Who is affected
vllm (pip) before 0.8.0, running the V0 engine with the OpenAI-compatible API server reachable by users you do not fully trust. V1 engine deployments are not affected. Check your version:
pip show vllmThe outlines cache lives on the local disk of the host, so look at free space on the volume that holds the user cache directory.
vllm
- Ecosystem
- PyPI
- Affected
- < 0.8.0
- Fixed in
- 0.8.0
- Check
pip show vllm
How to fix it
Upgrade to vllm 0.8.0:
pip install --upgrade "vllm>=0.8.0"The fix (pull request 14837) turns the cache off by default, because it has no size limit. To keep it anyway, set the environment variable VLLM_V0_USE_OUTLINES_CACHE to 1, and monitor disk use. There is no workaround on older versions other than blocking untrusted access to the API server.
How to tell if you were hit
Watch disk usage on vLLM hosts for steady growth, and look for a large number of small files in the outlines cache directory under the user's cache path. In API logs, look for bursts of requests with guided_json or guided grammar parameters, each using a different schema, or requests that set guided_decoding_backend to outlines in extra_body.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Impact
The outlines library is one of the backends used by vLLM to support structured output (a.k.a. guided decoding). Outlines provides an optional cache for its compiled grammars on the local filesystem. This cache has been on by default in vLLM. Outlines is also available by default through the OpenAI compatible API server.
The affected code in vLLM is vllm/model_executor/guided_decoding/outlines_logits_processors.py, which unconditionally uses the cache from outlines. vLLM should have this off by default and allow administrators to opt-in due to the potential for abuse.
A malicious user can send a stream of very short decoding requests with unique schemas, resulting in an addition to the cache for each request. This can result in a Denial of Service if the filesystem runs out of space.
Note that even if vLLM was configured to use a different backend by default, it is still possible to choose outlines on a per-request basis using the guided_decoding_backend key of the extra_body field of the request.
This issue applies to the V0 engine only. The V1 engine is not affected.
Patches
- https://github.com/vllm-project/vllm/pull/14837
The fix is to disable this cache by default since it does not provide an option to limit its size. If you want to use this cache anyway, you may set the VLLM_V0_USE_OUTLINES_CACHE environment variable to 1.
Workarounds
There is no way to workaround this issue in existing versions of vLLM other than preventing untrusted access to the OpenAI compatible API server.
References
Credited to russellb.
Questions
- Does the V1 engine have this problem?
No. The advisory says it applies to the V0 engine only.
- Can I avoid it by choosing another guided decoding backend?
Not fully. A request can pick outlines per request through guided_decoding_backend in extra_body, even if the server default is a different backend.
- How do I keep the cache after upgrading?
Set VLLM_V0_USE_OUTLINES_CACHE=1. The cache has no size limit, so this restores the exposure unless only trusted users reach the API.
References
Read for this analysis:
- https://github.com/vllm-project/vllm/security/advisories/GHSA-mgrm-fgjv-mhv8
- https://github.com/vllm-project/vllm/pull/14837
- https://github.com/vllm-project/vllm/blob/53be4a863486d02bd96a59c674bbec23eec508f6/vllm/model_executor/guided_decoding/outlines_logits_processors.py
- https://nvd.nist.gov/vuln/detail/CVE-2025-29770
- https://github.com/pypa/advisory-database/tree/main/vulns/vllm/PYSEC-2025-223.yaml
- https://github.com/advisories/GHSA-mgrm-fgjv-mhv8
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
