This is an advisory for a malicious package.
We recommend immediate removal of malicious versions of this package. Safety Firewall is actively blocking installation and will help you identify any existing installations of the package.
PyPI: litellm
SFTY-20260324-28516
Affected versions of litellm package contain Embedded Malicious Code. Upon installation, a malicious `.pth` file executes automatically at Python startup, launching a background process that exfiltrates credentials from SSH keys, cloud providers (AWS, GCP, Azure, Kubernetes), cryptocurrency wallets, and CI/CD secrets to an attacker-controlled server. The malware establishes persistent backdoor access via a systemd service and attempts to take over the entire Kubernetes cluster if running in a containerized environment.
Overview
litellm – Embedded Malicious Code
Advisory
litellm – Embedded Malicious Code
How to Fix
We recommend updating litellm to the latest non-vulnerable version.
Mitigation and Workarounds
---
Vulnerable Functions
Functions linked to known vulnerabilities.
Verified by Safety
Our Cybersecurity Intelligence Team reviewed this vulnerability. We combine public data with our own research to find issues not yet reported to public sources.
Learn more