Skip to content

fix: pin liteLLM <=1.82.6 to mitigate TeamPCP supply chain attack#19

Open
gn00295120 wants to merge 1 commit intoNVlabs:mainfrom
gn00295120:fix/pin-litellm-supply-chain
Open

fix: pin liteLLM <=1.82.6 to mitigate TeamPCP supply chain attack#19
gn00295120 wants to merge 1 commit intoNVlabs:mainfrom
gn00295120:fix/pin-litellm-supply-chain

Conversation

@gn00295120
Copy link
Copy Markdown

Summary

liteLLM versions 1.82.7 and 1.82.8 were compromised by the TeamPCP group via a supply chain attack through Trivy. The current dependency constraint allows these malicious versions to be installed.

Impact

The compromised versions steal sensitive credentials including SSH keys, AWS/GCP/K8s credentials, CI/CD tokens, and environment variables. Version 1.82.8 installs a .pth persistence mechanism that executes on every Python startup — even after liteLLM is uninstalled.

Fix

This PR pins the upper bound of the liteLLM dependency to <=1.82.6, which is the last known safe version before the compromise. Once BerriAI publishes a verified clean release, this upper bound can be raised.

Files changed (2 pyproject.toml manifests):

  • training/rollout/pyproject.toml: >=1.65.0>=1.65.0, <=1.82.6
  • evaluation/tau2-bench/pyproject.toml: >=1.65.0>=1.65.0, <=1.82.6

Note: requirements.txt already pins litellm==1.76.0 (safe). The pdm.lock files resolve to 1.65.1 (safe), but the manifests allowed unbounded upgrades.

References

liteLLM versions 1.82.7 and 1.82.8 were compromised by the TeamPCP group
via a supply chain attack. This pins the upper bound to the last known
safe version in both pyproject.toml manifests.

Note: requirements.txt already pins litellm==1.76.0 (safe).
The pdm.lock files resolve to 1.65.1 (safe), but the manifests
allowed >=1.65.0 with no upper bound.

References:
- BerriAI/litellm#24512
- https://osv.dev/vulnerability/MAL-2026-2144
Copilot AI review requested due to automatic review settings March 25, 2026 09:27
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Pins the litellm dependency in two Python subprojects to prevent installation of compromised upstream releases, mitigating the referenced supply chain incident.

Changes:

  • Add an upper bound (<=1.82.6) to the litellm dependency constraint in training/rollout.
  • Add the same upper bound to the litellm dependency constraint in evaluation/tau2-bench.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
training/rollout/pyproject.toml Constrains litellm to known-safe versions by adding an upper bound.
evaluation/tau2-bench/pyproject.toml Applies the same litellm upper-bound constraint to the bench project manifest.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants