ghsa-h6m6-jj8v-94jj
Vulnerability from github
Published
2024-06-06 21:30
Modified
2024-06-06 22:54
Severity ?
Summary
SQL injection in litellm
Details
An SQL Injection vulnerability exists in the berriai/litellm repository, specifically within the /global/spend/logs
endpoint. The vulnerability arises due to improper neutralization of special elements used in an SQL command. The affected code constructs an SQL query by concatenating an unvalidated api_key
parameter directly into the query, making it susceptible to SQL Injection if the api_key
contains malicious data. This issue affects the latest version of the repository. Successful exploitation of this vulnerability could lead to unauthorized access, data manipulation, exposure of confidential information, and denial of service (DoS).
{ "affected": [ { "package": { "ecosystem": "PyPI", "name": "litellm" }, "ranges": [ { "events": [ { "introduced": "0" }, { "fixed": "1.40.0" } ], "type": "ECOSYSTEM" } ] } ], "aliases": [ "CVE-2024-5225" ], "database_specific": { "cwe_ids": [ "CWE-89" ], "github_reviewed": true, "github_reviewed_at": "2024-06-06T22:54:22Z", "nvd_published_at": "2024-06-06T19:16:06Z", "severity": "MODERATE" }, "details": "An SQL Injection vulnerability exists in the berriai/litellm repository, specifically within the `/global/spend/logs` endpoint. The vulnerability arises due to improper neutralization of special elements used in an SQL command. The affected code constructs an SQL query by concatenating an unvalidated `api_key` parameter directly into the query, making it susceptible to SQL Injection if the `api_key` contains malicious data. This issue affects the latest version of the repository. Successful exploitation of this vulnerability could lead to unauthorized access, data manipulation, exposure of confidential information, and denial of service (DoS).", "id": "GHSA-h6m6-jj8v-94jj", "modified": "2024-06-06T22:54:22Z", "published": "2024-06-06T21:30:37Z", "references": [ { "type": "ADVISORY", "url": "https://nvd.nist.gov/vuln/detail/CVE-2024-5225" }, { "type": "WEB", "url": "https://github.com/BerriAI/litellm/pull/3940" }, { "type": "WEB", "url": "https://github.com/BerriAI/litellm/commit/f75c15d6cd535aa78014378ad532de1df6be2f56" }, { "type": "PACKAGE", "url": "https://github.com/BerriAI/litellm" }, { "type": "WEB", "url": "https://huntr.com/bounties/491e4884-0306-4cd4-8fe2-9a19de33bf5c" } ], "schema_version": "1.4.0", "severity": [ { "score": "CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N", "type": "CVSS_V3" } ], "summary": "SQL injection in litellm" }
Loading...
Loading...
Sightings
Author | Source | Type | Date |
---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
- Confirmed: The vulnerability is confirmed from an analyst perspective.
- Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
- Patched: This vulnerability was successfully patched by the user reporting the sighting.
- Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
- Not confirmed: The user expresses doubt about the veracity of the vulnerability.
- Not patched: This vulnerability was not successfully patched by the user reporting the sighting.