CVE-2024-6825: Remote Code Execution in BerriAI/litellm
BerriAI/litellm version 1.40.12 contains a vulnerability that allows remote code execution. The issue exists in the handling of the 'postcallrules' 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 Software
Event History
Frequently Asked Questions
What is the severity of CVE-2024-6825?
CVE-2024-6825 has a high severity rating due to its potential for remote code execution.
How do I fix CVE-2024-6825?
To fix CVE-2024-6825, you should update the BerriAI/litellm software to the latest version that addresses this vulnerability.
What impacts does CVE-2024-6825 have on my system?
CVE-2024-6825 allows attackers to execute arbitrary code remotely, which can compromise system integrity and security.
Which versions of BerriAI/litellm are affected by CVE-2024-6825?
CVE-2024-6825 affects BerriAI/litellm version 1.40.12 and potentially earlier versions that utilize the vulnerable configuration.
Can CVE-2024-6825 be exploited without authentication?
Yes, CVE-2024-6825 can be exploited remotely without requiring authentication, posing a significant risk.