SecurityContext

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

IdName
CWE-420Unprotected Alternate Channel
CWE-94Improper Control of Generation of Code

Known exploited entries

ListAdded dateDue dateRansomware use
cisa2026-11-182026-12-02no
vulncheck2026-07-30—no

Nuclei templates

IdUrl
CVE-2026-40217https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2026/CVE-2026-40217.yaml

Public exploits

UrlSourceAdded date
https://www.x41-dsec.de/lab/advisories/x41-2026-001-litellm/nvd2026-04-10
https://github.com/HORKimhab/CVE-LiteLLM.gitvulncheck-xdb2026-06-16
https://github.com/learner202649/CVE-2026-40217-PoCpoc-in-github2026-05-19
https://github.com/learner202649/CVE-2026-40217-PoC.gitvulncheck-xdb2026-05-19

References

UrlSourceTags
https://www.x41-dsec.de/lab/advisories/x41-2026-001-litellm/nvdExploit, Mitigation, Third Party Advisory
https://access.redhat.com/errata/RHSA-2026:24866nvdThird Party Advisory
https://access.redhat.com/errata/RHSA-2026:30056nvdThird Party Advisory
https://access.redhat.com/security/cve/CVE-2026-40217nvdThird Party Advisory
https://bugzilla.redhat.com/show_bug.cgi?id=2457301nvdThird Party Advisory
https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40217.jsonnvdThird Party Advisory
https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-40217nvdUS Government Resource
https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2026/CVE-2026-40217.yamlnuclei_templateNuclei Template
https://api.vulncheck.com/v3/index/vulncheck-canaries?cve=CVE-2026-40217&date=2026-11-22vulncheckVulncheck Reported Exploitation
https://cloud.google.com/blog/topics/threat-intelligence/agentic-threat-activity-crosses-a-significant-thresholdvulncheckVulncheck Reported Exploitation

Products

Same in every row:

  • Platform bound: no
  • Sources: nvd
ProductAffectedUrl
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_lightspeedall versions/v1/products/redhat/openshift_lightspeed

Projects

RepositoryLink kindsIndexedUrl
berriai/litellmpackage, releases, security_advisoryyes/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

Nuclei template