Attackers scan for chained LiteLLM/Starlette RCE
SANS ISC observed honeypot scans exploiting CVE-2026-42271 (Starlette BadHost) chained with CVE-2026-48710 for unauthenticated RCE in LiteLLM.
Sourceisc.sans.edu — open the original
What to check
- Applies to
- The 2 CVEs named below. Whether you run an affected version is not assessed: check the versions the source lists.
- Exploitation
- CISA lists CVE-2026-42271 and CVE-2026-48710 as exploited in the wild.
SANS Internet Storm Center reported honeypot traffic targeting the /mcp-rest/test/tools/list endpoint, attempting to exploit a chain of two vulnerabilities: CVE-2026-42271, a Host-header validation flaw in Starlette (dubbed 'BadHost') affecting versions prior to 1.0.1, and CVE-2026-48710, a flaw in LiteLLM that relies on Starlette for access control. Because Starlette fails to validate the Host header before using it to construct URLs for access-control decisions, attackers can craft malicious Host headers (using characters such as '/', '?', '#', and '[') to bypass authentication checks and reach the normally-protected tools/list endpoint. Observed requests sent a JSON payload specifying a 'stdio' transport with an arbitrary command (e.g. 'id'), achieving unauthenticated remote code execution.
Horizon3.ai published the original technical write-up detailing how the two CVEs can be chained for RCE. ISC's honeypot data shows attackers are actively modifying Host header payloads (e.g., 'localhost]', '[localhost', '127.0.0.1]', 'litellm.proxy') to evade filters built around the original published PoC, indicating ongoing adaptation of exploit attempts rather than a new campaign. The analyst notes exploitation of this vulnerability class was first reported as far back as July, underscoring that attackers continue to iterate on known bugs to bypass WAF signatures.
Defenders running LiteLLM or any service built on Starlette prior to 1.0.1 should upgrade immediately. WAF and filtering rules should validate Host headers against an allow-list of expected hostnames rather than blocking specific known-bad characters or PoC signatures, since attackers are already evading naive filters. Developers are advised to validate individual data components (like hostnames) before assembling them into composite structures such as URLs, and to minimize externally-exposed attack surface as a general mitigation while patches are applied.
Mentioned in this report
Detection guidance
LiteLLM MCP REST tools/list Endpoint Request
A behavioural hunt for the technique in general, not a signature for the CVEs this report names.
Web request to the LiteLLM /mcp-rest/test/tools/list endpoint, the target of the chained Starlette 'BadHost' and LiteLLM auth-bypass RCE. Auto-generated starting point — validate and tune in your environment before deploying. IOC matches can false-positive on shared infrastructure and decay as adversary infrastructure rotates.
title: LiteLLM MCP REST tools/list Endpoint Request
description: Detects requests to the LiteLLM MCP test endpoint /mcp-rest/test/tools/list,
which is the target of the CVE-2026-42271 / CVE-2026-48710 chained auth-bypass to
RCE. The endpoint is normally reachable only by authenticated administrators, so
external or unexpected requests deserve review. Check the response status and whether
the request originated from an expected admin source.
tags:
- attack.initial-access
- attack.t1190
logsource:
category: webserver
detection:
selection:
cs-uri-stem|endswith: /mcp-rest/test/tools/list
condition: selection
falsepositives:
- Administrators legitimately testing MCP tool configuration through the LiteLLM UI
- Internal vulnerability scanners or QA tests against LiteLLM
level: medium
id: 423a9e73-9018-5501-a39b-48c10403d373
status: experimental
author: Vorant
references:
- https://isc.sans.edu/diary/rss/33522
Malformed Host Header with Path or Bracket Characters in Web Request
A behavioural hunt for the technique in general, not a signature for the CVEs this report names.
Host header containing '/', '?', '#' or unbalanced IPv6-style brackets, used in the Starlette BadHost access-control bypass. Auto-generated starting point — validate and tune in your environment before deploying. IOC matches can false-positive on shared infrastructure and decay as adversary infrastructure rotates.
title: Malformed Host Header with Path or Bracket Characters in Web Request
description: Detects HTTP requests whose Host header contains URL-delimiter characters
(/, ?,
tags:
- attack.initial-access
- attack.t1190
logsource:
category: webserver
detection:
selection:
cs-host|re:
- '[/?#]'
- ^\[[^\]]*[g-zG-Z]
- ^[^\[]+\]
condition: selection
falsepositives:
- Broken or misconfigured HTTP clients and scanners sending malformed Host headers
- Reverse proxies that log a rewritten Host value containing a path
level: medium
id: 3d37961b-1c16-5b76-8532-160e76fffc3a
status: experimental
author: Vorant
references:
- https://isc.sans.edu/diary/rss/33522
LiteLLM Proxy Process Spawning Reconnaissance Command
A behavioural hunt for the technique in general, not a signature for the CVEs this report names.
A Python process running LiteLLM spawns id/whoami/uname-style commands, consistent with stdio-transport RCE via the MCP test endpoint. Auto-generated starting point — validate and tune in your environment before deploying. IOC matches can false-positive on shared infrastructure and decay as adversary infrastructure rotates.
title: LiteLLM Proxy Process Spawning Reconnaissance Command
description: Detects a Python process running LiteLLM spawning basic reconnaissance
binaries such as id or whoami. The chained BadHost and LiteLLM flaw lets an unauthenticated
attacker submit a stdio MCP transport with an arbitrary command (e.g. 'id'), which
the proxy then executes as a child process.
tags:
- attack.initial-access
- attack.t1190
logsource:
category: process_creation
product: linux
detection:
selection_parent:
ParentImage|contains: python
ParentCommandLine|contains: litellm
selection_child:
Image|endswith:
- /id
- /whoami
- /uname
- /hostname
condition: selection_parent and selection_child
falsepositives:
- LiteLLM-hosted MCP servers or custom tools that intentionally run id or hostname
as part of their function
level: high
id: da3e2ab7-869f-533a-bb62-904cfcf09902
status: experimental
author: Vorant
references:
- https://isc.sans.edu/diary/rss/33522
Behavioural rules are generated from public reporting — validate in your environment before deploying.
Source reporting: https://isc.sans.edu/diary/rss/33522
Free public brief. The Sigma rules (and on a paid plan the Splunk SPL already written, plus Elastic and KQL where they apply) are in the app with a free account, no card. Slack alerts on the vendors you run come with the paid plans, and a new account gets five days of them.
What this brief leaves out
This page is the free tier: the write-up, the severity, the names. In the app the same report carries its Sigma rules (and on a paid plan the Splunk SPL already written, plus Elastic and Microsoft KQL where they apply) and live profiles of the CVEs it names. A free account in the app opens every report of the last 30 days, the security research and news included; the paid plans add the archive, what to hunt, the investigations and the rules as SIEM queries.
It sits in a corpus of 17,321 reports from 146 sources, 698 of them written in the last seven days, and it grows through the day.
A new account starts with five days of all of it, no card, then keeps the last 30 days of reporting free, the research and news included. Slack alerts are a paid-plan feature: name the vendors you run and Slack hears about the reports that touch them, not the rest of the week's. Nothing is charged unless you subscribe.
Create a free account What it costs