Actively Exploited LiteLLM Flaw Can Be Chained to Unauthenticated RCE

· Original article ↗

Summary

CISA added LiteLLM command-injection flaw CVE-2026-42271 to its KEV catalog. Horizon3.ai demonstrated a Starlette flaw chain that can enable unauthenticated RCE; it is unknown whether observed attacks use the chain.

Key points

  • CISA added CVE-2026-42271 to its Known Exploited Vulnerabilities catalog, citing evidence of active exploitation; the article gives no details on the attacks, targets, or actor.
  • The command-injection flaw affects LiteLLM versions 1.74.2 through 1.83.6 and lets an authenticated user run commands on the proxy host.
  • The MCP preview endpoints POST /mcp-rest/test/connection and POST /mcp-rest/test/tools/list accepted attacker-supplied stdio configuration that could spawn commands.
  • LiteLLM 1.83.7 requires the PROXY_ADMIN role for both endpoints.
  • Horizon3.ai demonstrated chaining CVE-2026-42271 with Starlette CVE-2026-48710 to bypass authentication and achieve unauthenticated RCE in affected deployments; it is unclear whether observed exploitation uses the chain.
  • The article recommends updating LiteLLM to 1.83.7 or later and Starlette to 1.0.1 or later. Interim steps include blocking the endpoints, restricting network access, rotating proxy-stored credentials, and reviewing logs.

Article Details

Vulnerability Types
  • Command injection
  • Host header validation bypass
Severity
High for CVE-2026-42271 (CVSS 8.7); the chained vulnerabilities have a combined CVSS score of 10.0.
Affected Versions
  • LiteLLM 1.74.2 through 1.83.6
  • Starlette versions ≤ 1.0.0
Exploitation Status
active
Exploit Availability
unknown
Patch Status
available
Workarounds
  • Block POST /mcp-rest/test/connection and POST /mcp-rest/test/tools/list at the reverse proxy or API gateway.
  • Restrict network access to trusted segments.

MITRE ATT&CK

CVE

Vendors

Products

Related Articles