CVE-2024-5710: Litellm Litellm Vulnerable To Improper Access Vulnerability
MODERATECVE-2024-5710 is a MODERATE (CVSS 5.3) litellm vulnerable to improper access vulnerability (CWE-284: Improper Access Control) affecting Litellm libraries in the PyPI ecosystem. The issue involves litellm vulnerable to improper access control in team management. Remediation is available by upgrading affected packages to version 1.40.15.
CVE-2024-5710 at a Glance
Security Impact
CVSS: 5.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N).
How to Fix CVE-2024-5710
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>=1.40.15
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-2024-5710, 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.40.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-284: Improper Access Control, where the product does not restrict or incorrectly restricts access to a resource from an unauthorized 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
CVE-2024-5710 Affected Litellm Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
litellm
|
PyPI |
< 1.40.15
|
1.40.15
|
References
Frequently Asked Questions
What is CVE-2024-5710?
Which Litellm versions are affected?
What version fixes CVE-2024-5710?
Is litellm affected?
What is the CVSS score of CVE-2024-5710?
What CWE is associated with CVE-2024-5710?
How can I check PyPI dependencies for CVE-2024-5710?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-qqcv-vg9f-5rr3",
"modified" : "2024-07-05T18:09:04Z",
"published" : "2024-06-27T21:32:08Z",
"aliases" : [ "CVE-2024-5710" ],
"summary" : "litellm vulnerable to improper access control in team management",
"details" : "berriai/litellm version 1.34.34 is vulnerable to improper access control in its team management functionality. This vulnerability allows attackers to perform unauthorized actions such as creating, updating, viewing, deleting, blocking, and unblocking any teams, as well as adding or deleting any member to or from any teams. The vulnerability stems from insufficient access control checks in various team management endpoints, enabling attackers to exploit these functionalities without proper authorization.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "litellm"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.40.15"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-5710"
}, {
"type" : "WEB",
"url" : "https://github.com/BerriAI/litellm/commit/da3ae00bd68f451ed8ddf0bc0a9fd34bde5554d6"
}, {
"type" : "WEB",
"url" : "https://github.com/BerriAI/litellm/blob/224148d6133ee50801cb129cbd21ccc213992e25/litellm/proxy/auth/user_api_key_auth.py#L1020"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/berriai/litellm"
}, {
"type" : "WEB",
"url" : "https://huntr.com/bounties/70897f59-a966-4d93-b71e-745e3da91970"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-284", "CWE-862" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-06-28T14:34:15Z",
"nvd_published_at" : "2024-06-27T19:15:15Z"
}
}