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

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

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

EPSS 3.02% · P87
Get alerts for future matching vulnerabilitiesLog 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: NVD (National Vulnerability Database)
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: NVD (National Vulnerability Database)
CVSS Information
N/A
Source: NVD (National Vulnerability Database)
Vulnerability Type
对生成代码的控制不恰当(代码注入)
Source: NVD (National Vulnerability Database)
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

VendorProductAffected VersionsCPESubscribe
berriaiberriai/litellm unspecified ~ v1.65.4.dev6 -

II. Public POCs for CVE-2024-6825

#POC DescriptionSource LinkShenlong Link
AI-Generated POCPremium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2024-6825

登录查看更多情报信息。

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

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

IV. Related Vulnerabilities

V. Comments for CVE-2024-6825

No comments yet


Leave a comment