LiteLLM Enterprise proxy flaw leaked master keys without a login (CVSS 10)

An unauthenticated request could make a licensed LiteLLM proxy read /proc/self/environ and send its master key and provider API keys to an attacker. Fixed in 1.103.10, 1.104.8, 1.105.6 and 1.106.5; here is who is exposed and what to rotate.

Christopher Ort
By i10X News Desk · Reviewed by Christopher Ort · 4 min read
Share
LiteLLM Enterprise proxy illustration: a gateway server leaking a glowing master key through an open data pipe
Image: AI-generated, i10X
On this page
  1. How a LiteLLM logging callback leaked the master key
  2. Check your LiteLLM Enterprise proxy today
  3. One step further: why LiteLLM keeps landing on patch lists

A LiteLLM proxy running with an Enterprise license could hand its master key to anyone who can reach it, no login needed. BerriAI rates the bug critical in its security advisory GHSA-w4c7-34wj-hqm8, and the matching record CVE-2026-145672, which reached NVD on 6 December, carries the maximum CVSS 3.1 score of 10.0. The fix shipped on 27 October in versions 1.103.10, 1.104.8, 1.105.6 and 1.106.5. Self-hosted open source proxies without a license are safe, the maintainers say, because the vulnerable code only loads when an Enterprise license is active.

How a LiteLLM logging callback leaked the master key

LiteLLM accepts per-request settings for its logging and callback integrations. On licensed proxies, the LLM routes took one of these values, gcs_path_service_account, from callers who had not authenticated. The field is meant to name a Google Cloud service account file. Instead, the proxy opened whatever local path it was given and posted the contents to a token endpoint of the caller’s choosing.

The obvious target is /proc/self/environ, the environment of the running process. On a typical deployment that file holds LITELLM_MASTER_KEY and the API keys for every model provider the proxy routes to. The master key makes the attacker a proxy admin, able to create virtual keys, read usage and logs and change where traffic goes. BerriAI adds that some configurations let the attacker go further and run Python code as root. Two researchers found the flaw independently: Dylan Ong of Karmasec and Cyrill Bannwart of Compass Security.

Check your LiteLLM Enterprise proxy today

  • Licensed or not? Only proxies with an Enterprise license configured are exposed. Pure open source installs can skip the emergency, but should still update.
  • Version. Check pip show litellm or your container tag. On the 1.106 line you need 1.106.5 or later; older lines need 1.105.6, 1.104.8 or 1.103.10.
  • Stopgap at the edge. If you cannot upgrade now, have your WAF, ingress or reverse proxy reject request bodies with the JSON keys standard_callback_dynamic_params, gcs_path_service_account, callbacks, success_callback or failure_callback. Expect this to break clients that legitimately set callbacks per request, so treat it as temporary.
  • Lock down egress. The theft needs an outbound POST to the attacker. If the proxy may only talk to your configured provider endpoints, the exfiltration fails even when the bug is hit.
  • Assume the keys are gone if you were exposed. A licensed proxy that was reachable from the internet on an old build should get a new master key and fresh provider keys. Then review request logs for bodies carrying the keys above and the host for unexpected outbound connections.
  • Harden for next time. BerriAI recommends loading the master key from a secret manager rather than the environment, setting a separate LITELLM_SALT_KEY and keeping the proxy off the public internet behind a VPN, mTLS or an authenticating ingress.

Other model gateway and proxy flaws we have covered are collected on our AI Security tracker.

One step further: why LiteLLM keeps landing on patch lists

The cause sits in LiteLLM’s job. A model gateway keeps every provider credential in one process and lets callers steer callbacks, routing and upstream URLs through request parameters, and that combination keeps producing bugs. The first page of BerriAI’s GitHub advisory list shows eight advisories published between 30 September and 5 December 2026, two of them critical: a salt key privilege escalation on 30 September and this file read on 27 October. Several others also abuse request-body fields, including Azure Entra credential parameters (12 November), a client-side api_base that poisons deployments (23 November) and Gemini managed agent routes that forward to arbitrary hosts (5 December). Our own tracker adds the backdoored 1.107.0 wheels in October and the actively exploited sandbox escape CVE-2026-40217.

The reach is large. pypistats counts about 112.6 million downloads of the litellm package over the last month and roughly 3.9 million in the last day (pypistats). Downloads include CI runs and mirrors and say nothing about how many licensed proxies exist, so this is not an install count. It does show why a gateway leak matters beyond the team that runs it: stolen provider keys bill usage to the victim’s OpenAI, Anthropic or Azure account, and the prompts, logs and spend data of every app behind the proxy become readable to the attacker.

The window for defenders is unusually long. The fixed builds appeared on PyPI on 27 October around 19:40 UTC (release 1.106.5), the same day as the advisory, while the CVE only landed in NVD on 6 December. By our count that is 40 days in which scanners that match on CVE IDs would not have flagged a vulnerable proxy, while anyone diffing the releases could see the fix. Teams that patch on CVE alerts alone may still be running an old build. Neither BerriAI nor NVD reports exploitation so far, and how many Enterprise deployments exist is still unknown.

How we checked

Checked on 6 December 2026, 07:26 CET.

  • Read BerriAI’s advisory GHSA-w4c7-34wj-hqm8, the NVD record and the first page of the LiteLLM advisory list on 6 December 2026.
  • Release times come from PyPI, download figures from pypistats; the 40 day gap is our own count.
  • We did not test the exploit or the WAF rule ourselves.
Christopher Ort

Christopher Ort

Christopher Ort is the editor of i10X News at i10x.ai. He has worked hands-on with AI tools, models and agent workflows for years and leads i10X’s coverage of AI launches, funding and research. He is the author of “The Style Penalty”, an SSRN study on how frontier AI models judge AI-written CVs, covered by heise online and t3n.

Editor's picks

  1. Custom GPTs Shut Down December 11: What Moves to Plugins and What Breaks
  2. Nvidia Nemotron 4: Super Due Early 2027, an 8B Decision Model Ships Dec. 15
  3. Claude Code Helped a CTO Copy Float’s Codebase. Default Logs Would Miss It
  4. Colossus 2 to Double in 30 Days, Musk Says, as SpaceX Hunts GB300s to Rent
  5. Grok for Builders Gives Free Ultra: How It Compares With Claude and Codex Offers