{"cve":"CVE-2024-6825","nvd":{"published":"2025-03-20T10:15:33.237","modified":"2026-06-17T08:18:47.407","status":"Modified","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.","cvss_v4":null,"cvss_v3":{"version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8},"cwes":["CWE-94"],"references":["https://github.com/berriai/litellm/commit/441c7275ed2715f47650a7c2e525055c804073a9","https://huntr.com/bounties/1d98bebb-6cf4-46c9-87c3-d3b1972973b5"],"products":["litellm:litellm"],"source":"nvd","synced_at":"2026-10-19T22:00:17.429720821+00:00"},"epss":{"cve":"CVE-2024-6825","score":0.0165,"percentile":0.76512,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-53gh-p8jc-7rg8","url":"https://osv.dev/vulnerability/GHSA-53gh-p8jc-7rg8","summary":"LiteLLM Vulnerable to Remote Code Execution (RCE)","modified":"2026-09-10T03:49:47.802618913Z","packages":[{"ecosystem":"PyPI","name":"litellm","purl":"pkg:pypi/litellm","ranges":[">=1.40.3.dev2 <=1.40.12"],"fixed":[]}]},{"id":"PYSEC-2026-1541","url":"https://osv.dev/vulnerability/PYSEC-2026-1541","summary":"LiteLLM Vulnerable to Remote Code Execution (RCE)","modified":"2026-07-07T17:46:52.152742975Z","packages":[{"ecosystem":"PyPI","name":"litellm","purl":"pkg:pypi/litellm","ranges":[">=1.40.3.dev2 <=1.40.12"],"fixed":[]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}