Skip to main content

LiteLLM EUVDEUVD-2026-134620

| CVE-2026-136536 MEDIUM
Server-Side Request Forgery (SSRF) (CWE-918)
2026-11-24 zdi-disclosures@trendmicro.com GHSA-vh8q-246j-mm6f
6.4
CVSS 3.0 · Vendor: trendmicro
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate to LiteLLM proxy
  2. Delivery
    Send chat request with spoofed api_base
  3. Exploit
    Bypass substring endpoint match
  4. Execution
    Proxy attaches server-held provider key
  5. Impact
    Exfiltrate credential to attacker host

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V4 - API and Web Service URL allowlisting, SSRF prevention
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Credential Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires a valid authenticated credential to the LiteLLM proxy (a virtual/API key), per PR:L - it is not reachable by anonymous remote attackers. The attacker then supplies an attacker-controlled endpoint-targeting field (api_base / base_url, and per the fix also fields like s3_endpoint_url, sagemaker_base_url, deployment_url, aws_bedrock_runtime_endpoint or observability hosts such as langfuse_host) in a chat completion request. For credential disclosure to pay off, the proxy must have provider secrets configured in its environment (e.g. GROQ_API_KEY) so the spoofed-host match causes that key to be attached as a Bearer token; for SSRF-to-internal/metadata the target must be network-reachable from the proxy. Limiting factors: authentication to the proxy is mandatory; impact is bounded to secrets/resources the proxy's service account can reach; and deployments that had enabled URL validation (user_url_validation) already had partial defense-in-depth. The single-tenant case where the only API-key holder is already an admin has little practical exposure.

Impact

This is a medium-severity (CVSS 6.4, AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N) authenticated SSRF in LiteLLM, and the signals are internally consistent rather than conflicting: network vector with low attack complexity, but PR:L means an attacker must already hold a valid credential (a LiteLLM virtual/API key) to the proxy - so this is not an unauthenticated internet-facing exposure. No CISA KEV listing and no EPSS score were supplied, and no working exploit code is referenced, so there is no evidence of active or at-scale exploitation; the vuln.today Decision label is 'this_month', not act_now or emergency, so this should be scheduled within the normal patch cycle rather than treated as a fire. The factor that elevates real-world concern above the raw score is the fix-PR evidence: the flaw lets an attacker coerce the proxy into reading a server-held provider API key (e.g. GROQ_API_KEY) from its environment and forwarding it as a Bearer credential to an attacker host - a credential/secret disclosure that is arguably more than the official C:L reflects, and the scope change (S:C) acknowledges impact reaching beyond the proxy itself. The dangerous populations are multi-tenant or shared LiteLLM gateways where low-privilege key holders should not be able to reach the proxy's stored admin secrets or internal/cloud-metadata endpoints.

Exploit ScenarioDerived

