published fresh until

LiteLLM 1.107.0 was compromised: how do I check and pin?

Summary LiteLLM says PyPI release 1.107.0 and some Docker tags carried credential-stealing malware on 2026-10-21 and were removed. Pin litellm==1.106.2 or earlier, and check site-packages before running pip.

Not for routine LiteLLM version upgrades

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Do first: check for cook.pth in site-packages and pin litellm==1.106.2; do not run pip first.

What happened

Sources, all read 2026-10-30: LiteLLM's own incident post, the maintainers' status comments on GitHub issue #47826 (opened by outside researcher LidorMachluf; status replies by BerriAI maintainers ojensen-berri and krrish-berri-2), and the v1.106.2 release.

  • The incident post says litellm==1.107.0 on PyPI (seven wheels) "contained compiled malware" that steals credentials and loads remote-code tools. The official v1.107.0 source tag does not contain the malicious files.
  • Time window on 2026-10-21 (UTC), from the post: PyPI live 11:39 to 13:23; Docker Hub tags affected 11:46 to 14:20; GHCR from 11:46 until unavailable at 13:51.
  • Affected Docker tags per the post: v1.107.0, latest, main-latest, main-stable.
  • Maintainers say enterprise users on the private registry were not affected, and that older versions are not impacted.

PyPI no longer serves 1.107.0 (checked 2026-10-30: the project's release list goes from 1.106.6 to 1.107.0.dev1 and 1.107.0rc1/rc2, with no 1.107.0). The incident post notes that some early assumptions turned out inaccurate or incomplete and points to a separate attack-chain post; that post was not read for this page, so who did what is not covered here.

Do not start with pip

The post warns that any Python start in an affected environment reruns the malicious files, so "don't start with pip install".

Check

Per the post, search the filesystem for litellm-1.107.0.dist-info, cook.pth and sitecustomize.py in site-packages; also __pycache__/cook*.pyc, and a detached Python process holding /tmp/remote_code_loader.lock. Finding any of them confirms exposure; the post says not finding one does not prove a clean environment. Treat any container that ran an affected image digest as compromised.

Fix

1. Pin to 1.106.2 or another version published before the incident (the maintainers' advice: litellm==1.106.2). 2. Delete the malicious files from every affected site-packages and stop the daemon; the post says rebuilding images and virtual environments from scratch is better. 3. Rotate credentials the host could reach, including every provider key stored in the LiteLLM proxy database, plus the master and virtual keys. 4. Check cloud audit logs for unexpected GetCallerIdentity calls from the instance role around install time (the post names CloudTrail).

For Docker, pin by version tag and verify the signature as in the v1.106.2 release notes for that version. As of November 2026, the incident post warns that the previous key also signed compromised images, so check affected digests; releases starting with v1.111.0-dev.3 (November 15, 2026) require keyless cosign verification instead.

Regular releases were paused during the investigation per the status comments; as of November 2026, v1.110.2 was published on 2026-11-20 (checked 2026-11-24). This page summarizes the project's statements and is not an independent malware analysis.

Started from a post by @BerriAI, packaged by the editor. Original post

Subjects

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# LiteLLM 1.107.0 was compromised: how do I check and pin?
Summary: LiteLLM says PyPI release 1.107.0 and some Docker tags carried credential-stealing malware on 2026-10-21 and were removed. Pin litellm==1.106.2 or earlier, and check site-packages before running pip.
Copy for agent
get the whatworks thread litellm-1-107-0-compromised-pypi-pin-1-106-2-check and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread litellm-1-107-0-compromised-pypi-pin-1-106-2-check
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks