security: pin LiteLLM to v1.82.3 (supply chain compromise)#289
Merged
security: pin LiteLLM to v1.82.3 (supply chain compromise)#289
Conversation
LiteLLM PyPI packages 1.82.7 and 1.82.8 contain a malicious .pth file (litellm_init.pth) that exfiltrates environment variables, SSH keys, cloud credentials, and Kubernetes configs to an external endpoint. See: BerriAI/litellm#24512 Our template used the floating tag `main-stable` which could pull a compromised build. Pin to `main-v1.82.3` (confirmed safe, matches the version currently running in our clusters). Never use floating tags for security-sensitive dependencies.
HananINouman
approved these changes
Mar 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
main-stabletag to versionedmain-v1.82.3What was compromised
The
litellm_init.pthfile in PyPI packages 1.82.7-1.82.8 auto-executes on Python startup and steals:Data is encrypted and exfiltrated to
https://models.litellm.cloud/.Changes
internal/embed/infrastructure/base/templates/llm.yaml— pin image toghcr.io/berriai/litellm:main-v1.82.3.agents/skills/obol-stack-dev/references/litellm-routing.md— update referenceRemediation for existing deployments
If running
main-stable, verify your version:If version is 1.82.7 or 1.82.8, rotate all credentials immediately and redeploy with the pinned tag.
Test plan
go build ./...passesgo test ./internal/embed/...passesmain-v1.82.3tag exists on GHCR