Skip to content

LiteLLM 1.107.0 Compromise

Summary

2026-10-21. Renovate proposed LiteLLM v1.107.0, and it was merged. That image contained a credential stealer and a remote code loader (BerriAI/litellm#47826). It ran for about 5 hours before it was found. The secrets the pod could read were treated as leaked and rotated the same day.

Timeline

  • 13:46 UTC. #2972, a Renovate PR for ghcr.io/berriai/litellm:v1.107.0, was merged.
  • Between 13:46 and 18:57 UTC. Renovate's Dependency Dashboard warned that it "could not determine new digest": upstream had deleted the tag. Following that up led to the upstream advisory.
  • 18:57 UTC. Contained: the Flux Kustomization was suspended and the Deployment scaled to 0. The pod had the payload files and a detached Python process.
  • After 18:57 UTC. The LiteLLM master key and the model provider key were rotated, the image was pinned back to v1.106.2 (#2991), and the new pod was checked clean.

Exposure

The pod could read the LiteLLM master key, the model provider API key and the Dragonfly URL. It had no egress policy, its service account had no RBAC bindings, and it had no database credentials. Nothing else was exposed.

What changed

  • Egress allowlist (#2992): the litellm-egress policy limits the proxy to DNS, its cache, the in-namespace inference pods and the provider APIs (see Networking). Its first version broke provider requests for about 5 minutes; that led to removing CoreDNS autopath (#2993, see KB-006).
  • Release age: LiteLLM updates wait 3 days, and the image moved to Docker Hub so that rule works (see KB-015).
  • Detection (#2994): the Yanked Images workflow opens an issue when a pinned image disappears upstream, and CiliumEgressPolicyDenied alerts on any blocked egress (see Alerting).

What to watch

  • Don't remove the release-age rule or the egress policy without a replacement. Treat new LiteLLM releases as untrusted until upstream has fixed its release pipeline.
  • A model on a new provider host needs a toFQDNs rule in litellm-egress, or its requests time out and the egress alert fires.
  • Since 2026-10-31 the allowlist includes api.github.com, for the Admin UI's release check, which can't be turned off. GitHub's API accepts writes (gists, issues, repo contents) with any token, so a compromised image could send the provider keys out that way. Cilium can't narrow it to the release endpoint without TLS interception. Since 2026-11-14 (LiteLLM v1.109.0, #3402) LITELLM_OFFLINE_MODE turns the check off and the rule is gone. Don't add it back.
  • Not built yet: runtime detection (Tetragon) and diffing image contents on Renovate PRs.