/

CVE-2026-114612

Severity:

CRITICAL RISK

(9.9)

Privilege Escalation (CWE-269) in LiteLLM AI Proxy

CVE-2026-114612

Awaiting Analysis

Vulnerability type

Category:

Privilege Escalation

CWE:

CWE-269, CWE-345, CWE-441

Impact:

Authentication Bypass, Administrative Access, and Remote Command Execution

Severity:

CRITICAL RISK

(9.9)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

LiteLLM contains a cryptographic-context reuse flaw that can allow an authenticated internal user to obtain a forged administrator credential and have the proxy accept it as a bearer token. Successful exploitation may grant administrative access and enable arbitrary command execution through the MCP stdio endpoint, with exposure depending on the deployment configuration.

LiteLLM contains a cryptographic-context reuse flaw that can allow an authenticated internal user to obtain a forged administrator credential and have the proxy accept it as a bearer token. Successful exploitation may grant administrative access and enable arbitrary command execution through the MCP stdio endpoint, with exposure depending on the deployment configuration.

Affected context

The issue occurs in LiteLLM proxy deployments where the same cryptographic context is used for both at-rest secrets and session tokens. An authenticated internal user must be able to influence metadata processed by the API-key flow and receive the resulting encrypted credential. Later LiteLLM configurations are generally exposed under default settings, while older affected releases require the experimental UI login feature to be enabled.

The issue occurs in LiteLLM proxy deployments where the same cryptographic context is used for both at-rest secrets and session tokens. An authenticated internal user must be able to influence metadata processed by the API-key flow and receive the resulting encrypted credential. Later LiteLLM configurations are generally exposed under default settings, while older affected releases require the experimental UI login feature to be enabled.

Exploit preconditions

  • Attack surface: LiteLLM proxy API-key and authentication flows, including the MCP stdio endpoint
  • Required access: An authenticated internal account with the ability to provide or influence relevant metadata
  • Trigger point: Processing API-key metadata and subsequent bearer-token authentication
  • Why exploitation is possible: Cryptographic contexts intended for different security purposes are reused, allowing a ciphertext produced for one purpose to be accepted as an administrator session credential
  • Attack surface: LiteLLM proxy API-key and authentication flows, including the MCP stdio endpoint
  • Required access: An authenticated internal account with the ability to provide or influence relevant metadata
  • Trigger point: Processing API-key metadata and subsequent bearer-token authentication
  • Why exploitation is possible: Cryptographic contexts intended for different security purposes are reused, allowing a ciphertext produced for one purpose to be accepted as an administrator session credential

Why this happens

The underlying flaw is a failure to separate cryptographic domains for at-rest secrets and authentication tokens. Because the proxy reuses one cryptographic context across these purposes, authenticated users may obtain ciphertext that is valid in a different trust context and have it interpreted as a privileged identity. This behavior maps primarily to CWE-269: Improper Privilege Management, with related concerns involving CWE-345: Insufficient Verification of Data Authenticity and CWE-441: Unintended Proxy or Intermediary ('Confused Deputy').

The underlying flaw is a failure to separate cryptographic domains for at-rest secrets and authentication tokens. Because the proxy reuses one cryptographic context across these purposes, authenticated users may obtain ciphertext that is valid in a different trust context and have it interpreted as a privileged identity. This behavior maps primarily to CWE-269: Improper Privilege Management, with related concerns involving CWE-345: Insufficient Verification of Data Authenticity and CWE-441: Unintended Proxy or Intermediary ('Confused Deputy').

Potential impact

  • An attacker may bypass intended administrator authentication
  • An attacker could gain control over LiteLLM administrative functions
  • Arbitrary commands may be executed through the MCP stdio endpoint
  • Connected model providers, credentials, or proxy configuration may be exposed or altered
  • The proxy could be used as a privileged intermediary for further compromise
  • An attacker may bypass intended administrator authentication
  • An attacker could gain control over LiteLLM administrative functions
  • Arbitrary commands may be executed through the MCP stdio endpoint
  • Connected model providers, credentials, or proxy configuration may be exposed or altered
  • The proxy could be used as a privileged intermediary for further compromise

General mitigation guidance

Mitigation should focus on separating cryptographic purposes and strengthening privilege boundaries.

Defensive patterns include:

  • Use distinct cryptographic keys, contexts, labels, and verification paths for stored secrets, session tokens, and administrator credentials
  • Apply domain separation and explicit token-purpose validation before accepting authentication material
  • Bind bearer tokens to narrowly defined identities, audiences, issuers, and lifetimes
  • Avoid returning encrypted authentication material in responses to lower-privileged users
  • Require independent authorization checks for administrative operations and MCP command execution
  • Run MCP and proxy components with least privilege and restrict access to sensitive provider credentials
  • Disable unnecessary administrative or experimental authentication surfaces and enforce secure defaults
  • Monitor and rotate potentially exposed signing or encryption material according to incident-response procedures

Mitigation should focus on separating cryptographic purposes and strengthening privilege boundaries.

Defensive patterns include:

  • Use distinct cryptographic keys, contexts, labels, and verification paths for stored secrets, session tokens, and administrator credentials
  • Apply domain separation and explicit token-purpose validation before accepting authentication material
  • Bind bearer tokens to narrowly defined identities, audiences, issuers, and lifetimes
  • Avoid returning encrypted authentication material in responses to lower-privileged users
  • Require independent authorization checks for administrative operations and MCP command execution
  • Run MCP and proxy components with least privilege and restrict access to sensitive provider credentials
  • Disable unnecessary administrative or experimental authentication surfaces and enforce secure defaults
  • Monitor and rotate potentially exposed signing or encryption material according to incident-response procedures

How teams detect issues like this

Detection can combine code review, static analysis, and runtime monitoring:

  • Search for shared encryption or signing contexts used across secrets storage and authentication-token workflows
  • Review whether token validation distinguishes purpose, audience, issuer, identity, and privilege level
  • Flag API responses that return ciphertext or credential-like metadata to authenticated but non-administrative users
  • Inspect authorization checks around API-key generation, administrator endpoints, and MCP command execution
  • Enforce architectural policies requiring cryptographic domain separation and least-privilege service accounts
  • Monitor for unusual administrator-token issuance, replay, privilege changes, and MCP process launches
  • Use automated security review tools to identify credential confusion and missing authorization-boundary checks

Detection can combine code review, static analysis, and runtime monitoring:

  • Search for shared encryption or signing contexts used across secrets storage and authentication-token workflows
  • Review whether token validation distinguishes purpose, audience, issuer, identity, and privilege level
  • Flag API responses that return ciphertext or credential-like metadata to authenticated but non-administrative users
  • Inspect authorization checks around API-key generation, administrator endpoints, and MCP command execution
  • Enforce architectural policies requiring cryptographic domain separation and least-privilege service accounts
  • Monitor for unusual administrator-token issuance, replay, privilege changes, and MCP process launches
  • Use automated security review tools to identify credential confusion and missing authorization-boundary checks

Sources

SourceLink
github.comgithub.com/BerriAI/litellm/commit/1d5fdc87fed66b49e1df8cf7d708ad93249eb7d0
github.comgithub.com/BerriAI/litellm/commit/9161d7f9d6073603ba61ee4aa5e2c0ef5b37a81b
github.comgithub.com/BerriAI/litellm/commit/9fa1a641119dd0d4fe43e93622eae5f482ceb63f
github.comgithub.com/BerriAI/litellm/commit/a80eacacee118fbed54e3d98f239d17a63fac818
github.comgithub.com/BerriAI/litellm/commit/f7cd90f09e9716652b38daec9f0640cdf49d582b
github.comgithub.com/BerriAI/litellm/releases/tag/v1.100.4
github.comgithub.com/BerriAI/litellm/releases/tag/v1.101.3
github.comgithub.com/BerriAI/litellm/releases/tag/v1.102.2
github.comgithub.com/BerriAI/litellm/releases/tag/v1.103.1
github.comgithub.com/BerriAI/litellm/releases/tag/v1.104.0-rc.2
github.comgithub.com/BerriAI/litellm/security/advisories/GHSA-7hp6-4w63-5g45

Frequently asked

questions

It can be exploitable through the LiteLLM proxy API when the attacker has authenticated internal access and can influence the relevant metadata. The exact reachability depends on network exposure and deployment controls.

No. The described attack begins with an authenticated internal user who can interact with the affected API-key flow; the flaw may then allow a forged administrator identity to be accepted.

Separate cryptographic contexts by purpose, validate token purpose and claims explicitly, and enforce independent authorization checks for administrative and MCP operations.

Apply cryptographic domain separation, avoid returning reusable credential material, use least-privilege identities, and test authentication flows for cross-context token acceptance.

It can be exploitable through the LiteLLM proxy API when the attacker has authenticated internal access and can influence the relevant metadata. The exact reachability depends on network exposure and deployment controls.

No. The described attack begins with an authenticated internal user who can interact with the affected API-key flow; the flaw may then allow a forged administrator identity to be accepted.

Separate cryptographic contexts by purpose, validate token purpose and claims explicitly, and enforce independent authorization checks for administrative and MCP operations.

Apply cryptographic domain separation, avoid returning reusable credential material, use least-privilege identities, and test authentication flows for cross-context token acceptance.

Find out what's already
exploitable in your codebase.