Remote Code Execution in BerriAI/litellm
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-94.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| BerriAI | berriai/litellm | before v1.65.4.dev6 | v1.65.4.dev6 | Patch available | CNA |
| — | litellm (PyPI) | 1.40.3.dev2 – 1.40.12 | — | No fix listed | GHSA-53gh-p8jc-7rg8 |
- berriai/litellm VendorBerriAI Affected before v1.65.4.dev6 Fixed in v1.65.4.dev6 Patch available CNA
- litellm (PyPI) Vendor— Affected 1.40.3.dev2 – 1.40.12 Fixed in — No fix listed GHSA-53gh-p8jc-7rg8
Remediation
- Fix · CNA berriai/litellm (berriai) Fixed in v1.65.4.dev6
Timeline
- 2026-10-02 Threatist record created from CVE-2024-6825
- 2026-10-03 Alias added: GHSA-53gh-p8jc-7rg8
References
More BerriAI Litellm vulnerabilities
- TI-2026-26015 Trivy ecosystem supply chain briefly compromised KEVCVSS 4.0CRITICAL 9.4
- TI-2026-30529 LiteLLM: SQL injection in Proxy API key verification KEVCVSS 4.0CRITICAL 9.3
- TI-2026-30582 LiteLLM: Authenticated command execution via MCP stdio test endpoints KEVCVSS 4.0HIGH 8.7
- TI-2026-42639 LiteLLM: MCP Authentication Bypass via OAuth2 Passthrough Fallback KEVCVSS 4.0HIGH 8.8
- TI-2024-05340 Remote Code Execution in BerriAI/litellm CVSS 3.1CRITICAL 9.8
- TI-2024-02760 Server-Side Template Injection in BerriAI/litellm CVSS 3.0CRITICAL 9.8
Sources
- CVE-2024-6825 · CVE Program
- CVE-2024-6825 · NVD
- FIRST EPSS
- GHSA-53gh-p8jc-7rg8 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences