CVE-2024-4888: Arbitrary File Deletion in BerriAI/litellm

Published Jun 6, 2024
·
Updated

BerriAI's litellm, in its latest version, is vulnerable to arbitrary file deletion due to improper input validation on the /audio/transcriptions endpoint. An attacker can exploit this vulnerability by sending a specially crafted request that includes a file path to the server, which then deletes the specified file without proper authorization or validation. This vulnerability is present in the code where os.remove(file.filename) is used to delete a file, allowing any user to delete critical files on the server such as SSH keys, SQLite databases, or configuration files.

Affected Software

2 affected componentsFixes available
pip/litellm<1.35.36
1.35.36
LiteLLM LiteLLM<1.35.19

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

Event History

Jun 6, 2024
CVE Published
via MITRE·06:31 PM
Data Sourced
via MITRE·06:31 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·07:16 PM
DescriptionSeverityWeaknessAffected Software
Advisory Published
via GitHub·09:30 PM

Frequently Asked Questions

1

What is the severity of CVE-2024-4888?

CVE-2024-4888 is classified as a high severity vulnerability due to the potential for arbitrary file deletion.

2

How do I fix CVE-2024-4888?

To fix CVE-2024-4888, upgrade to litellm version 1.35.36 or later.

3

What software is affected by CVE-2024-4888?

CVE-2024-4888 affects litellm versions up to 1.35.36 and all versions prior to 1.35.19.

4

What is the impact of CVE-2024-4888?

The impact of CVE-2024-4888 allows attackers to exploit the vulnerability to delete arbitrary files on the server.

5

Which endpoint is vulnerable in CVE-2024-4888?

The vulnerable endpoint in CVE-2024-4888 is the /audio/transcriptions endpoint.

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