RCE in Berriai Litellm

CVE-2026-59821

LiteLLM is a proxy server (AI Gateway) to call LLM APIs in OpenAI (or native) format. Prior to 1.82.0-stable, LiteLLM's Custom Code Guardrails production create and update paths did not apply the same sandboxing and validation used by the test endpoint, allowing a privileged user with access to create or update guardrails to submit custom Python code that executed in the LiteLLM proxy environment and could expose secrets available to the process. This issue is fixed in version 1.82.0-stable.

Vulnerability class: RCE (Remote Code Execution)

EPSS: 0.004 (28.9th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 7.2 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H.

Affected products

Weakness classification (CWE)

References

Frequently asked questions

What is CVE-2026-59821?
CVE-2026-59821 is a high-severity vulnerability in Berriai Litellm, classified under Code Injection. CVSS score: 7.2/10. Published 2026-07-08.
How severe is CVE-2026-59821?
High severity. CVSS v3 base score is 7.2 out of 10.