GHSA-5mg7-485q-xm76: Two LiteLLM versions published containing credential harvesting malware
LiteLLM 1.82.7 and 1.82.8 on PyPI contain credential-stealing malware. They were uploaded after a maintainer's token was exposed and stayed live for about 40 minutes on March 24, 2026. Anyone who installed and ran either version should treat every secret on that machine as stolen and rotate it. The advisory lists no patched version; the vendor names 1.82.6 and earlier, or 1.83.0, as clean.
Published Mar 25, 2026 · Updated Mar 27, 2026 · Analysis Oct 31, 2026
What an attacker can do
This is a supply chain compromise (CWE-506), not a coding bug. The vendor says the attacker bypassed the official CI/CD and uploaded packages straight to PyPI, possibly via a compromised Trivy dependency in the CI scanning. Version 1.82.7 carries the payload in litellm/proxy/proxy_server.py. Version 1.82.8 adds litellm_init.pth, which runs on every Python process start once litellm is installed, so importing litellm is not required. The .pth file spawns a child Python process that also triggers the file, which caused a fork bomb in one test.
The malware collects environment variables, SSH keys, .env files, AWS, GCP and Azure credentials, Kubernetes configs, database passwords, shell history, cloud metadata and crypto wallet files. It encrypts the bundle and POSTs it to models.litellm.cloud, which is not a LiteLLM domain. With a Kubernetes service account token, it reads secrets across all namespaces and tries to start privileged alpine:latest pods in kube-system that mount the host filesystem.
LiteLLM sits in front of many provider keys, so a single host can hold keys for several LLM vendors.
Who is affected
Packages from PyPI at litellm 1.82.7 and 1.82.8, installed during roughly 10:39 to 16:00 UTC on March 24, 2026 by an unpinned pip install, or pulled in by an unpinned transitive dependency such as an agent framework or MCP server. Docker images built then with an unpinned install are affected too. The vendor says the official ghcr.io/berriai/litellm image, LiteLLM Cloud, 1.82.6 and earlier, and source installs from GitHub are not affected. Check with:
pip show litellmlitellm
- Ecosystem
- PyPI
- Affected
- >= 1.82.7, <= 1.82.8
- Fixed in
- No patched version yet
- Check
pip show litellm
How to fix it
No patched version is recorded in the advisory, because the malicious releases were removed. The vendor says to pin LiteLLM to 1.82.6 or earlier, or to the later verified release 1.83.0 built by its new CI/CD pipeline.
pip install "litellm==1.83.0"Then remove litellm_init.pth from site-packages and rotate all secrets on affected systems: API keys, cloud keys, database passwords, SSH keys and Kubernetes tokens. Audit CI pipelines, Docker builds and deployment logs for the two bad versions. Treat the host as compromised and investigate it.
How to tell if you were hit
Look for these indicators:
litellm_init.pthinsite-packages~/.config/sysmon/sysmon.pyand the user service~/.config/systemd/user/sysmon.service/root/.config/sysmon/sysmon.pyon Kubernetes nodes- outbound traffic to
models.litellm.cloudorcheckmarx.zone - pods named
node-setup-*or privilegedalpine:latestpods inkube-system
Also search CI and build logs for litellm 1.82.7 or 1.82.8, and check for runaway Python processes.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
After an API Token exposure from an exploited trivy dependency, two new releases of litellm were uploaded to PyPI containing automatically activated malware, harvesting sensitive credentials and files, and exfiltrating to a remote API.
Anyone who has installed and run the project should assume any credentials available to litellm environment may have been exposed, and revoke/rotate thema ccordingly.
Questions
- Is the official LiteLLM Docker image affected?
No, according to the vendor. The image at ghcr.io/berriai/litellm pins its dependencies and does not use the compromised PyPI packages. Images you built with an unpinned pip install in the window are affected.
- I never imported litellm in 1.82.8. Am I safe?
No. The litellm_init.pth file runs on every Python process start after install, so the payload ran without any import.
- What should I do first?
Remove the package and litellm_init.pth, check for the sysmon persistence files, and rotate all credentials the host could read. Pin to 1.82.6 or earlier, or 1.83.0.
References
Read for this analysis:
- https://docs.litellm.ai/blog/security-update-march-2026
- https://futuresearch.ai/blog/litellm-pypi-supply-chain-attack
- https://github.com/BerriAI/litellm/issues/24518
- https://github.com/pypa/advisory-database/tree/main/vulns/litellm/PYSEC-2026-2.yaml
- https://inspector.pypi.io/project/litellm/1.82.7/packages/79/5f/b6998d42c6ccd32d36e12661f2734602e72a576d52a51f4245aef0b20b4d/litellm-1.82.7-py3-none-any.whl/litellm/proxy/proxy_server.py#line.130
- https://inspector.pypi.io/project/litellm/1.82.8/packages/f6/2c/731b614e6cee0bca1e010a36fd381fba69ee836fe3cb6753ba23ef2b9601/litellm-1.82.8.tar.gz/litellm-1.82.8/litellm_init.pth#line.1
- https://www.wiz.io/blog/teampcp-attack-kics-github-action
- https://github.com/advisories/GHSA-5mg7-485q-xm76
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology
More LiteLLM vulnerabilities
All LiteLLM entriesCVE-2026-114612
LiteLLM: Privilege Escalation to Proxy Admin via Cross-Domain Reuse of the Salt Key
high9.9Oct 27, 2026GHSA-g5ff-637f-6q2m
LiteLLM: internal_user_viewer arbitrary local file read via `vertex_ai_credentials`
high8.1Oct 27, 2026GHSA-hhww-mrg2-969h
LiteLLM vulnerable to reflected XSS in /sso/debug/callback
medium6.8Oct 27, 2026CVE-2026-84377
LiteLLM: Authenticated SSRF and provider-credential exfiltration via unvalidated request-body routing parameters
medium6.5Sep 30, 2026CVE-2026-59823
LiteLLM Proxy has server-side request forgery via the `user_config` request parameter
medium5.3Sep 17, 2026CVE-2026-37004
LiteLLM vulnerable to server-side template injection in the /prompts/test endpoint
critical9.8Aug 27, 2026
