Unpatched LiteLLM AI Gateways Targeted for Unauthenticated RCE
Written by AI from the linked story. Not reviewed by an editor. How this works
Attackers are actively scanning the internet for LiteLLM AI gateway servers vulnerable to two chained flaws—CVE-2026-42271 and CVE-2026-48710—that together allow unauthenticated remote code execution. The first flaw exposes an MCP test endpoint that executes arbitrary commands, while the second bypasses login checks entirely via a crafted Host header, meaning no credentials are needed to compromise an exposed server. AI infrastructure components like LiteLLM are increasingly internet-facing, making them high-value targets when left unpatched. The active scanning observed by the Internet Storm Center demonstrates that attackers move quickly to exploit newly disclosed vulnerabilities before organizations have time to respond, underscoring the need for rapid patch deployment and continuous exposure management.
Tactical Insight
Immediate actions
- Upgrade LiteLLM to version 1.83.7 or later and Starlette to version 1.0.1 or later to eliminate both vulnerabilities.
- Restrict public internet access to LiteLLM admin and MCP endpoints using firewall rules or reverse-proxy allowlists.
- Audit all deployed AI gateway instances for internet exposure using an asset inventory or external attack surface scan.
Detection measures
- Monitor for unexpected requests to the `/mcp-rest/test/tools/list` endpoint and alert on anomalous Host header values or fake bearer tokens.
- Deploy a web application firewall (WAF) rule to block requests with malformed or suspicious Host headers targeting AI gateway services.
Long-term improvements
- Establish an emergency patching SLA (e.g., 24–48 hours) for internet-facing services when a critical RCE vulnerability is published.
- Integrate LiteLLM and other AI infrastructure components into continuous vulnerability scanning so new CVEs are detected and triaged automatically.
- Enforce network segmentation so AI gateway servers cannot reach sensitive internal systems if compromised.