Snyk has reported that there have been attempts or successful attacks targeting this vulnerability.
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsAvoid using all malicious instances of the litellm package.
litellm is a Library to easily interface with LLM API providers
Affected versions of this package are vulnerable to Embedded Malicious Code. Vulnerable releases of this package were compromised with malicious code that conceals a multi-stage credential stealer and persistent backdoor. A malicious actor appears to have uploaded tampered versions of the litellm package directly to PyPI, bypassing the project's standard GitHub release process.
The compromised versions contain a malicious file, litellm_init.pth or proxy_server.py, that executes automatically at startup for every Python process. Affected users must immediately remove the package, purge their package manager caches, check for persistence mechanisms, and rotate all potentially exposed credentials.
Note: This advisory will be updated as more details come to light.
For additional details see https://github.com/BerriAI/litellm/issues/24512