CVE-2026-40217: LiteLLM - Remote Code Execution
- Cve: CVE-2026-40217
- Name: LiteLLM - Remote Code Execution
- Description: LiteLLM through 2026-04-08 allows remote attackers to execute arbitrary code via bytecode rewriting at the /guardrails/test_custom_code URI.
- Impact: Remote attackers can execute arbitrary code, potentially leading to full system compromise.
- Remediation: Update to a version later than 2026-04-08 or the latest available version.
- Vulnerability impact: remote_code_execution
- Requirement type: none
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 8.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.82799
- Epss percentile: 0.99678
- Assignee: [email protected]
- Published at: 2026-04-10T14:16:36Z
- Age in days: 227
- Modified at: 2026-11-19T17:18:57Z
- Patch available: yes
- Public exploits total: 4
- References total: 10
- Products total: 4
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-40217
- Nvd status: analyzed
- Checked, none or zero: public exploits capped, rejected by nvd
- Not known: vulnerability type, requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-420 | Unprotected Alternate Channel |
| CWE-94 | Improper Control of Generation of Code |
Known exploited entries
| List | Added date | Due date | Ransomware use |
|---|---|---|---|
| cisa | 2026-11-18 | 2026-12-02 | no |
| vulncheck | 2026-07-30 | — | no |
Nuclei templates
| Id | Url |
|---|---|
| CVE-2026-40217 | https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2026/CVE-2026-40217.yaml |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://www.x41-dsec.de/lab/advisories/x41-2026-001-litellm/ | nvd | 2026-04-10 |
| https://github.com/HORKimhab/CVE-LiteLLM.git | vulncheck-xdb | 2026-06-16 |
| https://github.com/learner202649/CVE-2026-40217-PoC | poc-in-github | 2026-05-19 |
| https://github.com/learner202649/CVE-2026-40217-PoC.git | vulncheck-xdb | 2026-05-19 |
References
Products
Same in every row:
- Platform bound: no
- Sources: nvd
| Product | Affected | Url |
|---|---|---|
| litellm:litellm | >= 1.81.8, < 1.83.10 | /v1/products/litellm/litellm |
| redhat:ansible_automation_platform | >= 2.0, < 2.6-9 | /v1/products/redhat/ansible_automation_platform |
| redhat:openshift_ai | >= 3.3, < 3.3.4 | /v1/products/redhat/openshift_ai |
| redhat:openshift_lightspeed | all versions | /v1/products/redhat/openshift_lightspeed |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| berriai/litellm | package, releases, security_advisory | yes | /v1/repositories/berriai/litellm |
Index
- Repositories: 108
- Repositories high signal: 63
- Packages: 1
Exploitation
- Known exploited: yes
- Known exploited since: 2026-11-18
- Known exploited by: cisa, vulncheck
- Vulncheck known exploited since: 2026-07-30
- Public exploit: yes
- Public exploit count: 4
- Public exploit first date: 2026-04-10
- Remote: yes
- Authentication required: yes
- Checked, none or zero: exploitation seen, initial access
- Not known: initial access since, hackerone reports, exposed hosts