Server-Side Request Forgery (SSRF) Affecting litellm package, versions [,1.44.8)


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.47% (76th 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 Server-Side Request Forgery (SSRF) vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-LITELLM-7981517
  • published15 Sept 2024
  • disclosed13 Sept 2024
  • creditTsubasa Irisawa

Introduced: 13 Sep 2024

CVE-2024-6587  (opens in a new tab)
CWE-918  (opens in a new tab)

How to fix?

Upgrade litellm to version 1.44.8 or higher.

Overview

litellm is a Library to easily interface with LLM API providers

Affected versions of this package are vulnerable to Server-Side Request Forgery (SSRF) via the api_base parameter used in POST requests at the /chat/completions endpoint. This value can be set to a malicious domain, allowing the owner of that domain to retrieve the OpenAI API keys.

CVSS Scores

version 4.0
version 3.1