Skip to content
Heist/ feed
Back to feed
Critical

Remote Code Execution in BerriAI/litellm

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2024-5751
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 13:18 UTC · Revision 1

Source evidence

Remote Code Execution in BerriAI/litellm

core-osv · Original source

Published 27 Jun 2024, 18:40 UTC

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.

osv:CVE-2024-5751
Complete source record
{
  "id": "9ea76f7435ac7d83970c2198a1c05271eafae5f70cb35acbc56bd5e3cde7094d",
  "url": "https://osv.dev/vulnerability/CVE-2024-5751",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Remote Code Execution in BerriAI/litellm",
    "summary": "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.",
    "evidence": "osv:CVE-2024-5751",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2024-5751",
      "aliases": [
        "CVE-2024-5751",
        "GHSA-gppg-gqw8-wh9g",
        "PYSEC-2026-389"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/berriai/litellm",
              "type": "GIT",
              "events": [
                {
                  "introduced": "45d1b5a4cf112dd6ab0f96bdae26c8f7c8f6d531"
                },
                {
                  "last_affected": "45d1b5a4cf112dd6ab0f96bdae26c8f7c8f6d531"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:litellm:litellm:1.35.8:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "1.35.8"
                      },
                      {
                        "last_affected": "1.35.8"
                      }
                    ],
                    "source": "CPE_STRING"
                  }
                ]
              }
            }
          ],
          "versions": [
            "1.35.8",
            "v1.35.8"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-5751.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:35.482546139Z",
      "provider": "osv",
      "references": [
        "https://huntr.com/bounties/ae623c2f-b64b-4245-9ed4-f13a0a5824ce",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/5xxx/CVE-2024-5751.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-5751"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-94"
        ],
        "cna_assigner": "@huntr_ai",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/5xxx/CVE-2024-5751.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-5751",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 502959,
  "published_at": "2024-06-27T18:40:49.896+00:00"
}