highCVSS 8.8NVD status: Modified

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.

ComponentLiteLLM
Severityhigh (CVSS 8.8)
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Published (NVD)2026-04-10
Last modified2026-07-15
Affected versions
litellm <= 2026-04-08
Fixed insee the vendor advisory
WeaknessCWE-420CWE-94
CISA KEVnot listed

NVD description

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

Does CVE-2026-40217 hit the version you run?Paste your docker-compose.yml, requirements.txt or package.json. The scanner checks your pinned versions against this CVE and every other one we track for LiteLLM.
Check my stack

What to do

  • NVD lists no fixed version yet: follow the vendor advisory below and keep LiteLLM off the public internet until a fix ships.
  • Do not expose the component's API or UI to the internet without authentication in front of it.

Sources

Read more

Other LiteLLM CVEs

All LiteLLM CVEs