BreachSpiderVerified, not vibes

CVE-2024-6587 in Litellm

High 7.5

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 ...

Affects 1 product from 1 vendor. Facts below cite their sources.

CVSS 3.17.5
EPSS3.1%
EPSS percentile89th
FixUnknown

Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, no integrity impact, no availability impact.

Affected products and versions

VendorProductAffected versions
Litellm Litellm 1.38.10

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

No official vendor advisory link on record. See the CVE record.

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official description

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.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2024-6587
BreachSpider IDBS-2024-GLOBAL-046981-H
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Published2024-09-13
Last modified2026-06-17
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-918: Server-Side Request Forgery (SSRF)

Attacker causes the server to make HTTP requests to attacker-chosen destinations, potentially reaching internal services.

Related attack patterns (CAPEC)

CAPEC-664 Server Side Request Forgery via CWE-918

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

A Server-Side Request Forgery (SSRF) vulnerability in berriai/litellm version 1.38.10 allows attackers to intercept the OpenAI API key by specifying a malicious `api_base` parameter. This can lead to unauthorized access and misuse of the API key, posing a significant risk to the security of the application and its data.

The vulnerability is triggered when a user specifies the `api_base` parameter in a POST request to `/chat/completions`. The application then sends the request to the specified domain, including the OpenAI API key. A malicious user can set `api_base` to their own domain and intercept the API key, leading to unauthorized access and potential misuse.

Compensating controls AI-drafted, review before use

Implement strict input validation for the `api_base` parameter to ensure it only accepts predefined, trusted domains. Additionally, consider using a proxy to handle API requests and prevent direct access to external domains.

NERC CIP: CIP-007 CIP-007-R2

IEC 62443: SR 7.6

Not validated for your network. A compensating control does not replace the vendor fix.

Questions

What is CVE-2024-6587?

A Server-Side Request Forgery (SSRF) vulnerability in berriai/litellm version 1.38.10 allows attackers to intercept the OpenAI API key by specifying a malicious `api_base` parameter. This can lead to unauthorized access and misuse of the API key, posing a significant risk to the security of the application and its data.

What is the CVSS score for CVE-2024-6587?

CVE-2024-6587 has CVSS 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N. EPSS: 3.1%.

Is CVE-2024-6587 actively exploited?

No confirmed active exploitation of CVE-2024-6587 as of 2026-09-25.

How do I remediate CVE-2024-6587?

Priority: HIGH.

What systems are affected by CVE-2024-6587?

CVE-2024-6587 affects Litellm Litellm.

What NERC-CIP standard applies to CVE-2024-6587?

NERC CIP CIP-007 CIP-007-R2: This CVE violates CIP-007-R2 by allowing unauthorized access to sensitive information (API key) through a SSRF vulnerability, which can compromise the security of the system and its data.

What IEC 62443 requirement maps to CVE-2024-6587?

IEC 62443 SR 7.6: This CVE maps to SR 7.6 because it involves a vulnerability that can be exploited to gain unauthorized access to sensitive information, which is a critical security concern in ICS environments.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Litellm","product":"Litellm","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.