The risk
An attacker can execute arbitrary code on the affected system, potentially gaining full control of the host.
Affected products and versions
LiteLLM (litellm) versions ≤ 2026-04-08
What to do
- Apply the vendor patch from BerriAI (or the patch available via the link above) within 72 hours.
- Disable or restrict access to the /guardrails/test_custom_code endpoint if possible.
- Monitor access and execution logs for suspicious activity.
- Follow CISA BOD-26-04 guidelines and forensic triage requirements.
- If no update is available, consider decommissioning the product from the environment.
Sources and patches
- NVD — nvd.nist.gov
- CISA — catalogue KEV — www.cisa.gov
- Avis de l'éditeur — www.x41-dsec.de
Advisory written by AWD from public sources (NVD, CISA, FIRST, vendor). Always refer to the vendor's official advisory before acting.
