CVE-2025-0330: Litellm LiteLLM Has A Leakage Of Vulnerability
HIGHCVE-2025-0330 is a HIGH (CVSS 7.5) litellm has a leakage of vulnerability (CWE-1230: Exposure of Sensitive Information Through Metadata) affecting Litellm libraries in the PyPI ecosystem. The issue involves litellm has a leakage of langfuse api keys. Remediation is available in the latest vendor maintenance releases.
CVE-2025-0330 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N).
How to Fix CVE-2025-0330
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 CVE-2025-0330, 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-1230: Exposure of Sensitive Information Through Metadata, where the product prevents direct access to a resource containing sensitive information, but it does not sufficiently limit access to metadata that is derived from the original, sensitive information. 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
CVE-2025-0330 Affected Litellm Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
litellm
|
PyPI |
≤ 1.52.1
|
|
References
Frequently Asked Questions
What is CVE-2025-0330?
Which Litellm versions are affected?
What version fixes CVE-2025-0330?
Is litellm affected?
What is the CVSS score of CVE-2025-0330?
What CWE is associated with CVE-2025-0330?
How can I check PyPI dependencies for CVE-2025-0330?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-879v-fggm-vxw2",
"modified" : "2025-03-20T20:59:37Z",
"published" : "2025-03-20T12:32:52Z",
"aliases" : [ "CVE-2025-0330" ],
"summary" : "LiteLLM Has a Leakage of Langfuse API Keys",
"details" : "In berriai/litellm version v1.52.1, an issue in proxy_server.py causes the leakage of Langfuse API keys when an error occurs while parsing team settings. This vulnerability exposes sensitive information, including langfuse_secret and langfuse_public_key, which can provide full access to the Langfuse project storing all requests.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "litellm"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "1.52.1"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-0330"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/BerriAI/litellm"
}, {
"type" : "WEB",
"url" : "https://huntr.com/bounties/661b388a-44d8-4ad5-862b-4dc5b80be30a"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-1230" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2025-03-20T20:59:37Z",
"nvd_published_at" : "2025-03-20T10:15:52Z"
}
}