CVE-2024-6825 Remote Code Execution in BerriAI/litellm
HighCVSS 8.8
EPSS 1.7%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: total
Description
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.
Upgrade path
3 packages: 3 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| berriai/litellm | < v1.65.4.dev6 | v1.65.4.dev6 | Fixed |
| litellm | < 1.65.4; = 1.65.4-dev2 | 1.65.4 | Fixed |
| pypi litellm(PyPI) | = 1.40.3; = 1.40.4; = 1.40.5; = 1.40.6 +7 more | after 1.40.12 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi litellm(PyPI) | >= 1.40.3.dev2, <= 1.40.12 | No fix listed |
| pypi litellm(PyPI) | = 1.40.10 | No fix listed |
| pypi litellm(PyPI) | = 1.40.11 | No fix listed |
| pypi litellm(PyPI) | = 1.40.12 | No fix listed |
| pypi litellm(PyPI) | = 1.40.3 | No fix listed |
| pypi litellm(PyPI) | = 1.40.4 | No fix listed |
| pypi litellm(PyPI) | = 1.40.5 | No fix listed |
| pypi litellm(PyPI) | = 1.40.6 | No fix listed |
| pypi litellm(PyPI) | = 1.40.7 | No fix listed |
| pypi litellm(PyPI) | = 1.40.8 | No fix listed |
| pypi litellm(PyPI) | = 1.40.9 | No fix listed |
| berriai/litellm | < v1.65.4.dev6 | v1.65.4.dev6 |
| litellm | < 1.65.4 | 1.65.4 |
| litellm | = 1.65.4-dev2 | No fix listed |
References
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com patch
- github.com product
- github.com
- huntr.com exploit third-party-advisory
- pypi.org product
- github.com vendor-advisory