8.8

CVE-2024-6825: Remote Code Execution in BerriAI/litellm

Modified
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) Improper Control of Generation of Code vulnerability in berriai berriai/litellm. EPSS estimates a 1.64% chance of exploitation in the next 30 days, higher than 77.1% of scored vulnerabilities. 1 public exploit is recorded.

Priority
Prioritisepublic exploit

Public exploit (reference, Date unknown)

Source freshness unavailable

How is this decided?
CVSS score
8.8/10
010
High · v3.0 (CVE.org)
EPSS score
1.64%
0%100%
Low · -0.01 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware 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.64%

Chance of exploitation in the next 30 days

Percentile

77%

Versus all other CVEs

30-day change

Decrease -0.01 pp

From 1.65% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

1 found
  • referenceUnverified

    Exploit Reference (huntr.com)

    Maturity: unknown

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.

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

3 vendors · 3 products

References

7 links