SecurityContext

CVE-2024-5751: BerriAI/litellm - Remote Code Execution

  • Cve: CVE-2024-5751
  • Name: BerriAI/litellm - Remote Code Execution
  • Description: 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.
  • Impact: Attackers can execute arbitrary code on the server, potentially leading to full system compromise.
  • Remediation: Update to the latest version of BerriAI/litellm that addresses this vulnerability or apply security patches provided by the vendor.
  • Vulnerability type: insecure_deserialization
  • Vulnerability impact: remote_code_execution
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: critical
  • Cvss score: 9.8
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.00882
  • Epss percentile: 0.59909
  • Assignee: [email protected]
  • Published at: 2024-06-27T19:15:16Z
  • Age in days: 880
  • Modified at: 2026-06-17T08:16:35Z
  • References total: 1
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2024-5751
  • Nvd status: modified
  • Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-94Improper Control of Generation of Code

References

UrlSourceTags
https://huntr.com/bounties/ae623c2f-b64b-4245-9ed4-f13a0a5824cenvdThird Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
litellm:litellm= 1.35.8nonvd/v1/products/litellm/litellm

Projects

RepositoryLink kindsIndexedUrl
berriai/litellmcommit, package, pullyes/v1/repositories/berriai/litellm

Index

  • Repositories: 293
  • Repositories high signal: 221
  • Packages: 1

Exploitation

  • Remote: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts