CVE-2025-6242: vLLM is vulnerable to Server-Side Request Forgery (SSRF) through `MediaConnector` class
vLLM's multimodal `MediaConnector` fetches media from user-supplied URLs with no limit on the target host. Anyone who can send a chat request with an image, audio or video URL can make the vLLM server call internal addresses such as `127.0.0.1:8080/internal_api`. Versions 0.5.0 up to 0.11.0 are affected. Upgrade to 0.11.0.
Published Oct 7, 2025 · Updated Oct 27, 2025 · Analysis Nov 1, 2026
What an attacker can do
MediaConnector.load_from_url and load_from_url_async in vllm/multimodal/utils.py accept http, https and file URLs. For web URLs they connect to whatever host the caller names. The --allowed-local-media-path option only limits file URLs, so it does not stop network requests.
A request body with an image_url that points at 127.0.0.1:8080/internal_api makes the server send a GET to that endpoint. The attacker can scan internal ports by watching response times and error messages, and can reach internal services that rely on not being exposed. The vLLM docs also name cloud metadata endpoints as a target, and oversized or slow files that consume memory, disk or bandwidth.
The advisory puts the highest risk on orchestrated setups such as llm-d. There, a request to an internal management endpoint could report a false KV cache state and trigger wrong scaling decisions or an outage. An orchestrator cannot easily tell the engine's own traffic from traffic caused by user input, so network filtering is hard. The CVSS vector needs low privileges, meaning an account or API key for the endpoint, and rates attack complexity high.
Who is affected
Affected: the pip package vllm from 0.5.0 up to but not including 0.11.0. The flaw matters when the server accepts multimodal input from users you do not fully trust, and when it can reach internal services or metadata endpoints.
Check your install:
pip show vllmvllm
- Ecosystem
- PyPI
- Affected
- >= 0.5.0, < 0.11.0
- Fixed in
- 0.11.0
- Check
pip show vllm
How to fix it
Upgrade to vllm 0.11.0:
pip install -U "vllm>=0.11.0"The advisory's fix points to the --allowed-media-domains option. It takes a list of hosts that vLLM may fetch media from, for example:
vllm serve MODEL --allowed-media-domains upload.wikimedia.org github.comThe vLLM security guide also suggests setting VLLM_MEDIA_URL_ALLOW_REDIRECTS=0, so that HTTP redirects cannot get around the domain list. The allowlist covers online serving and vllm run-batch. Also block egress from vLLM pods to internal ranges and metadata addresses.
How to tell if you were hit
Review API request logs for multimodal inputs (image_url, audio or video URLs) that point to localhost, 127.0.0.1, private ranges such as 10.x, link-local metadata addresses, or internal service names. Look for bursts of requests with different internal ports from one client, which indicates scanning. On the network side, flag outbound connections from the vLLM host to internal management ports that the engine has no reason to call, and unexpected hits on internal endpoints with a vLLM pod as the source.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Summary
A Server-Side Request Forgery (SSRF) vulnerability exists in the MediaConnector class within the vLLM project's multimodal feature set. The load_from_url and load_from_url_async methods fetch and process media from user-provided URLs without adequate restrictions on the target hosts. This allows an attacker to coerce the vLLM server into making arbitrary requests to internal network resources.
This vulnerability is particularly critical in containerized environments like llm-d, where a compromised vLLM pod could be used to scan the internal network, interact with other pods, and potentially cause denial of service or access sensitive data. For example, an attacker could make the vLLM pod send malicious requests to an internal llm-d management endpoint, leading to system instability by falsely reporting metrics like the KV cache state.
Vulnerability Details
The core of the vulnerability lies in the MediaConnector.load_from_url method and its asynchronous counterpart. These methods accept a URL string to fetch media content (images, audio, video).
https://github.com/vllm-project/vllm/blob/119f683949dfed10df769fe63b2676d7f1eb644e/vllm/multimodal/utils.py#L97-L113
The function directly processes URLs with http, https, and file schemes. An attacker can supply a URL pointing to an internal IP address or a localhost endpoint. The vLLM server will then initiate a connection to this internal resource.
- HTTP/HTTPS Scheme: An attacker can craft a request like
{"image_url": "http://127.0.0.1:8080/internal_api"}. The vLLM server will send a GET request to this internal endpoint. - File Scheme: The
_load_file_urlmethod attempts to restrict file access to a subdirectory defined by--allowed-local-media-path. While this is a good security measure for local file access, it does not prevent network-based SSRF attacks.
Impact in llm-d Environments
The risk is significantly amplified in orchestrated environments such as llm-d, where multiple pods communicate over an internal network.
- Denial of Service (DoS): An attacker could target internal management endpoints of other services within the
llm-dcluster. For instance, if a monitoring or metrics service is exposed internally, an attacker could send malformed requests to it. A specific example is an attacker causing the vLLM pod to call an internal API that reports a false KV cache utilization, potentially triggering incorrect scaling decisions or even a system shutdown.
- Internal Network Reconnaissance: Attackers can use the vulnerability to scan the internal network for open ports and services by providing URLs like
http://10.0.0.X:PORTand observing the server's response time or error messages.
- Interaction with Internal Services: Any unsecured internal service becomes a potential target. This could include databases, internal APIs, or other model pods that might not have robust authentication, as they are not expected to be directly exposed.
Delegating this security responsibility to an upper-level orchestrator like llm-d is problematic. The orchestrator cannot easily distinguish between legitimate requests initiated by the vLLM engine for its own purposes and malicious requests originating from user input, thus complicating traffic filtering rules and increasing management overhead.
Fix
See the --allowed-media-domains option discussed here: https://docs.vllm.ai/en/latest/usage/security.html#4-restrict-domains-access-for-media-urls
Credited to kexinoh, d3do-23, lonelyuan, huachenheli, DarkLight1337, russellb, sidhpurwala-huzaifa.
Questions
- Does --allowed-local-media-path prevent this SSRF?
No. The advisory says that option restricts local
fileaccess only. It does not prevent HTTP requests to internal hosts. Use--allowed-media-domainsfor that.- Is vLLM 0.10.2 affected by CVE-2025-6242?
Yes. The vulnerable range is 0.5.0 up to but not including 0.11.0, and 0.10.2 falls inside it.
- Does an attacker need credentials?
The CVSS vector requires low privileges, which means access to the inference API. If your vLLM endpoint is open to the internet without auth, the bar is lower.
References
Read for this analysis:
- https://github.com/vllm-project/vllm/security/advisories/GHSA-3f6c-7fw2-ppm4
- https://nvd.nist.gov/vuln/detail/CVE-2025-6242
- https://github.com/vllm-project/vllm/commit/9d9a2b77f19f68262d5e469c4e82c0f6365ad72d
- https://access.redhat.com/security/cve/CVE-2025-6242
- https://bugzilla.redhat.com/show_bug.cgi?id=2373716
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
