Litellm: flaw lets attackers run their own code on the server
CVE-2026-40217 · published 20 Nov 2026
CVE-2026-40217 is a serious security flaw in Litellm, Redhat Ansible Automation Platform, Redhat Openshift Ai, rated 8.8 out of 10.
The official description: LiteLLM through 2026-04-08 allows remote attackers to execute arbitrary code via bytecode rewriting at the /guardrails/test_custom_code URI.
Attackers already use this flaw (it is on the CISA list of exploited vulnerabilities). Update now.
How to check if you are affected, and how to fix it
The full analysis (affected versions, step-by-step check, fix, what to do if you cannot update yet, and signs of an attack) is free in your SegfaultSec dashboard. You also get an alert when a new vulnerability matches the software on your website.
Read the full analysis