LiteLLMPublished 10 Apr 2026NVD status: Analyzed

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-11-19
Affected versions
>= 1.81.8, < 1.83.10
Fixed in1.83.10
WeaknessCWE-420CWE-94
CISA KEVlisted 2026-11-18

Versions, checked against NVD

These are NVD's ranges. Neither a GitHub-reviewed advisory nor the CVE record gives versions to check them against yet.

NVD description

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

CISA required action

Apply mitigations in accordance with vendor instructions, ensuring compliance with CISA’s BOD 26-04 Prioritizing Security Updates Based on Risk (see URL in Notes) guidance and CISA’s “Forensics Triage Requirements” (see URL in Notes). Follow applicable BOD 26-04 guidance for cloud services or discontinue use of the product if mitigations are unavailable. Stakeholders are responsible for evaluating each asset's internet exposure and ensuring adherence to BOD 26-04 patching guidelines.

What to do

  • Upgrade LiteLLM to 1.83.10 or later.
  • Do not expose the component's API or UI to the internet without authentication in front of it.
  • It is exploited in the wild: treat unpatched hosts as compromised, rotate the secrets they hold and review their logs.

Sources

Read more