{"id":"CVE-2024-6825","url":"https://www.cyber-defence.io/tools/cve/CVE-2024-6825","generatedAt":"2026-10-28T03:29:02.400Z","title":"BerriAI/litellm version 1.40.12 contains a vulnerability that allows remote code execution.","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.","published":"2025-03-20T10:15:33.000Z","lastModified":"2026-06-17T08:18:47.000Z","status":"Modified","sourceIdentifier":"security@huntr.dev","cvss":{"version":"3.0","score":8.8,"severity":"HIGH","vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"},"cwe":["CWE-94"],"affected":["litellm/litellm"],"epss":{"score":0.0165,"percentile":0.76342,"date":"2026-10-26","history":[]},"kev":{"listed":false},"exploits":{"count":0,"verified":false,"firstPublished":null,"source":"Exploit-DB (https://gitlab.com/exploit-database/exploitdb)","entries":[]},"verdict":{"level":"high","text":"High impact if exploited, but EPSS currently rates exploitation as unlikely (1.65%). Schedule it in the normal patch cycle and watch for a rise in EPSS or a public exploit."},"changes":[],"references":[{"url":"https://github.com/berriai/litellm/commit/441c7275ed2715f47650a7c2e525055c804073a9","source":"security@huntr.dev"},{"url":"https://huntr.com/bounties/1d98bebb-6cf4-46c9-87c3-d3b1972973b5","tags":["Exploit","Third Party Advisory"],"source":"security@huntr.dev"}],"sources":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2024-6825","epss":"https://www.first.org/epss/","kev":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","exploitdb":"https://www.exploit-db.com/"},"licence":"CC BY 4.0 — link back to the CVE Explorer if you publish the results; upstream data remains subject to its own terms."}