CVE-2025-0628: Litellm LiteLLM Has An Improper Authorization Vulnerability

HIGH
Advisory Identifier: GHSA-fjcf-3j3r-78rp
CVSS 8.1
CWE-266 CWE-285
Published
Advisory Summary

CVE-2025-0628 is a HIGH (CVSS 8.1) litellm has an improper authorization vulnerability (CWE-266: Incorrect Privilege Assignment) affecting Litellm libraries in the PyPI ecosystem. The issue involves litellm has an improper authorization vulnerability. Remediation is available by upgrading affected packages to version 1.61.15.

CVE-2025-0628 at a Glance

CVE Identifier CVE-2025-0628
GHSA Identifier GHSA-fjcf-3j3r-78rp
Severity HIGH
CVSS v3.1 Base Score 8.1
CWE Classification CWE-266: Incorrect Privilege Assignment
Affected Product Litellm
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 8.1

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2025-0628

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: 1.61.15
pip install litellm>=1.61.15
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-0628, 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 1.61.15), 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-266: Incorrect Privilege Assignment, where a product incorrectly assigns a privilege to a particular actor, creating an unintended sphere of control for that actor. 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

An improper authorization vulnerability exists in the main-latest version of BerriAI/litellm. When a user with the role 'internal_user_viewer' logs into the application, they are provided with an overly privileged API key. This key can be used to access all the admin functionality of the application, including endpoints such as '/users/list' and '/users/get_users'. This vulnerability allows for privilege escalation within the application, enabling any account to become a PROXY ADMIN.

CVE-2025-0628 Affected Litellm Versions

1 component(s)
Fixed Versions:
1.61.15
Product / Package Ecosystem Affected Versions Fixed Version
litellm
PyPI
< 1.61.15
1.61.15

References

Frequently Asked Questions

What is CVE-2025-0628?
CVE-2025-0628 is a security vulnerability in Litellm involving LiteLLM Has an Improper Authorization Vulnerability under CWE-266: Incorrect Privilege Assignment.
Which Litellm versions are affected?
Affected versions include releases prior to 1.61.15 across affected packages: litellm.
What version fixes CVE-2025-0628?
Upgrading to 1.61.15 (or the latest patched release for your respective branch) resolves the vulnerability.
Is litellm affected?
Yes, litellm is affected in releases prior to 1.61.15. Upgrade your dependency to 1.61.15 or later.
What is the CVSS score of CVE-2025-0628?
CVE-2025-0628 has a CVSS v3.1 base score of 8.1 (HIGH) with vector string CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N.
What CWE is associated with CVE-2025-0628?
CVE-2025-0628 is classified under CWE-266: Incorrect Privilege Assignment (A product incorrectly assigns a privilege to a particular actor, creating an unintended sphere of control for that actor.).
How can I check PyPI dependencies for CVE-2025-0628?
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-fjcf-3j3r-78rp",
  "modified" : "2025-03-20T21:00:46Z",
  "published" : "2025-03-20T12:32:52Z",
  "aliases" : [ "CVE-2025-0628" ],
  "summary" : "LiteLLM Has an Improper Authorization Vulnerability",
  "details" : "An improper authorization vulnerability exists in the main-latest version of BerriAI/litellm. When a user with the role 'internal_user_viewer' logs into the application, they are provided with an overly privileged API key. This key can be used to access all the admin functionality of the application, including endpoints such as '/users/list' and '/users/get_users'. This vulnerability allows for privilege escalation within the application, enabling any account to become a PROXY ADMIN.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "litellm"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.61.15"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-0628"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/berriai/litellm/commit/566d9354aab4215091b2e51ad0333e948125fa1b"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/BerriAI/litellm"
  }, {
    "type" : "WEB",
    "url" : "https://huntr.com/bounties/6c0e2f75-2d03-42f9-9530-e16a973317fc"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-266", "CWE-285" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-03-20T21:00:46Z",
    "nvd_published_at" : "2025-03-20T10:15:53Z"
  }
}