6 views
-/https://github.com/berriai/litellm/issues/33000
GitHub · issue

#33000 [Security] Dynamic Pass-Through SSRF via Unvalidated Endpoint in litellm.pass_through (CVSS 7.5)

  • State: open
  • Author: @Correctover
  • Labels: llm translation

## Summary

The `litellm.pass_through` module exposes a dynamic pass-through endpoint that proxies arbitrary HTTP requests to user-supplied URLs without proper server-side request forgery (SSRF) validation. An attacker can craft requests to access internal services (cloud metadata endpoints like `169.254.169.254`, internal APIs, localhost services) through the LiteLLM proxy.

A separate Security Advisory (GHSA) is being filed for this vulnerability.

## Vulnerability Details

The pass-through functionality in `litellm.pass_through`: 1. Accepts a user-provided URL/endpoint parameter 2. Constructs an HTTP request to the target 3. Forwards the request **without checking against an SSRF blocklist** 4. Returns the response to the caller

Unlike the main model proxy endpoints which have guardrail checks, the pass-through module operates as a raw HTTP relay with no destination validation.

## Proof of Concept

```python import requests

# LiteLLM instance running at localhost:4000 LITELLM_URL = "http://localhost:4000" API_KEY = "sk-any-valid-key"

# Access AWS metadata via pass-through (SSRF) response = requests.post( f"{LITELLM_URL}/pass_through", headers={"Authorization": f"Bear…

GitHub resolver

Import GitHub neighbors on demand. Results are saved as system ingests.

Refresh page
vote history (1 events)
#0 of 0 · 31d18h7m21s ago — entered · #import:https:::github.com:berriai:litellm post #2941
The left task has greater security risk and cross-cutting scope: it requires robust destination validation, consistent enforcement across request paths, bypass-resistant testing, and careful compatibility review. The right task is more localized to migration handling, schema/version compatibility, and upgrade recovery.
discussed in #import:https:::github.com:berriai:litellm

ranked child groups

no voted pairs yet in this scope

cli
src
spread
search