Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2024-6825— Remote Code Execution in BerriAI/litellm

Quick assessment

Affected
berriai berriai/litellm
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

LiteLLM是Berri AI开源的一个应用程序。可以使用 OpenAI 格式调用所有 LLM API。 LiteLLM 1.40.12版本存在命令注入漏洞,该漏洞源于post_call_rules配置处理不当,可能导致远程代码执行。

AI Predicted 9.8 Difficulty: Easy EPSS 1.65% · P76
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2024-6825

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Remote Code Execution in BerriAI/litellm
Source: CVE Program / CVE List V5
Vulnerability Description
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.
Source: CVE Program / CVE List V5
CVSS Information
N/A
Source: CVE Program / CVE List V5
Vulnerability Type
对生成代码的控制不恰当(代码注入)
Source: CVE Program / CVE List V5
Vulnerability Title
LiteLLM 命令注入漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
LiteLLM是Berri AI开源的一个应用程序。可以使用 OpenAI 格式调用所有 LLM API。 LiteLLM 1.40.12版本存在命令注入漏洞,该漏洞源于post_call_rules配置处理不当,可能导致远程代码执行。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
berriai berriai/litellm unspecified ~ v1.65.4.dev6 -

II. Public POCs for CVE-2024-6825

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2024-6825

请登录查看更多情报信息。

Vendor Advisories for CVE-2024-6825 (1)

Same Patch Batch · berriai · 2025-03-20 · 6 CVEs total

CVE-2025-0330 Exposure of Sensitive Information in berriai/litellm
CVE-2025-0628 Improper Authorization in BerriAI/litellm
CVE-2024-8984 Denial of Service (DoS) in berriai/litellm
CVE-2024-10188 Denial of Service in BerriAI/litellm
CVE-2024-9606 Improper Output Neutralization for Logs in berriai/litellm

IV. Related Vulnerabilities

V. Comments for CVE-2024-6825

No comments yet


Leave a comment