SSRF in berriai/litellm
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2024-6587
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 4 Nov 2026, 19:16 UTC · Revision 1
Source evidence
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.
osv:CVE-2024-6587
Complete source record
{
"id": "6c8887f59b640507b5e61588b624a9a755a43575bbf20d018d585700163ddc49",
"url": "https://osv.dev/vulnerability/CVE-2024-6587",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "SSRF in berriai/litellm",
"summary": "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.",
"evidence": "osv:CVE-2024-6587",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2024-6587",
"aliases": [
"CVE-2024-6587",
"GHSA-g26j-5385-hhw3",
"PYSEC-2026-1547"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/berriai/litellm",
"type": "GIT",
"events": [
{
"introduced": "3be6a07e35599b40e069c9516ec4fd4b00cd0e23"
},
{
"fixed": "ba1912afd1b19e38d3704bb156adf887f91ae1e0"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:litellm:litellm:1.38.10:*:*:*:*:*:*:*",
"range": [
{
"introduced": "1.38.10"
},
{
"last_affected": "1.38.10"
}
],
"source": "CPE_STRING"
},
{
"range": [
{
"fixed": "ba1912afd1b19e38d3704bb156adf887f91ae1e0"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"1.38.10",
"v1.44.8",
"v1.44.7",
"v1.44.6-stable",
"v1.44.6",
"1.44.6",
"v1.44.5",
"v1.44.4.dev2",
"v1.44.4",
"v1.44.3",
"v1.44.2",
"v1.44.1",
"v1.43.19.dev2",
"v1.43.19-stable",
"v1.43.19",
"v1.43.19.dev1",
"v1.43.18-stable",
"v1.43.18",
"v1.43.17",
"v1.43.16-stable",
"v1.43.16",
"v1.43.15-stable",
"v1.43.15",
"v1.43.13-stable",
"v1.43.13",
"v1.43.12",
"v1.43.10-stable",
"v1.43.10",
"v1.43.9",
"v1.43.7-stable",
"v1.43.7",
"v1.43.6.dev1",
"v1.43.6-stable",
"v1.43.6",
"v1.43.5-stable",
"v1.43.5",
"v1.43.4.dev5",
"v1.43.4",
"v1.43.3",
"v1.43.2",
"v1.43.1",
"v1.43.1-dev1",
"v1.43.0",
"v1.42.12",
"v1.42.10-stable",
"v1.42.10",
"v1.42.11",
"v1.42.9-stable",
"v1.42.9.dev1",
"v1.42.9-stable-fix",
"v1.42.9",
"v1.42.8",
"v1.42.7-stable",
"v1.42.7",
"v1.42.6",
"v1.42.5-dev2",
"v1.42.5-dev1",
"v1.42.5-stable",
"v1.42.5",
"v1.42.4-stable",
"v1.42.4",
"v1.42.3-stable",
"v1.42.3",
"v1.42.2-stable",
"v1.42.2",
"v1.42.1",
"v1.42.0-stable",
"v1.42.0",
"v1.41.28",
"v1.41.27",
"v1.41.26",
"v1.41.26.dev1",
"v1.41.25",
"v1.41.24.dev1",
"v1.41.24",
"v1.41.22",
"v1.41.23-stable",
"v1.41.23",
"v1.41.21",
"v1.41.20",
"v1.41.19",
"v1.41.18",
"v1.41.15",
"v1.41.17",
"1.41.14.dev15",
"v1.41.14.dev10",
"v1.41.14.dev8",
"v1.41.13",
"v1.41.14",
"1.41.12.dev1",
"v1.41.12",
"1.41.11.dev5",
"v1.41.11.dev1",
"v1.41.8.dev2",
"v1.41.8.dev1",
"v1.41.11",
"v1.41.8",
"v1.41.7",
"v1.41.6.dev1",
"v1.41.5",
"v1.41.6",
"v1.41.5.dev1",
"v1.41.4.dev1",
"v1.41.4",
"v1.41.3.dev2",
"v1.41.3",
"v1.41.2-stable",
"v1.41.2",
"v1.41.1",
"v1.41.0-stable",
"v1.41.0",
"v1.40.31",
"v1.40.29",
"v1.40.28",
"v1.40.27",
"v1.40.26",
"v1.40.25",
"v1.40.24",
"v1.40.22",
"v1.40.21",
"v1.40.20",
"v1.40.19",
"v1.40.17",
"v1.40.16",
"v1.40.15",
"v1.40.14",
"v1.40.13",
"v1.40.12",
"v1.40.11",
"v1.40.10",
"v1.40.9-stable",
"v1.40.9",
"1.40.8.dev1",
"v1.40.8-stable",
"v1.40.8",
"v1.40.7.dev1",
"v1.40.7",
"v1.40.6",
"v1.40.5",
"v1.40.4",
"v1.40.3-stable",
"v1.40.3",
"v1.40.2-stable",
"v1.40.2",
"v1.40.1.dev4",
"v1.40.1.dev2",
"v1.40.1",
"v1.40.0",
"v1.39.6",
"v1.39.5",
"v1.39.5-stable",
"v1.39.4",
"v1.39.3",
"v1.39.2",
"v1.38.12",
"v1.38.11",
"v1.38.10"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-6587.json"
}
}
],
"modified": "2026-10-28T02:30:38.839546998Z",
"provider": "osv",
"references": [
"https://huntr.com/bounties/4001e1a2-7b7a-4776-a3ae-e6692ec3d997",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/6xxx/CVE-2024-6587.json",
"https://nvd.nist.gov/vuln/detail/CVE-2024-6587",
"https://github.com/berriai/litellm/commit/ba1912afd1b19e38d3704bb156adf887f91ae1e0"
],
"provider_metadata": {
"cwe_ids": [
"CWE-918"
],
"cna_assigner": "@huntr_ai",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/6xxx/CVE-2024-6587.json"
}
},
"related_cves": [
{
"value": "CVE-2024-6587",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 506071,
"published_at": "2024-09-13T15:59:53.557+00:00"
}