Vulnerability · CVE-2026-40217
LiteLLM through 2026-04-08 allows remote attackers to execute arbitrary code via bytecode rewriting at the /guardrails/test_custom_code URI.
Published Apr 10, 2026 · catalog updated Jul 30, 2026 · LiteLLM LiteLLM
Patch now
CVE-2026-40217 is in the CISA known-exploited catalog. Confirm LiteLLM LiteLLM against the vendor advisory and apply that fix. The CVSS score does not change the priority.
Gaps on this record
- No version range is stored. A customer cannot check an installed version against this record.
- Severity
- High8.8
- Known exploitation
- CISA KEV and VulnCheck KEV
- EPSS
- 3.40%
- Remediation
- Remediation guidance
- Affected products
- cpe litellm/litellm · vendor LiteLLM LiteLLM
LiteLLM through 2026-04-08 allows remote attackers to execute arbitrary code via bytecode rewriting at the /guardrails/test_custom_code URI. VulnCheck canary evidence.
Are you affected?
Enter the version you run. The result uses only the ranges stored on this record.
The check returns affected, not affected, or incomplete. It does not guess a version that is missing from the record.
- cpe litellm/litellmversion unspecified
- vendor LiteLLM LiteLLMversion unspecified
How to fix CVE-2026-40217
Recommended remediation
Apply remediations or mitigations per vendor instructions or discontinue use of the product if remediation or mitigations are unavailable.
Official advisories
What to do
Three questions, each answered from this record only. Confirm the vendor advisory before you patch.
Should you patch?
CVE-2026-40217 is in the CISA known-exploited catalog. Confirm LiteLLM LiteLLM against the vendor advisory and apply that fix. The CVSS score does not change the priority.
Which versions are affected?
Affected version ranges are not on this record. Apply remediations or mitigations per vendor instructions or discontinue use of the product if remediation or mitigations are unavailable.
What should an analyst verify?
CWE-420; CWE-94: Code Injection. EPSS 3.40%. The CISA KEV listing is the exploitation evidence. No Exploit-DB or Metasploit reference is linked. Use the source links for the original advisory.
Code
The project this record applies to. Exploit listings stay in References.
No public source repository is identified for this product.
Timeline
Detection, updates, and resolution for this record.
Apr 10, 2026 · NIST NVD
Detected
LiteLLM through 2026-04-08 allows remote attackers to execute arbitrary code via bytecode rewriting at the /guardrails/test_custom_code URI.
Jul 15, 2026 · NIST NVD
Updated
LiteLLM through 2026-04-08 allows remote attackers to execute arbitrary code via bytecode rewriting at the /guardrails/test_custom_code URI.
Jul 30, 2026 · CISA KEV
Known exploited
Apply remediations or mitigations per vendor instructions or discontinue use of the product if remediation or mitigations are unavailable.
Jul 30, 2026 · VulnCheck KEV
Updated
LiteLLM through 2026-04-08 allows remote attackers to execute arbitrary code via bytecode rewriting at the /guardrails/test_custom_code URI. VulnCheck canary evidence.
Sources
- CVE.orgVulnerability recordCVE-2026-40217
Official CVE identifier
cve.org - FIRST EPSSExploitation probabilityCVE-2026-40217
30-day exploitation probability 3.4%
first.org - NIST NVDVulnerability recordCVE-2026-40217
LiteLLM through 2026-04-08 allows remote attackers to execute arbitrary code via bytecode rewriting at the /guardrails/test_custom_code URI.
nvd.nist.gov - VulnCheck KEVConfirmed exploitationCVE-2026-40217
LiteLLM through 2026-04-08 allows remote attackers to execute arbitrary code via bytecode rewriting at the /guardrails/test_custom_code URI.
vulncheck.com
References
- Reference · access.redhat.com
- Reference · access.redhat.com
- Reference · access.redhat.com
- VulnCheck exploitation evidence · api.vulncheck.com
- VulnCheck exploitation evidence · api.vulncheck.com
- VulnCheck exploitation evidence · api.vulncheck.com
- VulnCheck exploitation evidence · api.vulncheck.com
- VulnCheck exploitation evidence · api.vulncheck.com
- VulnCheck exploitation evidence · api.vulncheck.com
- Reference · bugzilla.redhat.com
- Reference · security.access.redhat.com
- Exploit · x41-dsec.de
Freshness
Last verified in this catalog Oct 18, 2026. Significant claims (KEV, EPSS, CVSS, affected ranges) come from the source rows above — open the original publisher for the authoritative advisory.