Read the docs
TI-2024-06328 Aliases CVE-2024-6825GHSA-53gh-p8jc-7rg8

Remote Code Execution in BerriAI/litellm

Priority HIGH 73CWE-94Published · Updated

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

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.0165 76th percentileScored 2026-11-08
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Fixed berriai/litellm (berriai): v1.65.4.dev6

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

VendorProductAffected versionsFixed inStatusSource
BerriAIberriai/litellmbefore v1.65.4.dev6v1.65.4.dev6Patch availableCNA
—litellm (PyPI)1.40.3.dev2 – 1.40.12—No fix listedGHSA-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

CPE configurations NVD · 2

CPEVersionsRoleVendor
cpe:2.3:a:litellm:litellm:*:*:*:*:*:*:*:*before 1.65.4VulnerableBerriAI
cpe:2.3:a:litellm:litellm:1.65.4:dev2:*:*:*:*:*:*1.65.4 dev2VulnerableBerriAI
  • cpe:2.3:a:litellm:litellm:*:*:*:*:*:*:*:* Versions before 1.65.4 Vulnerable ·BerriAI
  • cpe:2.3:a:litellm:litellm:1.65.4:dev2:*:*:*:*:*:* Versions 1.65.4 dev2 Vulnerable ·BerriAI

Remediation

  • Fix · CNA berriai/litellm (berriai) Fixed in v1.65.4.dev6

Timeline

  1. 2026-10-02 Threatist record created from CVE-2024-6825
  2. 2026-10-03 Alias added: GHSA-53gh-p8jc-7rg8

References

  • 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
See all 36 →

Sources