CVE-2024-6825 – litellm
Package
Manager: pip
Name: litellm
Vulnerable Version: >=1.40.3.dev2 <=1.40.12
Severity
Level: High
CVSS v3.1: CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
EPSS: 0.00543 pctl0.66741
Details
LiteLLM Vulnerable to Remote Code Execution (RCE) BerriAI/litellm version 1.40.12 contains a vulnerability that allows remote code execution. The issue exists in the handling of the 'post_call_rules' configuration, where a callback function can be added. The provided value is split at the final '.' mark, with the last part considered the function name and the remaining part appended with the '.py' extension and imported. This allows an attacker to set a system method, such as 'os.system', as a callback, enabling the execution of arbitrary commands when a chat response is processed.
Metadata
Created: 2025-03-20T12:32:45Z
Modified: 2025-03-20T19:55:11Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/03/GHSA-53gh-p8jc-7rg8/GHSA-53gh-p8jc-7rg8.json
CWE IDs: ["CWE-77"]
Alternative ID: GHSA-53gh-p8jc-7rg8
Finding: F422
Auto approve: 1