LiteLLM 1.107.0 Backdoored on PyPI; Do Not Upgrade
2026-10-22 · The Register
LiteLLM, built by BerriAI, is an open-source AI gateway that lets developers call OpenAI, Anthropic, Google Gemini and other models through one interface, with about 23 million weekly downloads. The Register reports that on October 21 someone compromised LiteLLM's release process and pushed a malicious version, 1.107.0, to PyPI and Docker registries, carrying code that steals cloud and AI credentials and a backdoor that can run commands remotely. PyPI quarantined the release within hours and the Docker image was removed from Docker Hub and GHCR.
Wiz researchers say the malicious commits came from a lookalike GitHub organization (Berri-AI, with an extra hyphen), which was used to inject three malicious files into the release pipeline. These are early findings from security vendors; BerriAI did not respond to The Register's inquiries and has not published a full investigation.
The malware is designed to run whenever Python starts, so any host that installed 1.107.0 may be affected even by programs that never use LiteLLM. Data it can collect includes SSH keys, cloud credentials, CI/CD secrets and LLM provider API keys. Citing Aikido, The Register says anyone who ran this version, including the official Docker image 1.107.0 or the latest, main-latest or main-stable tags, should assume secrets are stolen.
What to do: first, check whether you installed 1.107.0 by reviewing pip, requirements, lock files and container images; 1.106.2 is known to be clean. Second, stop deploying 1.107.0 and rebuild affected environments and containers. Third, rotate every credential that could have been exposed, including LLM keys, cloud credentials, database connection strings and CI secrets, because removing the package does not invalidate stolen secrets. Fourth, use the hunting guidance from Aikido, Wiz and Socket to look for signs of compromise.
This is LiteLLM's second incident this year; CloudSEK estimated that a March compromise may have exposed more than 2,500 organizations. Longer term, teams can pin dependency versions and hashes and give CI short-lived, least-privilege credentials.