Live threats

All CVEs / Litellm

CVE-2024-6825Litellm

High 8.8

Priority
53
CVSS 3.0
8.8
EPSS
1.6%
probability of exploitation in 30 days · percentile 76
Auth required
Yes
Published
Mar 20, 2025
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-94
SSVC (CISA)
Exploitation: proof of concept · Automatable: no · Technical impact: total
Vector
CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Litellm.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI litellm ≥ 1.40.3.dev2 ≤ 1.40.12 no fixed version —
PyPI litellm ≥ 1.40.3.dev2 ≤ 1.40.12 no fixed version —

Per OSV / GitHub Advisories (GHSA-53gh-p8jc-7rg8, PYSEC-2026-1541). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
litellmlitellm< 1.65.4
litellmlitellm1.65.4

Official sources

References

Links published by the sources. Open them with care.