CVE-2026-59821: LiteLLM - Code Injection
- Cve: CVE-2026-59821
- Name: LiteLLM - Code Injection
- 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.
- Impact: Privileged users can execute arbitrary Python code and expose sensitive secrets in the proxy environment.
- Remediation: Upgrade to version 1.82.0-stable or later.
- Vulnerability type: code_injection
- Vulnerability impact: remote_code_execution, information_disclosure
- Requirement type: logged_in
- Requirements: Attacker must have privileged user access to create or update guardrails
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 7.2
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.00904
- Epss percentile: 0.60523
- Assignee: [email protected]
- Published at: 2026-07-08T20:16:57Z
- Age in days: 139
- Modified at: 2026-10-25T17:10:00Z
- Patch available: yes
- References total: 4
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-59821
- Nvd status: analyzed
- Checked, none or zero: nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
Cwe
| Id | Name |
|---|---|
| CWE-94 | Improper Control of Generation of Code |
Known exploited entries
| List | Added date | Due date | Ransomware use |
|---|---|---|---|
| vulncheck | 2026-07-26 | — | no |
Hackerone
- Reports: 1
- Rank: 3806
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/BerriAI/litellm/commit/e50b4486d0f7aa0497185a1ebcdd2c91f1769eba | nvd | Patch |
| https://github.com/BerriAI/litellm/security/advisories/GHSA-72m8-9m7m-h278 | nvd | Mitigation, Patch, Vendor Advisory |
| https://github.com/BerriAI/litellm/releases/tag/v1.82.0-stable | nvd | Product, Release Notes |
| https://www.linkedin.com/posts/yaarashriki_cve-2026-59821-cve-2026-59822-i-found-activity-7487129774184632320-TvsW/ | vulncheck | Vulncheck Reported Exploitation |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| litellm:litellm | < 1.82.0, = 1.82.0 nightly | no | nvd | /v1/products/litellm/litellm |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| berriai/litellm | commit, fix, package, releases, security_advisory | yes | /v1/repositories/berriai/litellm |
Index
- Repositories: 388
- Repositories high signal: 287
- Packages: 1
Exploitation
- Known exploited by: vulncheck
- Vulncheck known exploited since: 2026-07-26
- Remote: yes
- Authentication required: yes
- Hackerone reports: 1
- Checked, none or zero: known exploited, exploitation seen, public exploit, public exploit count, initial access
- Not known: known exploited since, public exploit first date, nuclei template, initial access since, exposed hosts