Description
LiteLLM through 2026-04-08 allows remote attackers to execute arbitrary code via bytecode rewriting at the /guardrails/test_custom_code URI.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| BerriAI | LiteLLM | bb0639701796218a3447160e55c0f1097446e4e6085df7dfd39f476d4143743f | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | airflow-3 | 3.2.2-r7 | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
GitHub 1 repository
-
learner202649/CVE-2026-40217-PoC ★ 0 · May 19, 2026
The code for personally reproducing the corresponding vulnerability
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Automated scanner template
A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.
- LiteLLM < 1.25.0 - Remote Code Execution http/cves/2026/CVE-2026-40217.yaml
Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | litellm | >= 1.81.8, < 1.83.10 | 1.83.10 | GHSA-wxxx-gvqv-xp7p |
Advisories 1
- WID-SEC-2026-1408 LiteLLM: Schwachstelle ermöglicht Ausführen von beliebigem Programmcode mit Administratorrechten BSI CERT-Bund (WID) · Jun 25, 2026