CVE-2024-6825 json
Remote Code Execution in BerriAI/litellm
published 2025-03-20 19 mo ago modified 2026-09-10 1 mo ago also GHSA-53gh-p8jc-7rg8 , PYSEC-2026-1541 , EUVD-2025-6976
- cvss
- 8.8
- version 3.0, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.7%
- EPSS 1.7% chance of exploitation in 30 days, percentile 76%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- total
- Assessed
- 19 mo ago
Exploit prediction
1.65% chance of exploitation in the next 30 days, higher than 76% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- huntr.com https://huntr.com/bounties/1d98bebb-6cf4-46c9-87c3-d3b1972973b5 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.0 | 8.8 | CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| OSV | 3.0 | 8.8 | CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 3.0 | 8.8 | CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | litellm | >=1.40.3.dev2, <=1.40.12 |
no fix listed |
Affected products
- berriai berriai/litellm
Classification
References
-
github.com
/berriai/litellm/commit/441c7275ed2715f47650a7c2e525055c804073a9
web
-
huntr.com
/bounties/1d98bebb-6cf4-46c9-87c3-d3b1972973b5
web, exploit, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2024-6825
advisory
-
github.com
/BerriAI/litellm
package
-
github.com
/BerriAI/litellm/blob/056913fd7049923a106130b02d7c29e7f312beec/litellm/utils.py#L2818
web
-
pypi.org
/project/litellm
package
-
github.com
/advisories/GHSA-53gh-p8jc-7rg8
advisory
Sources
- CVE List CVE-2024-6825
- GitHub Advisory GHSA-53gh-p8jc-7rg8
- NVD CVE-2024-6825
- OSV PYSEC-2026-1541
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.