Intel

AIKIDO-2024-10234

litellm is vulnerable to Improper Input Validation

Improper Input Validation Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Aug 30, 2024

80

High Risk

This Affects:

pythonlitellm
1.40.15 - 1.44.8
Fixed in 1.44.9
Are you affected? Scan for Free

TL;DR

Affected versions of the package are vulnerable to improper input validation. Users can specify the api_base parameter when making requests to POST /chat/completions. The application then sends the request to the domain specified by api_base, which includes the OpenAI API key. A malicious user can set api_base to their own domain and invoke POST /chat/completions to intercept and steal the OpenAI API key.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

litellm is vulnerable to Improper Input Validation in versions 1.40.15 - 1.44.8.

How to fix this

Upgrade the litellm library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform