GHSA-5mg7-485q-xm76: Litellm Two LiteLLM Versions Published Containing Vulnerability
CRITICALGHSA-5mg7-485q-xm76 is a CRITICAL two litellm versions published containing vulnerability (CWE-506: Embedded Malicious Code) affecting Litellm libraries in the PyPI ecosystem. The issue involves two litellm versions published containing credential harvesting malware. Remediation is available in the latest vendor maintenance releases.
GHSA-5mg7-485q-xm76 at a Glance
How to Fix GHSA-5mg7-485q-xm76
To remediate this vulnerability, upgrade all affected Litellm dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install litellm>=Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show litellm
How to Check if You Are Affected
To determine whether your Python environment is affected by GHSA-5mg7-485q-xm76, inspect your installed packages using pip:
pip show litellm
Analyze the terminal output to locate any version of Litellm in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.
Note: The pip show litellm command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-506: Embedded Malicious Code, where the product contains code that appears to be malicious in nature. In Litellm, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-5mg7-485q-xm76 Affected Litellm Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
litellm
|
PyPI |
≥ 1.82.7
≤ 1.82.8
|
|
References
Frequently Asked Questions
What is GHSA-5mg7-485q-xm76?
Which Litellm versions are affected?
What version fixes GHSA-5mg7-485q-xm76?
Is litellm affected?
What CWE is associated with GHSA-5mg7-485q-xm76?
How can I check PyPI dependencies for GHSA-5mg7-485q-xm76?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-5mg7-485q-xm76",
"modified" : "2026-03-27T00:32:11Z",
"published" : "2026-03-25T14:25:42Z",
"aliases" : [ ],
"summary" : "Two LiteLLM versions published containing credential harvesting malware",
"details" : "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.\n\nAnyone who has installed and run the project should assume any credentials available to litellm environment may have been exposed, and revoke/rotate thema ccordingly.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "litellm"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.82.7"
}, {
"last_affected" : "1.82.8"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/BerriAI/litellm/issues/24518"
}, {
"type" : "WEB",
"url" : "https://docs.litellm.ai/blog/security-update-march-2026"
}, {
"type" : "WEB",
"url" : "https://futuresearch.ai/blog/litellm-pypi-supply-chain-attack"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/BerriAI/litellm"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/litellm/PYSEC-2026-2.yaml"
}, {
"type" : "WEB",
"url" : "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"
}, {
"type" : "WEB",
"url" : "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"
}, {
"type" : "WEB",
"url" : "https://www.wiz.io/blog/teampcp-attack-kics-github-action"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-506" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2026-03-25T14:25:42Z",
"nvd_published_at" : null
}
}