CVE-2024-6587
SSRF in berriai/litellm
Reported by @huntr_ai · Published September 13, 2024
litellm is fixed in 1.44.8 (PyPI)
A Server-Side Request Forgery (SSRF) vulnerability exists in berriai/litellm version 1.38.10. This vulnerability allows users to specify the `api_base` parameter when making requests to `POST /chat/completions`, causing the application to send the request to the domain specified by `api_base`. This request includes the OpenAI API key. A malicious user can set the `api_base` to their own domain and intercept the OpenAI API key, leading to unauthorized access and potential misuse of the API key.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| litellm | PyPI | 1.44.8 |
| berriai/litellm | berriai | 1.44.9 |
| litellm | berriai | 1.44.9 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| berriai | berriai/litellm | unspecified |
| berriai | berriai/litellm | * |
| PyPI | litellm | 0 |
| berriai | litellm | 0 |
Timeline
- Jul 22, 2024 Nuclei Template
- Jul 22, 2024 Fix Commit
- Aug 22, 2024 VulnCheck KEV Exploitation (305 in total, the first dated here)
- Sep 13, 2024 CVE Published
- Sep 13, 2024 CVE Updated
- Sep 14, 2024 EPSS Score (30 in total, the first dated here)
- Oct 5, 2024 Coalition ESS Score (14 in total, the first dated here)
- Mar 9, 2025 PoC Published
- Mar 10, 2026 Security Advisory
- Apr 20, 2026 CrowdSec Sighting (92 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-6587
vulnetix vdb fixes CVE-2024-6587
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-6587/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart