CVE-2025-0628: litellm: privilege escalation viewer→proxy admin via bad API key
GHSA-fjcf-3j3r-78rp HIGH CISA: ATTENDAny user with a 'viewer' role in litellm can obtain an API key that grants full proxy admin access, including user enumeration and admin endpoint control. If litellm is your LLM gateway—a common architecture in enterprise AI deployments—this is a critical exposure. Patch to 1.61.15 immediately, rotate all API keys issued before the patch, and audit access logs for /users/list and /users/get_users calls.
What is the risk?
Effective risk is higher than CVSS 8.1 suggests for AI-heavy organizations. litellm is the de facto LLM proxy layer in many enterprise AI stacks, acting as a single control plane for all model access. A viewer account (low-barrier to obtain) escalates to full admin with zero additional steps. Low complexity + network-accessible + no user interaction = trivial to weaponize. Not in CISA KEV yet, but the attack surface is broad given litellm's adoption.
What systems are affected?
| Package | Ecosystem | Vulnerable Range | Patched |
|---|---|---|---|
| LiteLLM | pip | < 1.61.15 | 1.61.15 |
Do you use LiteLLM? You're affected.
How severe is it?
What is the attack surface?
What should I do?
6 steps-
Patch: upgrade litellm to >= 1.61.15 immediately.
-
Rotate all API keys issued to 'internal_user_viewer' accounts—assume any key issued pre-patch is compromised.
-
Audit logs for unauthorized access to /users/list, /users/get_users, and other admin endpoints; look for viewer-role accounts making admin calls.
-
Network-level controls: restrict litellm admin endpoints to trusted internal IPs only (not publicly exposed).
-
Implement least-privilege role validation at the API key issuance layer and add integration tests that assert viewer roles cannot access admin endpoints.
-
Enable alerting on role-permission mismatches in your API gateway.
What does CISA's SSVC say?
Source: CISA Vulnrichment (SSVC v2.0). Decision based on the CISA Coordinator decision tree.
How is it classified?
Which compliance frameworks are affected?
This CVE is relevant to:
Frequently Asked Questions
What is CVE-2025-0628?
Any user with a 'viewer' role in litellm can obtain an API key that grants full proxy admin access, including user enumeration and admin endpoint control. If litellm is your LLM gateway—a common architecture in enterprise AI deployments—this is a critical exposure. Patch to 1.61.15 immediately, rotate all API keys issued before the patch, and audit access logs for /users/list and /users/get_users calls.
Is CVE-2025-0628 actively exploited?
No confirmed active exploitation of CVE-2025-0628 has been reported, but organizations should still patch proactively.
How to fix CVE-2025-0628?
1. Patch: upgrade litellm to >= 1.61.15 immediately. 2. Rotate all API keys issued to 'internal_user_viewer' accounts—assume any key issued pre-patch is compromised. 3. Audit logs for unauthorized access to /users/list, /users/get_users, and other admin endpoints; look for viewer-role accounts making admin calls. 4. Network-level controls: restrict litellm admin endpoints to trusted internal IPs only (not publicly exposed). 5. Implement least-privilege role validation at the API key issuance layer and add integration tests that assert viewer roles cannot access admin endpoints. 6. Enable alerting on role-permission mismatches in your API gateway.
What systems are affected by CVE-2025-0628?
This vulnerability affects the following AI/ML architecture patterns: LLM proxy and gateway deployments, Multi-model inference routing, Enterprise AI API management, Agent frameworks using litellm as backend, RAG pipelines routed through litellm.
What is the CVSS score for CVE-2025-0628?
CVE-2025-0628 has a CVSS v3.1 base score of 8.1 (HIGH). The EPSS exploitation probability is 0.41%.
What is the AI security impact?
Affected AI Architectures
MITRE ATLAS Techniques
AML.T0012 Valid Accounts AML.T0040 AI Model Inference API Access AML.T0049 Exploit Public-Facing Application AML.T0091.000 Application Access Token Compliance Controls Affected
What are the technical details?
Original Advisory
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.
Exploitation Scenario
An adversary targets an organization using litellm as their AI model gateway. They obtain a viewer-level account—via phishing, credential stuffing against a SSO portal, or simply by registering as a low-privilege user in a misconfigured instance. Upon login, litellm issues them an API key that silently carries admin-level permissions. The attacker calls GET /users/list to enumerate all accounts and their associated API keys, identifies high-value admin accounts, and pivots to full PROXY ADMIN control. From there, they can redirect model traffic to attacker-controlled endpoints (for prompt harvesting), revoke legitimate user access, or exfiltrate the full API key registry for downstream attacks against model providers.
Weaknesses (CWE)
CWE-266 — Incorrect Privilege Assignment: A product incorrectly assigns a privilege to a particular actor, creating an unintended sphere of control for that actor.
- [Architecture and Design, Operation] Very carefully manage the setting, management, and handling of privileges. Explicitly manage trust zones in the software.
- [Architecture and Design, Operation] Run your code using the lowest privileges that are required to accomplish the necessary tasks [REF-76]. If possible, create isolated accounts with limited privileges that are only used for a single task. That way, a successful attack will not immediately give the attacker access to the rest of the software or its environment. For example, database applications rarely need to run as the database administrator, especially in day-to-day operations.
Source: MITRE CWE corpus.
CVSS Vector
CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N References
Timeline
Related Vulnerabilities
CVE-2026-42208 9.8 LiteLLM: SQL injection exposes LLM API credentials
Same package: litellm CVE-2026-54352 9.6 Budibase: zip symlink bypass exposes all server secrets
Same package: litellm CVE-2026-35030 9.1 LiteLLM: auth bypass via JWT cache key collision
Same package: litellm CVE-2026-40217 8.8 LiteLLM: RCE via bytecode rewriting in guardrails API
Same package: litellm CVE-2024-6825 8.8 LiteLLM: RCE via post_call_rules callback injection
Same package: litellm