RCE in Berriai Berriai/litellm

CVE-2024-4264

A remote code execution (RCE) vulnerability exists in the berriai/litellm project due to improper control of the generation of code when using the `eval` function unsafely in the `litellm.get_secret()` method. Specifically, when the server utilizes Google KMS, untrusted data is passed to the `eval` function without any sanitization. Attackers can exploit this vulnerability by injecting malicious values into environment variables through the `/config/update` endpoint, which allows for the update of settings in `proxy_server_config.yaml`.

Vulnerability class: RCE (Remote Code Execution)

EPSS: 0.009 (55.3th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 9.8 (Critical). Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.

Affected products

Weakness classification (CWE)

References

Frequently asked questions

What is CVE-2024-4264?
CVE-2024-4264 is a critical-severity vulnerability in Berriai Berriai/litellm, classified under Code Injection. CVSS score: 9.8/10. Published 2024-05-18.
How severe is CVE-2024-4264?
Critical severity. CVSS v3 base score is 9.8 out of 10.