Command Injection Affecting litellm package, versions [1.74.2,1.83.7)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

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-16119122
  • published22 Apr 2026
  • disclosed20 Apr 2026
  • creditUnknown

Introduced: 20 Apr 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.7 or higher.

Overview

litellm is a Library to easily interface with LLM API providers

Affected versions of this package are vulnerable to Command Injection via preview MCP server endpoints POST /mcp-rest/test/connection and POST /mcp-rest/test/tools/list. An attacker can execute arbitrary commands by accessing the publicly exposed MCP management interface and configuring the server with attacker-controlled commands and arguments.

CVSS Base Scores

version 4.0
version 3.1