CVE-2026-40217 Details.
LiteLLM < 1.25.0 - Remote Code Execution
Atlas does not check this one. Needs requests that change data.
To test for this one, the check would have to send requests that could change data on the site. Atlas only ever reads public pages, so it does not run this check.
About CVE-2026-40217. What It Means.
LiteLLM before 1.25.0 allows authenticated users with the master API key to execute arbitrary Python code through the /guardrails/test_custom_code endpoint intended for custom guardrail testing. The endpoint’s insufficient filtering mechanisms can be bypassed, allowing attackers to abuse Python’s string operations and bytecode manipulation to break out of the restricted environment. Successful exploitation may lead to remote code execution as the LiteLLM process user, which…
Affected Product. What Is Hit.
The record for CVE-2026-40217 does not name a vendor or product yet.
FAQ
Common Questions.
LiteLLM < 1.25.0 - Remote Code Execution. LiteLLM before 1.25.0 allows authenticated users with the master API key to execute arbitrary Python code through the /guardrails/test_custom_code endpoint intended for custom guardrail testing. The endpoint’s insufficient filtering mechanisms can be bypassed, allowing attackers to abuse Python’s string operations and bytecode manipulation to break out of the restricted environment. Successful exploitation may lead to remote code execution as the LiteLLM process user, which…
No. To test for this one, the check would have to send requests that could change data on the site. Atlas only ever reads public pages, so it does not run this check. The facts about CVE-2026-40217 are on this page, and you can request a demo to see how Brandefense watches your whole external attack surface.
CVE-2026-40217 is not on the CISA Known Exploited Vulnerabilities list at the time of writing, but it is still worth fixing.
Update the affected software to the latest version from the vendor, or follow the vendor's advice to switch off the affected feature. Vendor links are listed on this page when they are known.
This page lists the public facts about CVE-2026-40217. Atlas does not run a check for it, so nothing here says whether a particular site is affected.