CVE-2026-40217

Executive Summary

LiteLLM versions up to 2026‑04‑08 are vulnerable to remote code execution via bytecode rewriting on the /guardrails/test_custom_code endpoint. Attackers can inject arbitrary code, leading to full system compromise. The vulnerability is actively exploited in the wild, as identified by CISA’s KEV list, necessitating immediate patching or mitigation.


Authoritative CVE Metadata

  • CVSS Base Score: 8.8 (HIGH)
  • Last Modified: 19-11-26
CAUTION

Known Exploited Vulnerability: YES (CISA KEV Added: 18-11-26)

Original Description

LiteLLM through 2026-04-08 allows remote attackers to execute arbitrary code via bytecode rewriting at the /guardrails/test_custom_code URI.