Skip to content
StratQuad

Threats

LiteLLM arbitrary code execution via bytecode rewriting

CVE-2026-40217High

LiteLLM contains a flaw in the /guardrails/test_custom_code endpoint that allows remote attackers to execute arbitrary code through bytecode rewriting. An attacker can send a request to this endpoint to achieve code execution on the affected system. No authentication or special privileges are required to exploit this vulnerability.

Plain English summary of the NVD and CISA text, checked by machine against both.

Scores and dates

CVSS 3.1
8.8
HIGH
EPSS score
0.17
Probability of exploitation in 30 days
EPSS percentile
97th
Share of scored CVEs at or below this one

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Daily EPSS score, 3 Nov to 15 Nov, source FIRST

Detail

Affected versions

  • litellm litellm: up to 2026-04-08

Reports naming this CVE2 in total