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

CVE-2025-6242: vLLM is vulnerable to Server-Side Request Forgery (SSRF) through `MediaConnector` class

highCVSS 3.1 7.1GHSA-3f6c-7fw2-ppm4

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 vllm

vllm

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.com

The 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_url method 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.

  1. Denial of Service (DoS): An attacker could target internal management endpoints of other services within the llm-d cluster. 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.
  1. 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:PORT and observing the server's response time or error messages.
  1. 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 file access only. It does not prevent HTTP requests to internal hosts. Use --allowed-media-domains for 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

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