What happened
BerriAI LiteLLM is affected by CVE-2026-40217, an unprotected alternate channel vulnerability. The official CVE record states that LiteLLM through 2026-04-08 allows remote attackers to execute arbitrary code through bytecode rewriting at the /guardrails/test_custom_code URI. The attack is reachable over a network, requires a low-privileged account and requires no user action.
The vulnerability has a high severity rating, with a vendor score of 8.8. It is listed on CISA’s Known Exploited Vulnerabilities catalogue as actively exploited. The weakness is classified as CWE-420.
Who is affected
Organisations running BerriAI LiteLLM are within the product scope. The verified affected-version entry identifies LiteLLM with the identifier bb0639701796218a3447160e55c0f1097446e4e6085df7dfd39f476d4143743f. Further version information is not stated in the available facts. Patch status is also not stated; the vendor advisory should be checked for fixed versions.
Recommended actions
- Restrict network exposure of LiteLLM services, including access to the vulnerable URI, to reduce the ability to attack exposed services directly.
- Segment affected deployments from other systems to limit network access to the service.
- Place access controls in front of the service so that access to it is limited to authorised, low-privileged accounts and other permitted sources.
- Check the vendor advisory for fixed versions and apply a fixed version where one is identified.

