ghsa-3xr8-qfvj-9p9j
Vulnerability from github
Published
2024-06-06 21:30
Modified
2024-11-04 15:27
Severity ?
6.5 (Medium) - CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:H
7.0 (High) - CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N
7.0 (High) - CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N
Summary
Arbitrary file deletion in litellm
Details
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": [ { "package": { "ecosystem": "PyPI", "name": "litellm" }, "ranges": [ { "events": [ { "introduced": "0" }, { "fixed": "1.35.36" } ], "type": "ECOSYSTEM" } ] } ], "aliases": [ "CVE-2024-4888" ], "database_specific": { "cwe_ids": [ "CWE-20", "CWE-862" ], "github_reviewed": true, "github_reviewed_at": "2024-06-06T22:55:45Z", "nvd_published_at": "2024-06-06T19:16:03Z", "severity": "HIGH" }, "details": "BerriAI\u0027s 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. ", "id": "GHSA-3xr8-qfvj-9p9j", "modified": "2024-11-04T15:27:17Z", "published": "2024-06-06T21:30:37Z", "references": [ { "type": "ADVISORY", "url": "https://nvd.nist.gov/vuln/detail/CVE-2024-4888" }, { "type": "WEB", "url": "https://github.com/BerriAI/litellm/pull/3193" }, { "type": "PACKAGE", "url": "https://github.com/BerriAI/litellm" }, { "type": "WEB", "url": "https://huntr.com/bounties/48461d89-cf13-4ad3-a43e-0d37da08fc6c" } ], "schema_version": "1.4.0", "severity": [ { "score": "CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:H", "type": "CVSS_V3" }, { "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N", "type": "CVSS_V4" } ], "summary": "Arbitrary file deletion in litellm" }
Loading...
Loading...
Sightings
Author | Source | Type | Date |
---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
- Confirmed: The vulnerability is confirmed from an analyst perspective.
- Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
- Patched: This vulnerability was successfully patched by the user reporting the sighting.
- Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
- Not confirmed: The user expresses doubt about the veracity of the vulnerability.
- Not patched: This vulnerability was not successfully patched by the user reporting the sighting.