Cyber Resilience

CVE-2024-4264

CriticalRCE

Published: 18 May 2024

Published
18 May 2024
Modified
15 April 2026
KEV Added
Patch
CVSS Score v3 9.8 CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS Score 0.0328 87.5th percentile
Risk Priority 22 60% EPSS · 20% KEV · 20% CVSS

Summary

CVE-2024-4264 is a critical-severity Code Injection (CWE-94) vulnerability. Its CVSS base score is 9.8 (Critical).

Operationally, ranked in the top 12.5% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog.

Deeper analysis

A remote code execution vulnerability exists in the berriai/litellm project, specifically within the litellm.get_secret() method. The flaw stems from unsafe use of Python's eval function without sanitization when the server is configured to use Google KMS, allowing untrusted data to influence code generation. The affected component is the proxy server configuration handling, where settings are loaded from proxy_server_config.yaml.

An unauthenticated attacker can exploit the issue by supplying malicious values through the /config/update endpoint, which updates environment variables and triggers the vulnerable eval path. Successful exploitation grants full remote code execution with impacts on confidentiality, integrity, and availability, consistent with the CVSS 9.8 rating and CWE-94 classification.

The EPSS score rose from a low baseline after disclosure to a peak of 0.0617 on 2025-12-11 before receding to the current value of 0.0328, indicating a period of increased exploitation interest that warrants renewed attention. The referenced huntr.com bounty report provides the primary public details on the finding.

EU & UK References

Vulnerability details

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…

more

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`.

CWE(s)

Related Threats

No named actor attribution yet. ATT&CK technique mapping in progress for this CVE.

Affected Assets

Mitigating Controls

Likely Mitigating Controls AI

Per-CVE control mapping for this CVE has not run yet; the list below is derived from the weakness types (CWEs) cited in the NVD entry.

addresses: CWE-94

Makes persistent code injection into loaded programs impossible when the executable image itself resides on hardware-protected read-only media.

addresses: CWE-94

Dynamically generated code can be produced and executed inside the isolated chamber, preventing host compromise from code-injection payloads.

addresses: CWE-94

Validates inputs used in dynamic code generation to block injected directives.

addresses: CWE-94

Directly prevents execution of attacker-supplied code written into data memory regions.

References