LiteLLM compromised again: malicious 1.107.0 release on PyPI and Docker steals credentials
Attackers pushed a malicious litellm 1.107.0 to PyPI, Docker Hub and GHCR on October 21; it contained compiled malware that steals credentials and loads remote-code-execution tools. LiteLLM says the PyPI package was live for about two hours, Wiz counts roughly 49,000 downloads, and the project blames stolen developer GitHub credentials. The last safe version is 1.106.2.
LiteLLM says its release pipeline was compromised at about 11:40 UTC on October 21. The PyPI package litellm==1.107.0, all seven wheels, was live from 11:39 to 13:23 UTC. The Docker tags v1.107.0, latest, main-latest and main-stable were compromised on Docker Hub from 11:46 to 14:20 UTC and on GHCR until about 13:51 UTC. The official v1.107.0 tag on GitHub does not contain the malicious files; the artifacts were built from an attacker-controlled repository. Enterprise customers on LiteLLM's private registry were not affected.
Wiz found that installing the package drops three files, cook.pth, cook.py and sitecustomize.py, into the Python site-packages folder so that they run whenever a Python interpreter starts. The payload shows signs of LLM-assisted development, and Wiz cites ClickPy data of about 49,000 downloads of the malicious version.
LiteLLM says the malicious actions went through three engineers' GitHub accounts, apparently using stolen GitHub CLI OAuth tokens, with one account triggering the release workflow and another approving it. It later said it suspected the attacker obtained the tokens from an internal LiteLLM deployment that was exposed to the internet, and added on October 23 that parts of its early account turned out to be inaccurate or incomplete. It describes the incident as coming after a March compromise and says it had hardened its release pipeline in response.
Anyone who ran pip install on 1.107.0, or started one of the affected container images, in those windows should assume the environment is compromised and rotate credentials. LiteLLM advises pinning to 1.106.2 or an earlier explicit version.
Sources
- LiteLLM: Security incident, October 21, 2026 docs.litellm.ai
- Wiz: LiteLLM compromised, steals credentials wiz.io