LiteLLM 1.107.0 built from attacker-controlled fork in supply chain attack
LiteLLM's release pipeline published version 1.107.0 from a lookalike fork, exposing credentials in affected environments.
Reported by Qualys
First reported Summary updated
- Public PoC
- Not known
- Exploited
- Yes
- Severity
- Not rated
What happened
LiteLLM's official release pipeline built, signed and published version 1.107.0 from an attacker-controlled lookalike fork.1
All seven litellm==1.107.0 wheels on PyPI were affected, along with images behind four tags on Docker Hub and GHCR.1
The wheels placed cook.pth, cook.py and sitecustomize.py in site-packages, outside the litellm package, so any Python launch in an affected environment could run the credential collector.1
Attackers used a leaked administrative key that was never revoked to obtain an organisation owner's GitHub CLI token and harvest additional maintainer tokens.1
Who is affected
Is there a public exploit?
Not known None of the sources mentions public exploit code yet.
Exploited in the wild?
Yes Public research observed AWS instance-role credentials taken from CI runners and Kubernetes nodes being validated and used to list Amazon Bedrock models later that day.1
What to do
- Treat the environment as compromised, scope exposure from the artifact that ran, and rotate everything it could reach.1
- Find every copy that ran by checking direct and transitive dependencies, lock files, build logs, CI runners, developer environments, private mirrors and image caches.1
- Isolate affected workloads and inspect them from a known-clean system, because running Python or pip inside a suspect environment can trigger the payload again.1
- Rebuild instead of repairing: redeploy from a verified release on clean infrastructure, rebuild downstream images and confirm the digests actually running.1
Indicators of compromise
As the sources state them. Domains and URLs are defanged ([.] and hxxp) so they are never a link; copy a block to search your logs.
cook[.]pth
cook.py
sitecustomize.py
/tmp/remote_code_loader.lock
What each indicator is
For bug hunters
This is a supply chain compromise of a build and release pipeline, not a flaw in application code. Bug bounty programmes rarely cover vendor pipelines, but the same weakness appears in CI/CD configurations, package registries and self-hosted gateways that hold upstream keys. Look for leaked secrets in public repositories, over-privileged tokens and workflows that can be triggered by untrusted input. Check whether build provenance records the expected source repository and revision, not just a valid signature.
What to test
- Search public repositories and CI logs for committed API keys, tokens and configuration files.
- Review workflow triggers for paths that let external contributors run code with repository secrets.
- Check whether release artifacts record and enforce the expected source repository and revision.
- Test self-hosted gateway instances for default or leaked master keys and exposed admin interfaces.
Written by bugbounty.wiki with AI from its source. Every statement above comes with a quote we checked against the source it cites (the numbers link to it); anything we could not check was left out. It can still be wrong, so read the coverage before relying on a detail.
Coverage
The article this story is based on. Each headline opens the outlet's own article.
-
1
Qualys
LiteLLM 1.107.0 Supply Chain Attack: How to Secure AI Gateways Beyond Code Signatures“On October 21, 2026, LiteLLM’s official release pipeline built, signed, and published version 1.107.0 from an attacker-controlled lookalike fork.”