CVE-2025-0330: Litellm LiteLLM Has A Leakage Of Vulnerability

HIGH
Advisory Identifier: GHSA-879v-fggm-vxw2
CVSS 7.5
CWE-1230
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2025-0330
GHSA Identifier GHSA-879v-fggm-vxw2
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-1230: Exposure of Sensitive Information Through Metadata
Affected Product Litellm
Package Ecosystem PyPI
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity None (I:N)
Availability None (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.

litellm fixed: Latest secure release
pip install litellm>=Latest secure release
Verify Direct and Transitive Dependencies

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

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.

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?
CVE-2025-0330 is a security vulnerability in Litellm involving LiteLLM Has a Leakage of Langfuse API Keys under CWE-1230: Exposure of Sensitive Information Through Metadata.
Which Litellm versions are affected?
Affected versions include releases prior to current release patches across affected packages: litellm.
What version fixes CVE-2025-0330?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is litellm affected?
Yes, litellm is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2025-0330?
CVE-2025-0330 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2025-0330?
CVE-2025-0330 is classified under CWE-1230: Exposure of Sensitive Information Through Metadata (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.).
How can I check PyPI dependencies for CVE-2025-0330?
Run the dependency tree command: 'pip show litellm'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}