Incorrect Permission Assignment for Critical Resource Affecting litellm package, versions [,1.60.4)


Severity

Recommended
0.0
high
0
10

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

Threat Intelligence

Exploit Maturity
Proof of Concept

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 IDSNYK-PYTHON-LITELLM-9460806
  • published18 Mar 2025
  • disclosed1 Mar 2025
  • creditUnknown

Introduced: 1 Mar 2025

CVE NOT AVAILABLE CWE-732  (opens in a new tab)

How to fix?

Upgrade litellm to version 1.60.4 or higher.

Overview

litellm is a Library to easily interface with LLM API providers

Affected versions of this package are vulnerable to Incorrect Permission Assignment for Critical Resource in the generate_key_fn() function, which allows a user with the Internal role to change the keys of another user whose user_id they know. An attacker can escalate privileges via the /key/update.

References

CVSS Base Scores

version 4.0
version 3.1