CVE-2024-6825
published 2025-03-20CVE-2024-6825: 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'…
PriorityP261high8.8CVSS 3.0
AVNACLPRLUINSUCHIHAH
EPSS
1.46%
70.3th percentile
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.
Affected
4 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| berriai | berriai_litellm | >= unspecified < v1.65.4.dev6 | v1.65.4.dev6 |
| litellm | litellm | < 1.65.4 | 1.65.4 |
| litellm | litellm | — | — |
| litellm | litellm | 1.40.3.dev2 – 1.40.12 | — |
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
OSV
LiteLLM Vulnerable to Remote Code Execution (RCE)
osv·2025-03-20
CVE-2024-6825 [HIGH] LiteLLM Vulnerable to Remote Code Execution (RCE)
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.
GHSA
LiteLLM Vulnerable to Remote Code Execution (RCE)
ghsa·2025-03-20
CVE-2024-6825 [HIGH] CWE-77 LiteLLM Vulnerable to Remote Code Execution (RCE)
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.
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
2025-03-20
Published