
Cloud Vulnerability DB
A community-led vulnerabilities database
BerriAI/litellm version 1.40.12 contains a remote code execution vulnerability. The vulnerability exists in the handling of the 'post_call_rules' configuration, where a callback function can be added. The issue was discovered and reported through the huntr.dev platform (Huntr Report).
The vulnerability stems from the way the 'post_call_rules' configuration handles callback functions. When a value is provided, it 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 implementation allows an attacker to set system methods like 'os.system' as a callback. The vulnerability has been assigned a CVSS v3.0 base score of 8.8 (HIGH) with the vector string CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H (Huntr Report).
The vulnerability enables the execution of arbitrary commands when a chat response is processed, potentially allowing attackers to execute malicious code on the affected system. This could lead to complete system compromise, data theft, or service disruption (Huntr Report).
The vulnerability has been classified as CWE-77 (Improper Neutralization of Special Elements used in a Command ('Command Injection')). The attack requires low complexity and only low privileges to execute, making it relatively straightforward to exploit (Huntr Report).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."