CVE Explorer
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.
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
0
Affected products and versions
1 source assertion{"product":"litellm","vendor":"BerriAI","versions":[{"status":"affected","version":"< 1.82.0-stable"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:1f18d8361e485ab80b2473954382c66cec63f7e3cf9cea01195c79171fcdb445 · sha256:172a7cd8129b57c3… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"LOW","attackRequirements":"PRESENT","attackVector":"NETWORK","baseScore":2.1,"baseSeverity":"LOW","privilegesRequired":"HIGH","subAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","userInteraction":"NONE","vectorString":"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","version":"4.0","vulnAvailabilityImpact":"LOW","vulnConfidentialityImpact":"LOW","vulnIntegrityImpact":"LOW"},"metric_type":"cvssV4_0"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:1f18d8361e485ab80b2473954382c66cec63f7e3cf9cea01195c79171fcdb445 · sha256:172a7cd8129b57c3… · /containers/cna/metrics/0/cvssV4_0
CWE assertions
1 source assertion{"cweId":"CWE-94","description":"CWE-94: Improper Control of Generation of Code ('Code Injection')","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:1f18d8361e485ab80b2473954382c66cec63f7e3cf9cea01195c79171fcdb445 · sha256:172a7cd8129b57c3… · /containers/cna/problemTypes/0/descriptions/0
Source references
3 source assertions{"name":"https://github.com/BerriAI/litellm/commit/e50b4486d0f7aa0497185a1ebcdd2c91f1769eba","tags":["x_refsource_MISC"],"url":"https://github.com/BerriAI/litellm/commit/e50b4486d0f7aa0497185a1ebcdd2c91f1769eba"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:1f18d8361e485ab80b2473954382c66cec63f7e3cf9cea01195c79171fcdb445 · sha256:172a7cd8129b57c3… · /containers/cna/references/1
{"name":"https://github.com/BerriAI/litellm/releases/tag/v1.82.0-stable","tags":["x_refsource_MISC"],"url":"https://github.com/BerriAI/litellm/releases/tag/v1.82.0-stable"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:1f18d8361e485ab80b2473954382c66cec63f7e3cf9cea01195c79171fcdb445 · sha256:172a7cd8129b57c3… · /containers/cna/references/2
{"name":"https://github.com/BerriAI/litellm/security/advisories/GHSA-72m8-9m7m-h278","tags":["x_refsource_CONFIRM"],"url":"https://github.com/BerriAI/litellm/security/advisories/GHSA-72m8-9m7m-h278"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:1f18d8361e485ab80b2473954382c66cec63f7e3cf9cea01195c79171fcdb445 · sha256:172a7cd8129b57c3… · /containers/cna/references/0
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.