9.8

CVE-2024-5751: berriai berriai/litellm Code Injection

CVSS: 9.8v3.0CriticalModified
AliasesGHSA-gppg-gqw8-wh9gPYSEC-2026-389
Published 27-06-2024Last modified 15-10-2025

Vulnerability summary

CVE-2024-5751 is a critical (CVSS 9.8) Code Injection vulnerability in berriai berriai/litellm. EPSS estimates a 0.88% chance of exploitation in the next 30 days, higher than 58.5% of scored vulnerabilities.

Overall risk
70/100
0100
High · default modelHow is this calculated?
CVSS score
9.8/10
010
Critical · v3.0 (CVE.org)
EPSS score
0.88%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded

Timeline

  1. 27-06-2024
    PublishedVulnerability first disclosed.
  2. 15-10-2025
    Last modifiedVulnerability information updated.

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.

CVSS metrics

4 scores · 3 sources · 2 versions

EPSS trend

Probability

0.88%

Chance of exploitation in the next 30 days

Percentile

59%

Versus all other CVEs

30-day change

0.00 pp

From 0.88% on 20-09-2026

20-09-202620-10-2026
EPSS score
0.88%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Berriai1 product
Litellm1 product
PyPI1 product
  • litellm< 1.40.16

3 vendors · 3 products

References

7 links