Back to Intelligence

CVE-2026-145672: LiteLLM Unauthenticated File Read Exposes Master Keys — Detection and Remediation Guide

SA
Security Arsenal Team
December 5, 2026
13 min read

If your organization runs a LiteLLM proxy to broker traffic to OpenAI, Anthropic, Azure OpenAI, Google Vertex, or any other LLM provider, stop reading this intro and check your version. CVE-2026-145672 is a CVSS 10.0, network-exploitable, unauthenticated file read vulnerability in BerriAI LiteLLM Enterprise-licensed proxies — and the exploitation path described in the NVD record is as bad as it gets. By abusing callback parameters such as gcs_path_service_account sent in requests to LLM routes, a remote attacker can force the proxy to read an arbitrary local file and ship its contents to an attacker-controlled URL. The named target: /proc/self/environ, which on a typical LiteLLM deployment contains LITELLM_MASTER_KEY and every upstream provider API key in the environment. That is full administrative takeover of the proxy — and with the provider keys, full access to your LLM spend, your model endpoints, and potentially every prompt and completion flowing through it.

This is not a theoretical weakness. The attack chain is short, requires zero authentication, and targets a component that is, by design, internet- or at least broadly network-reachable and sitting on a pile of high-value secrets. If you run LiteLLM in front of production workloads, treat this as an emergency change.

Technical Analysis

Affected Products and Versions

Per the NVD record for CVE-2026-145672, the following BerriAI LiteLLM release trains are vulnerable:

  • 1.103.x — all versions before 1.103.10
  • 1.104.x — all versions before 1.104.8
  • 1.105.x — all versions before 1.105.6
  • 1.106.x — all versions before 1.106.5

Critically, the vulnerable functionality is tied to Enterprise-licensed proxy deployments — the feature surface that handles provider callbacks (in this case Google Cloud Storage service-account handling) is where the flaw lives. If you operate a LiteLLM Enterprise proxy that terminates LLM routes for your organization, assume you are in scope until version verification proves otherwise.

How the Vulnerability Works — Defender's View of the Attack Chain

The vulnerability is a classic untrusted-input-to-file-read flaw with an exfiltration channel bolted on:

  1. Attacker sends an unauthenticated request to an LLM route on the LiteLLM proxy (e.g., the chat completions or completions endpoints the proxy exposes).
  2. The request includes callback parameters — the documented example is gcs_path_service_account — that the proxy interprets as a local filesystem path.
  3. The proxy reads the file at that path on the host/container filesystem and transmits the contents to an attacker-chosen URL specified in the callback configuration.
  4. The attacker points the path at /proc/self/environ — a Linux pseudo-file that contains the environment variables of the LiteLLM process itself. In real-world LiteLLM deployments, that environment routinely contains LITELLM_MASTER_KEY, OPENAI_API_KEY, ANTHROPIC_API_KEY, AZURE_API_KEY, database connection strings, and cloud credentials.
  5. With LITELLM_MASTER_KEY in hand, the attacker authenticates as full admin to the proxy — able to create keys, modify routing, read logs containing prompt data, and pivot to every upstream provider account.

The exploitation requirements are trivially low: network reachability to the proxy's HTTP listener and knowledge of the parameter name, which is now public. There is no race condition, no memory corruption, no authentication barrier. This is why NVD assigned CVSS 10.0 with a NETWORK attack vector.

Exploitation Status

