CVE-2026-59821
LOW
2.1
CVSS 4.0
Description
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.
Metadata
Severity & Metrics
2.1
LOW CVSS 4.0
CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N
SSVC — CISA Coordinator
Affected products (1)
| Vendor | Product | Platform | Versions |
|---|---|---|---|
| BerriAI | litellm | — | < 1.82.0-stable |
Weakness (CWE)
| CWE | Source | Description |
|---|---|---|
| CWE-94 | cna | CWE-94: Improper Control of Generation of Code ('Code Injection') |
CVSS scores (1)
| Score | Severity | Version | Source | Vector |
|---|---|---|---|---|
| 2.1 | LOW | 4.0 | cna | CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N |
References (3)
- https://github.com/BerriAI/litellm/security/advisories/GHSA-72m8-9m7m-h278 https://github.com/BerriAI/litellm/security/advisories/GHSA-72m8-9m7m-h278
- https://github.com/BerriAI/litellm/commit/e50b4486d0f7aa0497185a1ebcdd2c91f1769eba https://github.com/BerriAI/litellm/commit/e50b4486d0f7aa0497185a1ebcdd2c91f1769eba
- https://github.com/BerriAI/litellm/releases/tag/v1.82.0-stable https://github.com/BerriAI/litellm/releases/tag/v1.82.0-stable