vLLM CVE-2026-48746
CRITICALAttack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify exposed vLLM uvicorn port
-
DeliveryCraft request with malicious Host header
-
ExploitBypass AuthenticationMiddleware path check
-
ExecutionReach /v1 endpoint via FastAPI routing
-
ImpactInvoke model inference without API key
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V4 - API and Web Service HTTP request consistency
|
| Exploitation Conditions | Exploitation requires (1) a vLLM instance running a vulnerable version (>= 0.3.0, < 0.22.0) with API-key authentication enabled via VLLM_API_KEY or --api-key, (2) the uvicorn ASGI listener reachable by the attacker without an intermediate RFC-conforming HTTP proxy - deployments behind nginx (or any proxy that rejects invalid Host header characters) are explicitly not vulnerable per the vendor, and (3) the ability to set an arbitrary HTTP Host header containing URL-special characters such as '/' or '?'. No authentication, no user interaction, and no non-default vLLM configuration beyond enabling the API key are needed; the deployment topology (direct uvicorn exposure vs. reverse-proxied) is the decisive limiting factor. |
| Impact | The provided CVSS 3.1 vector AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H (9.1) is consistent with the described primitive: a remote, unauthenticated, single-request bypass that grants access to inference endpoints (high confidentiality of model outputs / prompts and high availability impact through resource exhaustion on expensive GPU calls). However, real-world risk is materially gated by the vendor's own caveat that deployments fronted by an RFC-conforming reverse proxy such as nginx - which rejects illegal Host header characters - are not exploitable, so impact is concentrated in instances where uvicorn is directly internet-exposed with --api-key set. EPSS and CISA KEV status were not provided in the input, and no public exploit code is referenced, so this should currently be treated as high-severity but not yet evidence of mass exploitation; the detailed x41-dsec advisory plus public patch diff lower the bar to weaponization significantly. |
| Exploit ScenarioDerived | An attacker locates an internet-exposed vLLM server started with --api-key and reachable directly on its uvicorn port (no nginx in front), then issues a single HTTP request to /v1/chat/completions while setting a crafted Host header such as 'attacker.example/?' so that starlette's URL(scope).path resolves to something that does not start with '/v1'. The AuthenticationMiddleware sees a non-/v1 path and passes the request through without checking the bearer token, while FastAPI's router still dispatches it to the real chat-completions handler - granting the attacker free use of the model. The detailed x41-dsec advisory and public patch diff make this trivially reproducible even though no weaponized PoC is referenced. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 16, 2026
Authentication bypass in vLLM versions 0.3.0 through 0.21.x allows remote unauthenticated attackers to reach OpenAI-compatible API endpoints without supplying the configured VLLM_API_KEY by injecting URL-special characters into the HTTP Host header. The flaw stems from vLLM's AuthenticationMiddleware reconstructing the request URL via starlette's URL(scope) - which trusts an unsanitized Host value - while FastAPI routing uses the raw HTTP path, producing a mismatch the attacker controls. No public exploit identified at time of analysis, but x41-dsec disclosed full technical details and a vendor-released patch is available in 0.22.0.
RemediationAI
Vendor-released patch: upgrade vllm to 0.22.0 or later, which replaces the URL(scope).path reconstruction with a direct read of scope['path'] (see https://github.com/vllm-project/vllm/pull/43426 and advisory https://github.com/vllm-project/vllm/security/advisories/GHSA-94f4-hr76-p5j6). Where immediate upgrade is not possible, place vLLM behind an RFC-conforming reverse proxy such as nginx that strictly validates the Host header and rejects requests containing '/', '?', '#' or other URL-special characters - the vendor confirms this fully mitigates the bypass, with the trade-off of an added network hop and the operational burden of TLS termination and proxy configuration. Network-level controls such as restricting the uvicorn listener to localhost or an internal VPC and enforcing authentication at an upstream API gateway are also effective; relying solely on the application-layer API key without a sanitizing proxy should be considered unsafe for any version below 0.22.0.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in pypi
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
vLLM is a high-throughput LLM inference and serving engine that exposes an OpenAI-compatible REST API through a FastAPI/Starlette application served by uvicorn (an ASGI server). The vulnerable AuthenticationMiddleware in vllm/entrypoints/openai/api_server.py guards any path starting with /v1, but derives that path by calling starlette.datastructures.URL(scope=scope).path, which rebuilds a URL string as scheme://host_header/path and then re-parses it. Because neither uvicorn nor any other listed ASGI server filters invalid characters out of the Host header, an attacker who places '/' or '?' inside Host causes the parsed .path to differ from the raw scope['path'] that Starlette's router actually uses for dispatch - a classic CWE-444 (Inconsistent Interpretation of HTTP Requests / request smuggling) desynchronization between two HTTP parsers in the same stack. The fix (PR #43426) simply reads scope['path'] directly, eliminating the second parser.
Know when Nginx gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
Single unauthenticated HTTP request over the network bypasses the API key; full model access and GPU-cost availability impact, but no integrity change to the server, so I:N.
Primary rating from Vendor (https://github.com/vllm-project/vllm).
CVSS VectorVendor: https://github.com/vllm-project/vllm
DescriptionCVE.org
Summary
A vulnerability in ASGI web servers and starlette's trust on those web servers enables an authentication bypass of the OpenAI API AuthenticationMiddleware, which was discovered during @x41sec's source code audit. It allows to use the API without providing the configured VLLM_API_KEY or --api-key.
Details
In https://github.com/vllm-project/vllm/blob/v0.14.0/vllm/entrypoints/openai/api_server.py#L689-L692 the url_path is taken from the URL, which is reconstructed by _starlette_ based on the request scope.
from starlette.datastructures import URL, Headers, MutableHeaders, State
# ...
url_path = URL(scope=scope).path.removeprefix(root_path)
headers = Headers(scope=scope)
if url_path.startswith("/v1") and not self.verify_token(headers):
response = JSONResponse(content={"error": "Unauthorized"}, status_code=401)
return response(scope, receive, send)
return self.app(scope, receive, send)The request scope includes the request's Host: header and reconstructs the URL as shown below:
f"{scheme}://{host_header}{path}"Neither starlette nor any of the ASGI servers (including uvicorn, which vllm uses) properly filter the Host: header for invalid characters. This allows an attacker to include special URL characters such as / or ? in the Host: header and thereby control the reconstructed URL and it's .path attribute.
FastAPI/starlette's routing uses the HTTP path and does not depend on the parsed url.path attribute, allowing attackers to reach an endpoint via a certain path while providing a different value in the .path.
Impact
- Instances of vllm that use an API Key for the OpenAI API and expose the API to attackers.
- Instances behind an RFC-conforming web server (such as nginx) are not affected.
Blast Radius
ecosystem impact- 2 pypi packages depend on vllm (2 direct, 0 indirect)
Ecosystem-wide dependent count for version 0.3.0.
Articles & Coverage 2
Executive ViewAI
A critical authentication bypass in vLLM 0.3.0-0.21.x enables unauthorized users to access proprietary language model APIs without credentials through Host header manipulation. Organizations deploying vLLM for model serving face direct exposure to model theft, unauthorized compute usage, and potential intellectual property loss. Immediate patching to version 0.22.0 is required to maintain API security.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
HTTP request smuggling exploits inconsistencies in how front-end and back-end servers parse HTTP message boundaries.
Affected Products (CPE)CVE.org
Denial of service against HTTP/2 server implementations allows remote unauthenticated attackers to exhaust server resour
The ngx_http_parse_chunked function in http/ngx_http_parse.c in nginx 1.3.9 through 1.4.0 allows remote attackers to cau
A critical vulnerability in Kubernetes ingress-nginx controller allows unauthenticated attackers with pod network access
nginx 0.8.41 through 1.4.3 and 1.5.x before 1.5.7 allows remote attackers to bypass intended restrictions via an unescap
An issue was discovered on GL.iNet devices before version 4.5.0. Rated critical severity (CVSS 9.8), this vulnerability
Nginx versions since 0.5.6 up to and including 1.13.2 are vulnerable to integer overflow vulnerability in nginx range fi
The resolver in nginx before 1.8.1 and 1.9.x before 1.9.10 allows remote attackers to cause a denial of service (invalid
Kubernetes ingress-nginx contains a configuration injection vulnerability via the mirror-target and mirror-host Ingress
Use-after-free in NGINX Plus and NGINX Open Source can crash a worker process handling HTTP/2-proxied requests and, if A
Heap buffer overflow in NGINX Plus and NGINX Open Source when HTTP/2 is enabled lets remote, unauthenticated attackers c
Nginx UI is a web user interface for the Nginx web server. Rated high severity (CVSS 8.9), this vulnerability is remotel
A security issue was discovered in ingress-nginx https://github.com/kubernetes/ingress-nginx where the `auth-url` Ingres
GHSA-94f4-hr76-p5j6
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB