LiteLLM Vulnerable to Remote Code Execution (RCE)
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.
Betroffene Software
Klicken Sie auf eine Technologie, um alle zugehörigen Schwachstellen anzuzeigen.
| Plattform | Paket | Anfällige Versionen | Behoben in |
|---|---|---|---|
| Python (PyPI) | litellm | >= 1.40.3.dev2, <= 1.40.12 | keine Korrektur |
Verweise
- https://nvd.nist.gov/vuln/detail/CVE-2024-6825
- https://github.com/berriai/litellm/commit/441c7275ed2715f47650a7c2e525055c804073a9
- https://github.com/BerriAI/litellm
- https://github.com/BerriAI/litellm/blob/056913fd7049923a106130b02d7c29e7f312beec/litellm/utils.py#L2818
- https://huntr.com/bounties/1d98bebb-6cf4-46c9-87c3-d3b1972973b5
- https://pypi.org/project/litellm
- https://github.com/advisories/GHSA-53gh-p8jc-7rg8
- CVSS-Vektor
CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H- Schwäche (CWE)
CWE-77, CWE-94- Plattform
- Python (PyPI)
- Paket
litellm- Veröffentlicht
- 20.03.2025
- Aktualisiert
- 11.10.2026 15:17
Quellen und Lizenzen
OSV / GitHub Advisory Database - PYSEC-2026-1541 - PyPA Advisory Database; CC BY 4.0
OSV / GitHub Advisory Database - GHSA-53gh-p8jc-7rg8 - CC BY 4.0
Schwachstellenhistorie: litellm
Alle veröffentlichten Schwachstellen dieses Pakets (Python (PyPI)), neueste zuerst. Zeigt, ob es ein einmaliger Ausrutscher ist oder ein Paket, das man im Auge behalten muss.
- Einträge insgesamt
- 42
- Erste → letzte
- 04.2024 09.2026
- Ohne Fix
- 14
- In Angriffen ausgenutzt
- 3
Verteilung nach Schweregrad
- Kritisch 7
- Hoch 17
- Mittel 8
- Niedrig 9
- Nicht bewertet 1
Veröffentlichungen pro Jahr
- 2024: 8
- 2025: 6
- 2026: 28
-
LiteLLM Vulnerable to Remote Code Execution (RCE) dieser Eintrag
Erkennen Sie Schwachstellen in Ihrer Anwendung
Mit der DockRay-Integration und aktivierter Softwareinventarisierung prüft DockRay gemeldete Komponentenversionen auf bekannte Schwachstellen und benachrichtigt Sie über bestätigte Treffer. Die Abdeckung hängt von der unterstützten Technologie und den verfügbaren Meldungen ab.