CVE-2024-5751

Source
https://cve.org/CVERecord?id=CVE-2024-5751
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-5751.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2024-5751
Aliases
Published
2024-06-27T18:40:49.896Z
Modified
2026-07-08T07:57:50.768984871Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
Remote Code Execution in BerriAI/litellm
Details

BerriAI/litellm version v1.35.8 contains a vulnerability where an attacker can achieve remote code execution. The vulnerability exists in the add_deployment function, which decodes and decrypts environment variables from base64 and assigns them to os.environ. An attacker can exploit this by sending a malicious payload to the /config/update endpoint, which is then processed and executed by the server when the get_secret function is triggered. This requires the server to use Google KMS and a database to store a model.

Database specific
{
    "cna_assigner": "@huntr_ai",
    "cwe_ids": [
        "CWE-94"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/5xxx/CVE-2024-5751.json"
}
References

Affected packages

Git / github.com/berriai/litellm

Affected ranges

Type
GIT
Repo
https://github.com/berriai/litellm
Events
Database specific
{
    "extracted_events": [
        {
            "introduced": "1.35.8"
        },
        {
            "last_affected": "1.35.8"
        }
    ],
    "cpe": "cpe:2.3:a:litellm:litellm:1.35.8:*:*:*:*:*:*:*",
    "source": "CPE_STRING"
}

Affected versions

1.*
1.35.8
v1.*
v1.35.8

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-5751.json"