NewApp Monitoring is liveSign up free
AgentbeamBeta
AI agent vulnerability · LiteLLM

CVE-2026-47101: LiteLLM allows an authenticated internal_user to create API keys with access to routes that their role does not permit

highCVSS 4.0 8.7 · 3.1 8.8GHSA-qrc4-49gv-mv9m

LiteLLM before 1.83.14 lets a logged-in `internal_user` mint an API key whose `allowed_routes` include admin-only routes. The proxy stores the field without checking it against the user's role, and the key then reaches those routes. The result is privilege escalation from `internal_user` toward `proxy_admin`. Upgrade to 1.83.14.

Published May 21, 2026 · Updated Jun 23, 2026 · Analysis Oct 26, 2026

What an attacker can do

The /key/generate handler checks only that the new key's user_id matches the caller. It never validates allowed_routes and stores the supplied value as is. allowed_routes also acts as a fallback grant during route checks. A default internal_user can therefore create a key with a wildcard like /* and use it on any route, including admin ones. Per the Obsidian write-up, the same unchecked write exists in /key/update, /key/regenerate and /key/service-account/generate (CWE-863).

The attacker needs a valid account at the lowest useful level and network access to the proxy. No user interaction is needed.

The write-up shows how this chains. The widened key reaches /user/update, where the sibling flaw CVE-2026-47102 lets the user set their own role to proxy_admin. A proxy_admin can read all users, teams, keys, models and prompt history, and the write-up says registering a stdio MCP server is effectively code execution on the proxy host. LiteLLM proxies hold the provider API keys for every model your team uses, so a compromise exposes all of them.

Who is affected

The litellm package on PyPI before 1.83.14, when you run the LiteLLM proxy with internal_user accounts. Embedded SDK use without the proxy has no role system to bypass. Check:

pip show litellm

For a container deployment, read the version from the image tag or the proxy's /health/readiness response. Then list keys and their allowed_routes values to see if any user holds routes beyond their role.

litellm

Ecosystem
PyPI
Affected
< 1.83.14
Fixed in
1.83.14
Check
pip show litellm

How to fix it

Upgrade to litellm 1.83.14:

pip install --upgrade 'litellm>=1.83.14'

Pull request 25445 (April 9, 2026) blocked non-admin users from setting allowed_routes on generated or updated keys. Pull requests 26492 and 26493 closed the remaining bypasses. The Obsidian write-up says the complete set is in v1.83.14-stable and later. It describes no workaround short of upgrading.

After upgrading, audit who holds proxy_admin, review existing keys and their allowed_routes, and revoke any key that has routes beyond its owner's role.

How to tell if you were hit

The write-up gives no signatures. Audit the key table for keys with an allowed_routes value such as /* that belong to non-admin users, and for keys created or updated by an internal_user with that field set. List accounts with the proxy_admin role and compare against your known admins. Review registered guardrails, callbacks and MCP servers for entries you did not add. Rotate the provider keys stored in the proxy if you find a hit.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

LiteLLM prior to 1.83.14 allows an authenticated internal_user to create API keys with access to routes that their role does not permit. When generating a key, the allowed_routes field is stored without verifying that the specified routes fall within the user's own permissions. A key created with access to admin-only routes can then be used to reach those routes successfully, bypassing the role-based access controls that would otherwise block the request, enabling full privilege escalation from internal_user to proxy_admin.

Questions

Can a regular user really become proxy_admin?

Through a chain, yes. The Obsidian write-up combines this flaw with CVE-2026-47102, which lets a user change their own user_role. Fixing both closes the path.

Which version fixes CVE-2026-47101?

litellm 1.83.14. Earlier fixes in pull request 25445 were incomplete, and pull requests 26492 and 26493 closed the remaining bypasses.

Does it affect more than /key/generate?

Per the write-up, the same unchecked allowed_routes write appears in /key/update, /key/regenerate and /key/service-account/generate.

Is it exploited in the wild?

The sources do not say so, and there is no CISA KEV flag. The EPSS score is 0.0133.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology

More LiteLLM vulnerabilities

All LiteLLM entries