Command Injection Affecting litellm package, versions [,1.83.6)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
1.19% (65th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Command Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-LITELLM-17988450
  • published16 Jul 2026
  • disclosed16 Jul 2026
  • creditMoshe Siman Tov Bustan, Mustafa Naamnih, Nir Zadok

Introduced: 16 Jul 2026

NewCVE-2026-30623  (opens in a new tab)
CWE-78  (opens in a new tab)

How to fix?

Upgrade litellm to version 1.83.6 or higher.

Overview

litellm is a Library to easily interface with LLM API providers

Affected versions of this package are vulnerable to Command Injection in the _create_mcp_client function, which passes a user-supplied command value into StdioServerParameters and executes it as a subprocess on the proxy host without validation. A user with a valid LiteLLM API key can execute arbitrary operating system commands as the process user by supplying a command in an MCP server creation or update request (NewMCPServerRequest, UpdateMCPServerRequest) or in the /mcp-rest/test/connection and /mcp-rest/test/tools/list preview endpoints.

CVSS Base Scores

version 4.0
version 3.1