CVE-2024-6825
published high CVSS 3.0 · 8.8Remote Code Execution in BerriAI/litellm
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| berriai | — | berriai/litellmunspecified to < v1.65.4.dev6 | Affected | Not stated | @huntr_ai |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.0
- Base score
- 8.8 / 10
- Severity
- high
- Provider
- @huntr_ai · cna
- Vector string
- CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| berriai | berriai/litellm | unspecified to < v1.65.4.dev6 (affected · custom) | @huntr_ai · cna |
Weaknesses
1- CWE-94 CWE-94 Improper Control of Generation of Code
References
2Provider assertions
2@huntr_ai · cna
Remote Code Execution in BerriAI/litellm
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 01237e74e285e28faf02114c2dea4ccf84a1f78bfd9657abe5a12bb576038aa2
- Ingested
- 23 Sep 2026, 08:33:19 UTC
- Source record
- Official CVE record