8.8

CVE-2024-6825: berriai berriai/litellm Code Injection

CVSS: 8.8v3.0HighModified
AliasesGHSA-53gh-p8jc-7rg8PYSEC-2026-1541
Published 20-03-2025Last modified 15-10-2025

Vulnerability summary

CVE-2024-6825 is a high (CVSS 8.8) Code Injection vulnerability in berriai berriai/litellm. EPSS estimates a 1.65% chance of exploitation in the next 30 days, higher than 76.1% of scored vulnerabilities. 1 public exploit is recorded.

Overall risk
46/100
0100
Medium · default modelHow is this calculated?
CVSS score
8.8/10
010
High · v3.0 (CVE.org)
EPSS score
1.65%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits1reference

Timeline

  1. 20-03-2025
    PublishedVulnerability first disclosed.
  2. 15-10-2025
    Last modifiedVulnerability information updated.

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 metrics

3 scores · 3 sources · 1 version

EPSS trend

Probability

1.65%

Chance of exploitation in the next 30 days

Percentile

76%

Versus all other CVEs

30-day change

0.00 pp

From 1.65% on 20-09-2026

20-09-202620-10-2026
EPSS score
1.65%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

1 found
  • referenceUnverified

    Exploit Reference (huntr.com)

    Maturity: unknown

Weaknesses

CWE · root cause

Affected systems

Berriai1 product
Litellm1 product
PyPI1 product
  • litellm≥ 1.40.3.dev2, ≤ 1.40.12

3 vendors · 3 products

References

7 links