Skip to main content

Over 150 LLM Providers · Over 5,300 Models The most extensible AI-powered pentesting platform. Open source. Star on GitHub

CVE-2024-6825

8.8 · HIGH
Published Mar 20, 2025 litellm CWE-94 EPSS 1.62% (74th pctl)

Overview

CVE-2024-6825 is a high-severity vulnerability affecting litellm litellm. It was published on March 20, 2025 and has a CVSS 3.0 base score of 8.8 (HIGH).

This vulnerability has a CVSS 3.0 base score of 8.8, rated HIGH. It can be exploited remotely over the network. Some level of privileges is required for exploitation.

Technical 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.

Remediation

Check the references section for vendor advisories and patches from litellm. Update litellm to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Affected Products

Vendor Product Versions Status
litellm litellm >= 0, < 1.65.4 Affected

Frequently Asked Questions

What is CVE-2024-6825?

CVE-2024-6825 is a high-severity vulnerability affecting litellm litellm. It was published on March 20, 2025 and has a CVSS 3.0 base score of 8.8 (HIGH).

How severe is CVE-2024-6825?

This vulnerability has a CVSS 3.0 base score of 8.8, rated HIGH. It can be exploited remotely over the network. Some level of privileges is required for exploitation.

How do I fix or remediate CVE-2024-6825?

Check the references section for vendor advisories and patches from litellm. Update litellm to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2024-6825?

CyberStrike's AI-powered security agents can automatically detect CVE-2024-6825 across your infrastructure using autonomous pentesting, DAST scanning, and HackBrowser. The platform continuously monitors for known vulnerabilities and provides actionable remediation guidance prioritized by real-world exploitability.