CVE-2026-47101: LiteLLM allows an authenticated internal_user to create API keys with access to routes that their role does not permit
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 litellmFor 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_routeswrite appears in/key/update,/key/regenerateand/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
Read for this analysis:
- https://www.obsidiansecurity.com/blog/litellm-privilege-escalation-rce
- https://github.com/advisories/GHSA-qrc4-49gv-mv9m
- https://nvd.nist.gov/vuln/detail/CVE-2026-47101
- https://github.com/BerriAI/litellm/commit/2220f3076ac89bd2a2e3439acf57dcfbec2434c9
- https://github.com/BerriAI/litellm/commit/5190bd07eb23a037745d86328096f54378f1614a
- https://github.com/BerriAI/litellm/commit/d910a95661fce3cdd36f3b06c03ecf9c46c6457c
- https://gist.github.com/13ph03nix/9ec616e1fdc77b3673509c60206e827f
- https://github.com/BerriAI/litellm/releases/tag/v1.83.14-stable
- https://huntr.com/bounties/8e75edfb-ff05-4e63-bfca-2d93d03fb3b9
- https://www.vulncheck.com/advisories/litellm-privilege-escalation-via-api-key-generation
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 entriesCVE-2026-114612
LiteLLM: Privilege Escalation to Proxy Admin via Cross-Domain Reuse of the Salt Key
high9.9Oct 27, 2026GHSA-g5ff-637f-6q2m
LiteLLM: internal_user_viewer arbitrary local file read via `vertex_ai_credentials`
high8.1Oct 27, 2026GHSA-hhww-mrg2-969h
LiteLLM vulnerable to reflected XSS in /sso/debug/callback
medium6.8Oct 27, 2026CVE-2026-84377
LiteLLM: Authenticated SSRF and provider-credential exfiltration via unvalidated request-body routing parameters
medium6.5Sep 30, 2026CVE-2026-59823
LiteLLM Proxy has server-side request forgery via the `user_config` request parameter
medium5.3Sep 17, 2026CVE-2026-37004
LiteLLM vulnerable to server-side template injection in the /prompts/test endpoint
critical9.8Aug 27, 2026
