Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to LiteLLM proxy
-
DeliverySend chat request with spoofed api_base
-
ExploitBypass substring endpoint match
-
ExecutionProxy attaches server-held provider key
-
ImpactExfiltrate 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
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.
Primary rating from Vendor (trendmicro).
CVSS VectorVendor: trendmicro
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.
Zero Day Initiative Advisories
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
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.
Remote command execution in LiteLLM proxy server versions 1.74.2 through 1.83.6 allows any authenticated user to execute
SQL injection in LiteLLM proxy server versions 1.81.16 through 1.83.6 allows unauthenticated remote attackers to read an
Authentication bypass in LiteLLM (BerriAI) proxy/AI Gateway before 1.84.0 lets a remote unauthenticated attacker reach M
Remote code execution in BerriAI LiteLLM (all versions through 2026-04-08) enables authenticated attackers to execute ar
BerriAI/litellm is vulnerable to Server-Side Template Injection (SSTI) via the `/completions` endpoint. Rated critical s
BerriAI's litellm, in its latest version, is vulnerable to arbitrary file deletion due to improper input validation on t
Authentication bypass in the LiteLLM proxy lets any party who already holds a valid JWT issued by the configured externa
In berriai/litellm version v1.52.1, an issue in proxy_server.py causes the leakage of Langfuse API keys when an error oc
In berriai/litellm before version 1.44.12, the `litellm/litellm_core_utils/litellm_logging.py` file contains a vulnerabi
A Server-Side Request Forgery (SSRF) vulnerability exists in berriai/litellm version 1.38.10. Rated high severity (CVSS
An SQL Injection vulnerability exists in the berriai/litellm repository, specifically within the `/global/spend/logs` en
A code injection vulnerability exists in the berriai/litellm application, version 1.34.6, due to the use of unvalidated
EUVD-2026-134620
GHSA-vh8q-246j-mm6f
NVD
CVE.org
EPSS
Exploit-DB