Arbitrary Command Injection Affecting litellm package, versions [,1.65.5)


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.38% (59th 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 Arbitrary Command Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-LITELLM-9511162
  • published24 Mar 2025
  • disclosed20 Mar 2025
  • creditmvlttt @mvlttt

Introduced: 20 Mar 2025

NewCVE-2024-6825  (opens in a new tab)
CWE-77  (opens in a new tab)

How to fix?

Upgrade litellm to version 1.65.5 or higher.

Overview

litellm is a Library to easily interface with LLM API providers

Affected versions of this package are vulnerable to Arbitrary Command Injection through the post_call_rules configuration. An attacker can execute arbitrary commands by setting a system method, such as os.system, as a callback, which is executed when a chat response is processed.

CVSS Base Scores

version 4.0
version 3.1