An authenticated low-privilege user of a LiteLLM proxy sends a chat completion request with a crafted api_base such as 'https://attacker.com/api.groq.com/openai/v1'. The naive 'endpoint in api_base' substring check matches it as a legitimate Groq endpoint, so the proxy loads its configured provider API key from the environment and sends it as a Bearer credential to the attacker-controlled host, leaking the secret (and enabling SSRF toward private/cloud-metadata targets). No confirmed public exploit code is referenced, but the fix PR (#26518) publicly documents the exact bypass string and mechanism, making a working exploit trivial to reconstruct.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 24, 2026

An authenticated server-side request forgery in the LiteLLM proxy lets any holder of a valid virtual/API key steer the proxy's outbound requests to an attacker-chosen endpoint by supplying a crafted api_base (or base_url) value in a chat completion request, and the fix indicates the same weakness extends to other endpoint-targeting fields such as s3_endpoint_url, sagemaker_base_url, deployment_url, aws_bedrock_runtime_endpoint and observability hosts like langfuse_host. The practical payoff is disclosure of provider secrets configured in the proxy's environment - for example the unanchored endpoint match could cause the server's GROQ_API_KEY to be attached as a Bearer token to a request sent to an attacker host - plus the ability to reach internal or cloud-metadata addresses that the proxy's service account can route to. Scored 6.4 with PR:L, so exploitation requires prior authentication to the proxy and is not an anonymous internet-facing exposure; no public exploit code was identified at time of analysis, and the issue was reported through Trend Micro ZDI (ZDI-CAN-29838 / ZDI-26-1081).

RemediationAI

Vendor-released patch: the fix is delivered in upstream pull request https://github.com/BerriAI/litellm/pull/26518 (referenced from ZDI-26-1081); the supplied data does not name a tagged release containing it, so confirm the installed LiteLLM version against the merged commit and upgrade to a build that includes it. If immediate upgrade is not possible, enable litellm.user_url_validation so validate_url, safe_get and async_safe_get reject private, loopback, cloud-metadata and DNS-rebinding targets - the trade-off is that admins deliberately pointing at internal endpoints (for example a self-hosted Ollama server) will be blocked at the proxy boundary and must consciously accept that SSRF risk. Independently, reduce the blast radius by restricting who can mint LiteLLM virtual keys and scoping them away from clientside api_base overrides, and because the disclosed material is the provider credential itself, rotate any provider secrets present in the proxy environment (GROQ_API_KEY and similar) and audit outbound proxy egress for requests to unexpected hosts. Neither workaround removes the underlying unanchored endpoint match, so treat the upgrade as the complete fix.

Affected VersionsENISA

LiteLLM 1.82.3

Affected Packages

euvd litellm no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The flaw is CWE-918 (server-side request forgery) rooted in how LiteLLM's provider-routing logic decided whether a caller-supplied api_base belonged to a known OpenAI-compatible provider. In litellm/litellm_core_utils/get_llm_provider_logic.py the check was an unanchored substring test, if endpoint in api_base, so a registered endpoint string such as api.groq.com/openai/v1 could be satisfied by a URL like https://attacker.com/api.groq.com/openai/v1 - the proxy would then select that provider, read the corresponding provider key from the environment and forward it as a Bearer credential to the attacker's host. The upstream fix (PR #26518) introduces _endpoint_matches_api_base, which normalizes both values with urllib.parse.urlparse (prefixing https:// when no scheme is present), requires exact case-insensitive hostname equality, and, when the registered endpoint carries a non-trivial path, requires the api_base path to match it on a segment boundary. The same PR adds defense in depth in two directions: vertex AI batch retrieval handlers (litellm/llms/vertex_ai/batches/handler.py) now wrap the sync and async client.get calls in safe_get / async_safe_get so DNS-rebind, private and cloud-metadata targets are rejected, and litellm/proxy/auth/auth_utils.py now treats a supplied api_key as necessary but not sufficient - check_complete_credentials validates api_base and base_url with validate_url when litellm.user_url_validation is enabled, and is_request_body_safe adds a blocklist of endpoint-targeting fields that retarget outbound traffic or observability callbacks. The trigger is a request kwarg supplied by the caller, so the attack surface is the proxy's clientside-override path rather than any parser memory-corruption primitive.

Know when Litellm 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

Vendor (trendmicro) PRIMARY 6.4 MEDIUM
AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
vuln.today AI 7.7 HIGH

Authenticated network attacker (PR:L) with a simple crafted api_base (AC:L) leaks server-held provider credentials across a trust boundary (S:C, C:H); no integrity or availability impact is shown, so I:N/A:N.

3.1 AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:L/SI:N/SA:N
Red Hat 4.3 MEDIUM

Primary rating from Vendor (trendmicro).

CVSS VectorVendor: trendmicro

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

DescriptionCVE.org

LiteLLM is_request_body_safe Server-Side Request Forgery Information Disclosure Vulnerability. This vulnerability allows remote attackers to disclose sensitive information on affected installations of LiteLLM. Authentication is required to exploit this vulnerability.

The specific flaw exists within the handling of the api_base parameter in chat completion requests. The issue results from the lack of proper validation of a URI prior to accessing resources. An attacker can leverage this vulnerability to disclose information in the context of the service account. Was ZDI-CAN-29838.

Threat Intelligence Overview

EPSS Score
0.4%
Top 73% exploitable
Prevalence
Medium
widely-used open-source LLM gateway/proxy, common in AI deployments but AI-specific
Data Quality
3 sources
Confidence: Low

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.4%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

CVE-2026-42271 HIGH POC
8.7 May 08

Remote command execution in LiteLLM proxy server versions 1.74.2 through 1.83.6 allows any authenticated user to execute

CVE-2026-42208 CRITICAL POC
9.3 May 08

SQL injection in LiteLLM proxy server versions 1.81.16 through 1.83.6 allows unauthenticated remote attackers to read an

CVE-2026-59822 HIGH POC
8.8 Jul 08

Authentication bypass in LiteLLM (BerriAI) proxy/AI Gateway before 1.84.0 lets a remote unauthenticated attacker reach M

CVE-2026-40217 HIGH POC
8.8 Apr 10

Remote code execution in BerriAI LiteLLM (all versions through 2026-04-08) enables authenticated attackers to execute ar

CVE-2024-2952 CRITICAL POC
9.8 Apr 10

BerriAI/litellm is vulnerable to Server-Side Template Injection (SSTI) via the `/completions` endpoint. Rated critical s

CVE-2024-4888 HIGH POC
8.1 Jun 06

BerriAI's litellm, in its latest version, is vulnerable to arbitrary file deletion due to improper input validation on t

CVE-2026-93355 HIGH POC
7.6 Sep 28

Authentication bypass in the LiteLLM proxy lets any party who already holds a valid JWT issued by the configured externa

CVE-2025-0330 HIGH POC
7.5 Mar 20

In berriai/litellm version v1.52.1, an issue in proxy_server.py causes the leakage of Langfuse API keys when an error oc

CVE-2024-9606 HIGH POC
7.5 Mar 20

In berriai/litellm before version 1.44.12, the `litellm/litellm_core_utils/litellm_logging.py` file contains a vulnerabi

CVE-2024-6587 HIGH POC
7.5 Sep 13

A Server-Side Request Forgery (SSRF) vulnerability exists in berriai/litellm version 1.38.10. Rated high severity (CVSS

CVE-2024-5225 HIGH POC
7.2 Jun 06

An SQL Injection vulnerability exists in the berriai/litellm repository, specifically within the `/global/spend/logs` en

CVE-2024-4889 HIGH POC
7.2 Jun 06

A code injection vulnerability exists in the berriai/litellm application, version 1.34.6, due to the use of unvalidated

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy