⚠️

Disclaimer & Liability

The content provided on this website is for educational, research, and security awareness purposes only. Any unauthorized, illegal, or abusive use of the information, tools, and techniques discussed is solely the responsibility of the user. The author and publisher assume no liability for any damages, injuries, or consequences resulting from the misuse of this content.

CVE-2026-136538: LiteLLM Virtual Key Alias Authorization Flaw Enables Privilege Escalation | Alireza Bolbolabadi - Red Team Security
LOADING

CVE-2026-136538: LiteLLM Virtual Key Alias Authorization Flaw Enables Privilege Escalation

Affected Products: 1.95.0

Executive summary

LiteLLM virtual keys are intended to constrain which models or model groups a user can invoke. The alias-handling logic in affected releases fails to maintain that boundary correctly, allowing an authenticated user to reach resources normally protected from the virtual key. The issue is tracked as CVE-2026-136538 and ZDI-26-1083, with ZDI-CAN-32649 as the internal reference.

ZDI rated the vulnerability 6.5 under CVSS v3.1: AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N. The key terms are network reachability, low attack complexity, and low privileges. Authentication is explicitly required. The assessed impact is confidentiality, while no integrity or availability impact is established by the supplied sources.

Technical overview

The defect occurs while LiteLLM processes model aliases associated with virtual keys. These aliases map user-facing model names to upstream models or model groups. The advisory characterizes the behavior as incorrect authorization: alias resolution does not consistently ensure that the resolved destination remains within the virtual key's entitlement.

As a result, a user presenting valid virtual-key credentials may submit a request that resolves to a model or resource the key was never intended to access. This is a post-authentication privilege-escalation issue rather than an authentication bypass.

The public sources do not disclose the exact triggering request syntax. Accordingly, the attack path described here is based on the advisory's characterization and should not be treated as a complete proof of concept.

Attack prerequisites and exploitation conditions

A plausible exploitation sequence is:

  1. The attacker obtains valid credentials for a LiteLLM virtual key.

  1. The key participates in a model alias or mapping configuration.

  1. The attacker submits a model request that causes the alias logic to resolve to a target outside the key's intended model scope.

  1. LiteLLM authorizes and forwards the request, exposing a resource that should have been denied.

The relevant requirement is authenticated access with a usable virtual key. The vulnerability is therefore most consequential in multi-tenant or managed deployments where virtual keys separate users or teams operating over shared model pools. It is less significant in single-user installations in which one key effectively grants access to every configured model.

No proof of concept, exploit code, or active exploitation campaign is included in the provided sources. That absence does not establish that exploitation is impossible; it means the public disclosure does not establish the vulnerability's exploitation status.

Affected systems

The linked vulnerability record identifies LiteLLM 1.95.0 as affected. The available material does not provide a complete version range, an introduction point, or the first release containing the fix. Deployments carrying the same virtual-key alias logic may also be exposed and should be evaluated against the vendor's fix.

Risk is greatest where:

  • LiteLLM is exposed to multiple users or tenants.

  • Virtual keys are used to restrict access to models or model groups.

  • Aliases point to shared, expensive, sensitive, or privileged upstream resources.

  • Authorization checks are delegated to LiteLLM rather than independently enforced at another gateway.

Mitigation

LiteLLM has issued an update through the upstream fix at https://github.com/BerriAI/litellm/pull/43049. Upgrade from 1.95.0, or from any release confirmed to contain the affected alias logic, to a version that incorporates that change. The supplied sources do not name the fixed release, so the project's release notes and repository history are needed to identify the correct upgrade target.

Where immediate upgrading is not possible:

  • Remove alias and mapping capabilities from virtual keys that do not require them.

  • Define explicit allowed models or model groups for every virtual key and enforce that scope independently of alias resolution.

  • Review aliases that point to shared or privileged model groups and re-scope any key whose configuration exceeds its intended access.

  • Restrict client-supplied alias parameters at an upstream gateway and bind each credential to a fixed model list.

  • Review virtual-key credentials and usage in multi-tenant environments for signs of unauthorized model access.

For detection, compare requests and resolved model targets with each virtual key's configured aliases and permitted model groups. Mismatches, access to unexpectedly broad model sets, and attempts to invoke models outside a key's scope warrant investigation.

After remediation, verify that legitimate aliases still resolve correctly and that requests for unauthorized model names are rejected.

Expert insight

This vulnerability illustrates that translation layers must preserve authorization boundaries. A model alias is not merely a routing convenience: it changes the effective resource selected by a request. If alias expansion occurs without revalidating the final target against the virtual key's allowed models, an abstraction intended to simplify routing can become a privilege-escalation path.

The combination of PR:L and C:H also matters. The flaw does not provide unauthenticated access, but it can materially weaken tenant isolation inside a shared LiteLLM deployment. The practical impact depends on what unauthorized models expose, whether provider-side credentials or sensitive context become reachable through the proxy, and whether unauthorized consumption creates cost or quota pressure. The supplied CVSS vector records no integrity or availability impact, and the available evidence does not justify stronger claims.

The disclosure timeline records the vulnerability as reported to the vendor on 2026-09-03 and publicly released on 2026-11-24. LiteLLM's publication of a corrective change provides a concrete remediation path, but organizations still need to map that change to a released version and verify that their virtual-key policies remain enforceable.

Actionable recommendations

  1. Identify the LiteLLM release currently deployed and determine whether it incorporates https://github.com/BerriAI/litellm/pull/43049.

  1. Prioritize exposed or multi-tenant LiteLLM 1.95.0 installations for remediation.

  1. Inventory virtual keys, aliases, allowed model lists, and model-group assignments.

  1. Re-scope or revoke aliases that expose privileged or shared models beyond a key's intended purpose.

  1. Review proxy and gateway logs for alias-resolution mismatches and unauthorized model access.

  1. Rotate virtual-key credentials and investigate anomalous usage where access outside the configured scope is identified.

  1. Test the upgraded deployment to confirm that legitimate aliases work and unauthorized targets are denied.

advisory medium CVE-2026-136538
·
← Back to Writeups