Skip to content
African Wealths Development

CVE-2026-40217 · High · Actively exploited

LiteLLM versions up to 2026-04-08 allow remote attackers to execute arbitrary code by rewriting bytecode at the /guardrails/test_custom_code endpoint. This flaw can be triggered without authentication and grants full control over the host. The vulnerability is actively exploited and requires immediate attention.

High· 8.8Actively exploited

The risk

An attacker can execute arbitrary code on the affected system, potentially gaining full control of the host.

Affected products and versions

LiteLLM (litellm) versions ≤ 2026-04-08

What to do

  • Apply the vendor patch from BerriAI (or the patch available via the link above) within 72 hours.
  • Disable or restrict access to the /guardrails/test_custom_code endpoint if possible.
  • Monitor access and execution logs for suspicious activity.
  • Follow CISA BOD-26-04 guidelines and forensic triage requirements.
  • If no update is available, consider decommissioning the product from the environment.

Sources and patches

Advisory written by AWD from public sources (NVD, CISA, FIRST, vendor). Always refer to the vendor's official advisory before acting.

Take action

Exposed to one of these flaws?

Our consultants check your exposure and help you fix it, before an attacker gets there.

Request a quoteWhatsAppCall