Horizon Alert
Summary of the vulnerability and why it matters
A vulnerability in the LiteLLM AI Gateway could allow authenticated users to execute arbitrary commands on the host system. This is due to how certain endpoints handled server configurations, potentially leading to unauthorized command execution with the privileges of the proxy process. The issue has been patched in version 1.83.7.
- Any authenticated user can run commands.
- It affects a central AI gateway service.
- Confirm if your AI gateway is exposed.
Attack Path
How an attacker could exploit the issue
An attacker with a valid API key can send a crafted request to specific LiteLLM endpoints. These endpoints process server configurations, and if a malicious command is included in the configuration, LiteLLM will execute it as a subprocess on the host. This allows an attacker to run arbitrary commands with the privileges of the LiteLLM process.
- Requires authenticated access.
- Triggered by sending a malicious server configuration.
- Leads to arbitrary command execution.
Live Threat
Current exploitation, exposure, and threat context
An authenticated user could execute arbitrary commands on the LiteLLM proxy server host. This could occur when the server attempts to test an MCP server configuration, if the affected endpoints are called with a stdio configuration and a malicious command.
- Arbitrary command execution on host.
- Endpoints accept and run commands.
- Compromise of the proxy host system.
Priority actions
Operational Fix
Recommended remediation, mitigation, and detection steps
Teams responsible for managing API gateways, AI infrastructure, or application platforms should prioritize this vulnerability. The immediate practical step is to identify all instances of the affected LiteLLM proxy, confirm its accessibility from the network, and determine its business criticality to prioritize remediation efforts.
- Identify and inventory affected systems.
- Verify network exposure and impact.
- Plan remediation based on risk.