# LiteLLM 1.107.0 PyPI/Docker supply-chain compromise · pwn.watch > On Oct 21 2026 attackers compromised LiteLLM’s release pipeline and published malicious litellm==1.107.0 to PyPI (live ~2 hours) plus compromised Docker Hub/GHCR tags (v1.107.0, latest, main-latest, main-stable). The wheels install cook.pth / cook.py / sitecustomize.py that steal cloud, developer and AI-tool credentials at every Python startup and open a remote-code loader. Second LiteLLM compromise of 2026. Page: https://pwn.watch/i/litellm-1-107-0-pypi-compromise · generated 2026-12-06T19:58:06.567Z ## Status - Severity: critical · status: live · patch: patched - Product: LiteLLM (PyPI + official Docker/GHCR images) - Started: 2026-10-21 - CVEs: MAL-2026-2144 - Affected: litellm==1.107.0; Docker/GHCR tags v1.107.0, latest, main-latest, main-stable during the Oct 21 window - Fixed in: 1.106.2 (pin; last known safe). Malicious 1.107.0 removed from PyPI, Docker Hub and GHCR ## Follow this incident - RSS (one item per update): https://pwn.watch/i/litellm-1-107-0-pypi-compromise/feed.xml - JSON Feed: https://pwn.watch/i/litellm-1-107-0-pypi-compromise/feed.json - Full data (timeline, sources, posts, agentBrief): https://pwn.watch/i/litellm-1-107-0-pypi-compromise.json - This file: https://pwn.watch/i/litellm-1-107-0-pypi-compromise/llms.txt ## Updates (newest first) - 2026-10-23: SecurityWeek: the malicious 1.107.0 packages were online for roughly three hours and are estimated to have been downloaded over 49,000 times; enterprise customers pulling from LiteLLM’s private repository were not affected. (https://www.securityweek.com/litellm-compromised-in-fresh-supply-chain-attack/) - 2026-10-23: Socket finds secret-stealing workflows (.github/workflows/cache.yml, "ci: bump cache config") ran successfully in BerriAI/litellm on Oct 10 and Oct 12 from throwaway ci-tmp-* branches, posting 20 CI secrets (GH_TOKEN, a GitHub App private key, OpenAI/Anthropic/Bedrock keys, database and Redis credentials) to webhook.site, 11 days before the malicious release. Per Socket, LiteLLM's own investigation traced initial access to an Agent Platform master key committed to a public repository in May and never revoked, and links the GH_TOKEN stolen on Oct 10 to approval of the Oct 21 release. (https://socket.dev/blog/litellm-attack-timeline) - 2026-10-23: LiteLLM publishes its root cause: a config file committed to the public LiteLLM-Labs/lite-harness repo on May 27 held the master key to a LiteLLM Agent Platform deployment, and that key was never revoked. On Oct 10 the attacker (from 69.48.229.143) used it to pull an unscoped GitHub CLI OAuth token belonging to the GitHub org owner, then ran throwaway workflows to grab two maintainers' tokens, which they used on Oct 21 to trigger and approve the release (the two-engineer approval rule had been relaxed that week for backports). LiteLLM says it is revoking every token on its internal systems and vendor platforms. (https://thehackernews.com/2026/10/leaked-litellm-master-key-let-attackers.html) - 2026-10-22: LiteLLM root cause: attacker held three developer GitHub CLI tokens, likely scraped from logs of an internet-exposed internal LiteLLM deployment (Claude Code can echo a gh OAuth token into logged response bodies), disabled branch protection and ran the release workflow against lookalike repo Berri-AI/litellm. (https://thehackernews.com/2026/10/litellm-suspects-github-token-leak-in.html) - 2026-10-22: StepSecurity full teardown: payload exfiltrates to lookalike www.litellm.dev (registered Oct 13) and an hourly loader polls a GitHub dead drop (letters9813/pythonclient-test, now deleted). Infected hosts keep polling, so anyone re-registering that username could run code on them: kill the process holding /tmp/remote_code_loader.lock, delete cook.pth/cook.py/sitecustomize.py, pin 1.106.2 and rotate everything. (https://www.stepsecurity.io/blog/litellm-1-107-0-compromised-pypi-backdoored-wheels-credential-stealer) - 2026-10-21T20:30Z: LiteLLM posts containment update; investigation ongoing. - 2026-10-21T16:20Z: Wiz sees stolen AWS instance-role credentials validated from 168.100.8.57 and 165.227.201.8 (sts:GetCallerIdentity, then Bedrock model listing), consistent with LLMjacking. (https://thehackernews.com/2026/10/litellm-suspects-github-token-leak-in.html) - 2026-10-21T14:20Z: Docker Hub tags cleaned / retargeted; GHCR images made unavailable earlier. - 2026-10-21T13:23Z: PyPI quarantines/pulls the package (~2h window). - 2026-10-21T11:39Z: Malicious 1.107.0 wheels appear on PyPI. - 2026-10-21T11:39Z: Malicious litellm==1.107.0 (all seven wheels) live on PyPI 11:39-13:23 UTC; Docker tags v1.107.0/latest/main-latest/main-stable compromised 11:46-14:20 UTC. (https://docs.litellm.ai/blog/security-incident-oct-21-2026) - 2026-10-19: LiteLLM temporarily expands release permissions for two internal engineers (daily bugfix backports). (https://thehackernews.com/2026/10/litellm-suspects-github-token-leak-in.html) ## Fix brief # Security brief: LiteLLM 1.107.0 PyPI/Docker supply-chain compromise Source: https://pwn.watch/i/litellm-1-107-0-pypi-compromise · status: live · severity: critical · updated Nov 7, 2026, 02:30 UTC ## Patch status **PATCHED: fixed releases exist. Upgrade to a fixed version.** ## What it is On Oct 21 2026 attackers compromised LiteLLM’s release pipeline and published malicious litellm==1.107.0 to PyPI (live ~2 hours) plus compromised Docker Hub/GHCR tags (v1.107.0, latest, main-latest, main-stable). The wheels install cook.pth / cook.py / sitecustomize.py that steal cloud, developer and AI-tool credentials at every Python startup and open a remote-code loader. Second LiteLLM compromise of 2026. Severity detail: Critical supply-chain (credential theft + RAT); OSV MAL-2026-2144 / PYSEC-2026-2 - Product: LiteLLM (PyPI + official Docker/GHCR images) - CVE / advisory ids: MAL-2026-2144 ## Affected versions - litellm==1.107.0; Docker/GHCR tags v1.107.0, latest, main-latest, main-stable during the Oct 21 window ## Check whether you're affected Run these where the product is installed or in the project that depends on it, then compare with the affected/fixed versions: ```sh pip show litellm docker images | grep -i litellm ``` ## Fix Upgrade to one of these fixed versions (or later on the same branch): - 1.106.2 (pin; last known safe). Malicious 1.107.0 removed from PyPI, Docker Hub and GHCR After upgrading, re-run the checks above and redeploy/restart the affected services. ## Secrets to rotate This incident involves possible credential exposure. Rotate any credentials (API keys, tokens, env vars, SSH keys) that were present on affected systems or in affected builds while vulnerable/compromised versions were installed, and review access logs. ## Specific notes The malicious wheels drop `cook.pth`, `cook.py` and `sitecustomize.py` into site-packages. Look for them in every Python env that may have installed 1.107.0: ```sh for d in $(python -c 'import site; print(" ".join(site.getsitepackages()))'); do ls -la "$d"/cook.pth "$d"/cook.py "$d"/sitecustomize.py 2>/dev/null; done grep -rn 'litellm==1.107.0' requirements*.txt poetry.lock uv.lock Pipfile.lock 2>/dev/null ``` Pin `litellm==1.106.2` (or a later release LiteLLM marks safe), rebuild images that used the `latest`/`main-latest`/`main-stable` tags during the window, and treat any host that ran 1.107.0 as compromised. ## Latest updates - Oct 23, 2026: SecurityWeek: the malicious 1.107.0 packages were online for roughly three hours and are estimated to have been downloaded over 49,000 times; enterprise customers pulling from LiteLLM’s private repository were not affected. - Oct 23, 2026: Socket finds secret-stealing workflows (.github/workflows/cache.yml, "ci: bump cache config") ran successfully in BerriAI/litellm on Oct 10 and Oct 12 from throwaway ci-tmp-* branches, posting 20 CI secrets (GH_TOKEN, a GitHub App private key, OpenAI/Anthropic/Bedrock keys, database and Redis credentials) to webhook.site, 11 days before the malicious release. Per Socket, LiteLLM's own investigation traced initial access to an Agent Platform master key committed to a public repository in May and never revoked, and links the GH_TOKEN stolen on Oct 10 to approval of the Oct 21 release. - Oct 23, 2026: LiteLLM publishes its root cause: a config file committed to the public LiteLLM-Labs/lite-harness repo on May 27 held the master key to a LiteLLM Agent Platform deployment, and that key was never revoked. On Oct 10 the attacker (from 69.48.229.143) used it to pull an unscoped GitHub CLI OAuth token belonging to the GitHub org owner, then ran throwaway workflows to grab two maintainers' tokens, which they used on Oct 21 to trigger and approve the release (the two-engineer approval rule had been relaxed that week for backports). LiteLLM says it is revoking every token on its internal systems and vendor platforms. - Oct 22, 2026: LiteLLM root cause: attacker held three developer GitHub CLI tokens, likely scraped from logs of an internet-exposed internal LiteLLM deployment (Claude Code can echo a gh OAuth token into logged response bodies), disabled branch protection and ran the release workflow against lookalike repo Berri-AI/litellm. - Oct 22, 2026: StepSecurity full teardown: payload exfiltrates to lookalike www.litellm.dev (registered Oct 13) and an hourly loader polls a GitHub dead drop (letters9813/pythonclient-test, now deleted). Infected hosts keep polling, so anyone re-registering that username could run code on them: kill the process holding /tmp/remote_code_loader.lock, delete cook.pth/cook.py/sitecustomize.py, pin 1.106.2 and rotate everything. - Oct 21, 2026: Malicious 1.107.0 wheels appear on PyPI. - Oct 21, 2026: Malicious litellm==1.107.0 (all seven wheels) live on PyPI 11:39-13:23 UTC; Docker tags v1.107.0/latest/main-latest/main-stable compromised 11:46-14:20 UTC. - Oct 21, 2026: PyPI quarantines/pulls the package (~2h window). ## Advisories - [OSV MAL-2026-2144](https://osv.dev/vulnerability/MAL-2026-2144) (OSV) ## Write-ups & news - [LiteLLM supply chain attack started with an exposed master key](https://www.theregister.com/security/2026/10/26/litellm-supply-chain-attack-started-with-an-exposed-master-key/5305544) - [Leaked LiteLLM Master Key Let Attackers Steal GitHub Tokens and Hijack Release Pipeline](https://thehackernews.com/2026/10/leaked-litellm-master-key-let-attackers.html) - [LiteLLM Compromised in Fresh Supply Chain Attack](https://www.securityweek.com/litellm-compromised-in-fresh-supply-chain-attack/) - [LiteLLM release pipeline hacked to distribute info-stealer malware](https://www.bleepingcomputer.com/news/security/litellm-release-pipeline-hacked-to-distribute-info-stealer-malware/) - [LiteLLM hit by second supply chain attack this year, users urged to rotate credentials](https://www.helpnetsecurity.com/2026/10/22/litellm-compromised-supply-chain-attack-pypi-docker/) - [litellm 1.107.0 Compromised on PyPI: Backdoored Wheels Drop a Credential Stealer and an Hourly Remote Code Loader](https://www.stepsecurity.io/blog/litellm-1-107-0-compromised-pypi-backdoored-wheels-credential-stealer) ## Caveats Package pulled but any host that installed 1.107.0 during the window should still be treated as compromised (credential rotation required). MAL-2026-2144 is an OSV malware ID, not a classic CVE. lifecycle live until LiteLLM closes the investigation. --- Machine-readable: https://pwn.watch/i/litellm-1-107-0-pypi-compromise.json · all incidents: https://pwn.watch/incidents.json. Verify against the vendor advisory before changing production systems.