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

Published Jun 27, 2024
·
Updated

BerriAI/litellm version v1.35.8 contains a vulnerability where an attacker can achieve remote code execution. The vulnerability exists in the adddeployment function, which decodes and decrypts environment variables from base64 and assigns them to os.environ. An attacker can exploit this by sending a malicious payload to the /config/update endpoint, which is then processed and executed by the server when the getsecret function is triggered. This requires the server to use Google KMS and a database to store a model.

Affected Software

2 affected componentsFixes available
pip/litellm<1.40.16
1.40.16
LiteLLM LiteLLM=1.35.8

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade pip/litellm to a version that resolves this vulnerability.

    Fixed in 1.40.16

Event History

Jun 27, 2024
CVE Published
via MITRE·06:40 PM
Data Sourced
via MITRE·06:40 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·07:15 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·07:15 PM
Affected Software
Advisory Published
via GitHub·09:32 PM

Frequently Asked Questions

1

What is the severity of CVE-2024-5751?

CVE-2024-5751 is classified as a critical vulnerability due to the potential for remote code execution.

2

How do I fix CVE-2024-5751?

To fix CVE-2024-5751, upgrade litellm to version 1.40.16 or later.

3

What software is affected by CVE-2024-5751?

CVE-2024-5751 affects litellm version 1.35.8.

4

What type of vulnerability is CVE-2024-5751?

CVE-2024-5751 is a remote code execution vulnerability.

5

Can CVE-2024-5751 be exploited?

Yes, CVE-2024-5751 can be exploited by attackers to execute arbitrary code remotely.

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