提出 #811290: litellm latest Server-Side Request Forgery (SSRF) (CWE-918)情報

タイトルlitellm latest Server-Side Request Forgery (SSRF) (CWE-918)
説明# Technical Details A Server-Side Request Forgery (SSRF) vulnerability exists in the `load_openapi_spec_async` method in `litellm/proxy/_experimental/mcp_server/openapi_to_mcp_generator.py` of litellm. The application accepts an external `spec_path` URL mapping component for MCP tools loading processes. Waitstates and unvalidated parameter fetching execute a blunt system fetch against the host, breaking boundary restrictions. # Vulnerable Code File: `litellm/proxy/_experimental/mcp_server/openapi_to_mcp_generator.py` Method: `load_openapi_spec_async` Why: Any user authenticating with standard API keys against `/mcp-rest/test/tools/list` can feed `http://` schema values into `spec_path`. Inside the script, `httpx.get(filepath)` executes resolving the remote schema entirely without domain filtering, rebinding mitigation, or private IP sanitization. # Reproduction 1. Form an authenticated HTTP POST invocation passing into `/mcp-rest/test/tools/list`. 2. Bind the inner JSON `spec_path` to loopback targeting a local service (e.g. `"spec_path": "http://internal-service:8080/"`) or Cloud Meta Data endpoints (e.g. `x.x.x.x`). 3. Obtain the returned HTTP 200 payload generated containing internal resource reflections. # Impact - Broad Access into constrained internal domains, databases, microservices, and port systems directly tied to the application wrapper. - Immediate exfiltration vectors for Cloud IAM Metadata mapping tokens if deployed adjacent to instances utilizing standard AWS/GCP access frameworks.
ソース⚠️ https://gist.github.com/YLChen-007/c1104c529975699ba347feedfbe02c5a
ユーザー
 Eric-c (UID 96848)
送信2026年04月23日 10:08 (5 月 ago)
モデレーション2026年06月20日 19:12 (2 months later)
ステータス承諾済み
VulDBエントリ372560 [BerriAI litellm 迄 1.82.2 MCP OpenAPI Spec Loader openapi_to_mcp_generator.py load_openapi_spec_async spec_path 特権昇格]
ポイント20

Want to know what is going to be exploited?

We predict KEV entries!