Attackers probe LiteLLM gateways using BadHost authentication bypass and RCE vulnerabilities
Attackers Target LiteLLM AI Gateways Using BadHost Authentication Bypass and RCE Vulnerabilities
Honeypot sensors recently observed attackers using malformed Host headers to probe LiteLLM gateways, attempting to exploit CVE-2026-42271 and CVE-2026-48710 to bypass authentication and execute commands on exposed servers. Horizon3.ai's analysis states that the two vulnerabilities can be chained into unauthenticated remote code execution; the root cause is that versions of Starlette before 1.0.1 do not validate the Host header, using that value to construct a full URL before making access control decisions, so an attacker inserting characters such as /, ?, # into the header can bypass the check; LiteLLM relies on this mechanism for authentication, so the /mcp-rest/test/tools/list endpoint, which should require authentication, can be accessed arbitrarily. The observed request was a POST to that endpoint carrying a forged token, with a JSON body defining a server that uses stdio transport and executes a harmless test command, to confirm whether commands specified by the attacker would be executed.