CVE-2025-0628: LiteLLM Has an Improper Authorization Vulnerability
Before litellm 1.61.15, a user with the low `internal_user_viewer` role received an over-privileged API key when logging in to the LiteLLM proxy. That key reaches admin endpoints such as `/users/list` and `/users/get_users`, so any account can act as a proxy admin. Upgrade to 1.61.15.
Published Mar 20, 2025 · Updated Oct 15, 2025 · Analysis Nov 1, 2026
What an attacker can do
When an internal_user_viewer signs in through the UI, LiteLLM hands them an API key that carries far more rights than their role allows. With that key they can call admin routes, including /users/list and /users/get_users. The advisory describes this as privilege escalation that lets any account become a PROXY ADMIN. The CVSS vector requires a login (low privileges) and scores confidentiality and integrity high.
A proxy admin on LiteLLM can see users and teams, and manage keys, models and spend. In a team where the proxy fronts every coding agent and app, that is a way for any holder of a read-only account to reach the keys and settings of everyone else. The fix commit shows the route lists and the response of the UI user listing being tightened. ui_view_users now returns a new LiteLLM_UserTableFiltered model with only user_id and user_email, to avoid exposing sensitive data. That commit message refers to an internal user escalating their role with the UI key.
Who is affected
The litellm PyPI package before 1.61.15, on proxies where people log in with accounts that carry the internal_user_viewer role or other internal user roles. Check the version:
pip show litellmIn the proxy admin UI, list users and note anyone with the internal_user_viewer role.
litellm
- Ecosystem
- PyPI
- Affected
- < 1.61.15
- Fixed in
- 1.61.15
- Check
pip show litellm
How to fix it
Upgrade to litellm 1.61.15.
pip install -U "litellm>=1.61.15"After upgrading, review the user list for unexpected roles and rotate the keys of any account that could have used the escalated key, along with virtual keys and provider keys that an admin could have read. The sources give no workaround short of upgrading; removing viewer accounts you do not need reduces who can try it.
How to tell if you were hit
Review proxy request logs for calls to /users/list and /users/get_users made with keys that belong to internal_user_viewer accounts. Look for changes to users, teams, keys or models made by accounts that should be read-only. Check for new virtual keys created by users who do not normally manage keys.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
An improper authorization vulnerability exists in the main-latest version of BerriAI/litellm. When a user with the role 'internal_user_viewer' logs into the application, they are provided with an overly privileged API key. This key can be used to access all the admin functionality of the application, including endpoints such as '/users/list' and '/users/get_users'. This vulnerability allows for privilege escalation within the application, enabling any account to become a PROXY ADMIN.
Questions
- Who can exploit CVE-2025-0628?
Someone with a valid login at the
internal_user_viewerrole. They need no extra interaction. The advisory says any account could become a proxy admin.- Which LiteLLM version fixes CVE-2025-0628?
1.61.15. Versions below it are listed as vulnerable.
- Does this affect the open internet?
Only through an account. The attacker must log in, so exposure is greatest where viewer accounts are given to many people or sign-up is open.
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 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
