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)
Published · last modified .
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.
EPSS exploit prediction
EPSS: 0.009 (58.5th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 59th percentile — 58.5% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.007 · newest: 0.009 · change: +0.002
Affected products
- Berriai Litellm — versions < 1.82.0-stable
- Litellm — versions 1.82.0
Weakness classification (CWE)
References
- github.com/BerriAI/litellm/security/advisories/GHSA-72m8-9m7m-h278 (Patch, Mitigation, Vendor Advisory)
- github.com/BerriAI/litellm/commit/e50b4486d0f7aa0497185a1ebcdd2c91f1769eba (Patch)
- github.com/BerriAI/litellm/releases/tag/v1.82.0-stable (Product, Release Notes)
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.