At the time of writing, the NVD entry (https://nvd.nist.gov/vuln/detail/CVE-2026-145672) documents the vulnerability and affected versions; defenders should check CISA's Known Exploited Vulnerabilities catalog daily for addition, because a CVSS 10 unauthenticated credential-theft bug against a widely deployed AI gateway is exactly the profile that lands on KEV fast. Regardless of KEV status: the exploitation technique is fully described in public, the parameter names are known, and LiteLLM proxies are trivially fingerprintable on the internet. Operate under the assumption of active scanning and opportunistic exploitation. If your proxy was exposed and unpatched, you must also assume possible compromise and plan for credential rotation, not just patching.

Why This Hurts So Much

LiteLLM proxies are credential concentrators. The entire value proposition of the product is that it holds every provider key centrally so your applications don't have to. That architectural convenience becomes a catastrophic blast radius when the proxy itself is the weak point. Compromise of LITELLM_MASTER_KEY means:

  • Silent minting of unlimited virtual keys with arbitrary budgets
  • Access to proxy logs and spend-tracking databases — which frequently contain full prompt/response bodies, i.e., your sensitive data and your customers' data
  • Abuse of upstream provider accounts (financial fraud, model access, quota exhaustion)
  • A trusted pivot point into whatever network segment hosts your AI infrastructure

Detection & Response

This is a technical threat with concrete, observable indicators. The good news: exploitation is noisy at the HTTP layer. An attacker must send a recognizable parameter (gcs_path_service_account or sibling callback path parameters) containing a local file path — and the exfiltration itself is an outbound connection from the LiteLLM process to an arbitrary external URL. Both are detectable.

SIGMA Rules

The following rules target the two highest-fidelity observables: (1) web/proxy access logs showing the callback parameter abuse, and (2) the LiteLLM process reading /proc/self/environ or making unexpected outbound connections. Rule 1 assumes your LiteLLM access logs (or upstream reverse proxy / WAF logs) are ingested as a webserver/proxy log source — normalize field names to your pipeline.

YAML
---
title: LiteLLM Callback Parameter File-Path Injection (CVE-2026-145672)
id: 8c2e1f47-3b9a-4d55-a1c2-7f4e9b0d6a31
status: experimental
description: Detects requests to LiteLLM LLM routes containing callback parameters that specify local filesystem paths or external exfiltration URLs, consistent with exploitation of CVE-2026-145672 unauthenticated file read.
references:
  - https://nvd.nist.gov/vuln/detail/CVE-2026-145672
  - https://attack.mitre.org/techniques/T1190/
author: Security Arsenal
date: 2026/04/06
tags:
  - attack.initial_access
  - attack.t1190
logsource:
  category: webserver
  product: linux
detection:
  selection_param:
    cs-uri-query|contains:
      - 'gcs_path_service_account'
      - 'service_account'
      - 'callback_url'
  selection_path:
    cs-uri-query|contains:
      - '/proc/'
      - '/etc/'
      - '%2fproc%2f'
      - '%2fetc%2f'
      - 'file://'
      - 'environ'
  condition: selection_param and selection_path
falsepositives:
  - Legitimate GCS integrations that reference service account paths in normal configuration (these should not appear in request query strings; configuration-time values live in config files, not HTTP requests)
level: critical
---
title: LiteLLM Process Reading Sensitive Files or Spawning Unexpected Outbound Traffic
id: 3f7a9c15-8e2b-4c61-b9d4-5a1e8f2c7d90
status: experimental
description: Detects the LiteLLM/uvicorn Python process opening /proc/self/environ or other sensitive host files, or establishing outbound network connections to non-LLM-provider destinations — behavior consistent with post-exploitation exfiltration via CVE-2026-145672.
references:
  - https://nvd.nist.gov/vuln/detail/CVE-2026-145672
  - https://attack.mitre.org/techniques/T1041/
author: Security Arsenal
date: 2026/04/06
tags:
  - attack.exfiltration
  - attack.t1041
  - attack.credential_access
  - attack.t1552
logsource:
  category: file_event
  product: linux
detection:
  selection_proc:
    Image|contains:
      - 'python'
      - 'uvicorn'
      - 'litellm'
  selection_file:
    TargetFilename|contains:
      - '/proc/self/environ'
      - '/proc/1/environ'
      - '/etc/shadow'
      - '/etc/ssl/private'
      - '.aws/credentials'
      - '.ssh/'
  condition: selection_proc and selection_file
falsepositives:
  - Monitoring agents reading process environ files (typically run under their own binary, not python/uvicorn)
  - Local debugging by administrators
level: high
---
title: Outbound Connection from LiteLLM Process to Non-Provider Destination
id: 61b4d2e8-9a3c-4f17-8c5b-2d6e1a9f4b72
status: experimental
description: Detects outbound HTTPS connections initiated by the LiteLLM proxy process to destinations outside the known set of LLM provider and cloud endpoints, indicating possible attacker-chosen exfiltration URL from CVE-2026-145672 exploitation.
references:
  - https://nvd.nist.gov/vuln/detail/CVE-2026-145672
  - https://attack.mitre.org/techniques/T1567/
author: Security Arsenal
date: 2026/04/06
tags:
  - attack.exfiltration
  - attack.t1567.002
logsource:
  category: network_connection
  product: linux
detection:
  selection_proc:
    Image|contains:
      - 'python'
      - 'uvicorn'
  selection_port:
    DestinationPort:
      - 80
      - 443
      - 8080
      - 8443
  filter_known_providers:
    DestinationHostname|contains:
      - 'api.openai.com'
      - 'api.anthropic.com'
      - 'openai.azure.com'
      - 'googleapis.com'
      - 'bedrock-runtime'
      - 'amazonaws.com'
      - 'api.cohere'
      - 'api.mistral.ai'
  condition: selection_proc and selection_port and not filter_known_providers
falsepositives:
  - Self-hosted or private model endpoints (vLLM, Ollama, internal gateways) — baseline these destinations before deployment
  - Telemetry/license check-ins to LiteLLM infrastructure
level: high

A note on tuning: rule three will only be quiet if you have actually inventoried where your LiteLLM proxy legitimately talks. Do that inventory now — it doubles as your exfiltration allowlist for egress filtering (see Remediation).

KQL — Microsoft Sentinel / Defender

LiteLLM is a Linux/Python workload, so in most environments the data arrives in Sentinel via Syslog/CEF from the host, or via web-access logs forwarded from a reverse proxy, WAF, or API gateway in front of LiteLLM. The first query hunts request logs for the exploit pattern; the second hunts Syslog for the file-read/exfil artifacts.

KQL — Microsoft Sentinel / Defender
// Hunt 1: Requests to LiteLLM routes carrying callback file-path parameters
// Adjust table/columns to your ingestion (W3CIISLog, AzureDiagnostics, custom LiteLLM access logs)
let lookback = 14d;
union isfuzzy=true
    (CommonSecurityLog
    | where TimeGenerated > ago(lookback)
    | where RequestURL has_any ("gcs_path_service_account", "callback_url")
       or RequestURL has_any ("/proc/", "environ", "%2fproc%2f")
    | project TimeGenerated, SourceIP, RequestURL, RequestMethod, DestinationHostName, DeviceAction),
    (Syslog
    | where TimeGenerated > ago(lookback)
    | where SyslogMessage has_any ("gcs_path_service_account", "/proc/self/environ", "/proc/1/environ")
    | project TimeGenerated, HostName, ProcessName, SyslogMessage)
| sort by TimeGenerated desc

// Hunt 2: LiteLLM proxy process initiating connections to non-provider destinations
// Requires Defender for Endpoint on the proxy host or forwarded process/network telemetry
let llm_providers = dynamic(["api.openai.com", "api.anthropic.com", "openai.azure.com",
    "googleapis.com", "amazonaws.com", "api.mistral.ai", "api.cohere.ai"]);
DeviceNetworkEvents
| where TimeGenerated > ago(7d)
| where InitiatingProcessFileName has_any ("python", "python3", "uvicorn")
   or InitiatingProcessCommandLine has "litellm"
| where RemotePort in (80, 443, 8080, 8443)
| extend RemoteHost = tostring(parse_url(RemoteUrl).Host)
| where isempty(RemoteHost) or RemoteHost !in~ (llm_providers)
| summarize ConnectionCount = count(), FirstSeen = min(TimeGenerated), LastSeen = max(TimeGenerated)
    by DeviceName, InitiatingProcessCommandLine, RemoteIP, RemoteHost, RemotePort
| sort by ConnectionCount desc

If hunt 1 returns any hit with a /proc/ or environ reference, escalate immediately to incident response — that string has no legitimate reason to appear in a request to an LLM route.

Velociraptor VQL

For live forensics on a suspected LiteLLM host, this artifact enumerates the running proxy process, confirms the installed package version, and lists its active network connections — the three things you need in the first ten minutes of triage.

VQL — Velociraptor
-- Triage artifact: LiteLLM proxy compromise assessment (CVE-2026-145672)
-- 1. Identify running LiteLLM/uvicorn processes and their command lines
SELECT Pid, Name, Exe, CommandLine, Username, CreateTime
FROM pslist()
WHERE CommandLine =~ 'litellm|uvicorn|gunicorn'
   OR Exe =~ 'python'

-- 2. Check installed litellm version via pip metadata
SELECT Pid, Name, CommandLine,
       read_file(filename='/usr/local/lib/python3.11/site-packages/litellm-*/METADATA') AS PackageMetadata
FROM pslist()
WHERE CommandLine =~ 'litellm'

-- 3. Map active outbound connections from the proxy process
SELECT Pid, Name, CommandLine, netstat().LocalIP, netstat().LocalPort,
       netstat().RemoteIP, netstat().RemotePort, netstat().Status
FROM pslist()
WHERE CommandLine =~ 'litellm|uvicorn'

On containers, run the equivalent inside the pod (kubectl exec) since Velociraptor on the node sees the container runtime rather than the LiteLLM process directly. Also collect the proxy container's environment block — but handle it as compromised credential material, not evidence to paste into tickets.

Remediation Script — Verify Version and Patch

The following Bash script audits every Python environment on a LiteLLM host for a vulnerable package version, upgrades to the fixed release for the running major train, and flags sensitive environment variables that must be rotated if the host was exposed. Run it on every proxy node and container image build pipeline.

Bash / Shell
#!/usr/bin/env bash
# CVE-2026-145672 — LiteLLM unauthenticated file read: audit & remediate
# Fixed versions: 1.103.10 | 1.104.8 | 1.105.6 | 1.106.5 (or latest)
set -euo pipefail

echo "=== [1/4] Locating installed litellm versions ==="
for pip in $(command -v pip pip3 2>/dev/null); do
  ver=$("$pip" show litellm 2>/dev/null | awk '/^Version:/{print $2}')
  [ -n "$ver" ] && echo "  Found litellm $ver via $pip"
done

# Container image check (if docker present)
if command -v docker >/dev/null 2>&1; then
  docker ps --format '{{.Image}} {{.Names}}' | grep -i litellm || echo "  No running litellm containers found"
fi

echo "=== [2/4] Upgrading to fixed version ==="
pip3 install --upgrade "litellm[proxy]>=1.106.5" || {
  echo "ERROR: upgrade failed — check index/proxy connectivity"; exit 1; }
NEW_VER=$(pip3 show litellm | awk '/^Version:/{print $2}')
echo "  Installed version now: $NEW_VER"

echo "=== [3/4] Verifying fix applied ==="
python3 - <<'EOF'
from importlib.metadata import version
from packaging.version import Version
v = Version(version("litellm"))
floor = {"1.103": Version("1.103.10"), "1.104": Version("1.104.8"),
         "1.105": Version("1.105.6"), "1.106": Version("1.106.5")}
train = f"{v.major}.{v.minor}"
if train in floor and v < floor[train]:
    raise SystemExit(f"VULNERABLE: litellm {v} < {floor[train]}")
print(f"OK: litellm {v} is at or above the fixed release for its train")
EOF

echo "=== [4/4] Compromise indicators — review before assuming clean ==="
# Look for the exploit pattern in local proxy/access logs
grep -REl 'gcs_path_service_account|/proc/self/environ|/proc/1/environ' \
  /var/log /opt/litellm 2>/dev/null | head -20 || echo "  No log hits found"
# Flag secrets present in process environment that MUST be rotated if exposure is suspected
tr '\0' '\n' < /proc/$(pgrep -f 'litellm' | head -1)/environ 2>/dev/null \
  | grep -E '^(LITELLM_MASTER_KEY|OPENAI_API_KEY|ANTHROPIC_API_KEY|AZURE_API_KEY|DATABASE_URL)=' \
  | cut -d= -f1 || echo "  LiteLLM process not running or env not readable"
echo "DONE. If any log hits were found, treat as incident: rotate ALL keys above."

Rebuild container images with pinned fixed versions (litellm==1.106.5 or newer for the latest train) rather than relying on runtime upgrades — runtime patching inside containers does not survive a redeploy.

Remediation

1. Patch immediately. Upgrade to the fixed release for your train: 1.103.10, 1.104.8, 1.105.6, or 1.106.5 and later. Pull the official guidance from the NVD record (https://nvd.nist.gov/vuln/detail/CVE-2026-145672) and BerriAI's LiteLLM security advisories/release notes on GitHub. Given CVSS 10.0 and a public exploitation path, this belongs in your 24–48 hour emergency patch window, not the next maintenance cycle.

2. Restrict network exposure while patching. If you cannot patch today, place the proxy behind an authenticating reverse proxy or API gateway and block requests containing gcs_path_service_account and other callback path parameters at the WAF layer. Deny all inbound access from untrusted networks — an unauthenticated vulnerability means any reachable client is a potential attacker.

3. Rotate everything the proxy touches — if exposure predates the patch. This is the step teams skip and regret. If your proxy was internet-reachable while vulnerable, rotate LITELLM_MASTER_KEY, every provider API key held by the proxy, database credentials, and cloud service-account material. Review LiteLLM spend logs and virtual-key inventories for keys you did not create. Review provider-side usage for anomalous spend or model calls.

4. Lock down egress. The exfiltration channel depends on the proxy being able to reach an arbitrary attacker URL. Implement egress filtering that permits only the enumerated LLM provider endpoints and required cloud services. This converts a CVSS 10 data-theft bug into a largely unexploitable one even before patching — defense in depth that pays off for the next proxy vulnerability too.

5. Stop running secrets in long-lived process environments where feasible. /proc/self/environ was the jackpot target because LiteLLM loads keys from environment variables. Where your deployment model allows, use short-lived credentials, workload identity (IRSA/managed identity), or a secrets manager with in-memory retrieval, reducing what an environ read yields.

6. Hunt retroactively. Run the KQL and Sigma content above against at least 30 days of retained proxy and WAF logs. Patch-and-forget on a public-exploit-path vulnerability is how "we patched" becomes "we were breached three weeks before we patched."

Related Resources

Security Arsenal Penetration Testing Services AlertMonitor Platform Book a SOC Assessment vulnerability-management Intel Hub

Is your security operations ready?

Get a free SOC assessment or see how AlertMonitor cuts through alert noise with automated triage.