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

Published Mar 20, 2025
·
Updated

BerriAI/litellm version 1.40.12 contains a vulnerability that allows remote code execution. The issue exists in the handling of the 'postcallrules' 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.

Affected Software

4 affected components
pip/litellm>=1.40.3.dev2<=1.40.12
BerriAI LiteLLM
LiteLLM LiteLLM<1.65.4
LiteLLM LiteLLM=1.65.4-dev2

Event History

Mar 20, 2025
CVE Published
via MITRE·10:11 AM
Data Sourced
via MITRE·10:11 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·10:15 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·10:15 AM
Affected Software
Advisory Published
via GitHub·12:32 PM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2024-6825?

CVE-2024-6825 has a high severity rating due to its potential for remote code execution.

2

How do I fix CVE-2024-6825?

To fix CVE-2024-6825, you should update the BerriAI/litellm software to the latest version that addresses this vulnerability.

3

What impacts does CVE-2024-6825 have on my system?

CVE-2024-6825 allows attackers to execute arbitrary code remotely, which can compromise system integrity and security.

4

Which versions of BerriAI/litellm are affected by CVE-2024-6825?

CVE-2024-6825 affects BerriAI/litellm version 1.40.12 and potentially earlier versions that utilize the vulnerable configuration.

5

Can CVE-2024-6825 be exploited without authentication?

Yes, CVE-2024-6825 can be exploited remotely without requiring authentication, posing a significant risk.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203