Skip to main content
ExploitedNot in CISA KEV yetFix available

CVE-2024-6587

Exploitation confirmed. First attested on 2024-08-22 by GCVE · previdian, GCVE · shadowserver.

  • Published2024-09-13
  • WeaknessCWE-918

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2024-08-2207:14Listed as exploited by GCVEGCVE
  2. 2024-08-2207:14Exploitation first reportedGCVE
  3. 2024-09-1316:15CVE publishedNVD

Versions per branch

NVD · OSV · CISA-ADP
Litellm
BranchAffectedFixed in
1.38= 1.38.10no fix published
litellm
BranchAffectedFixed in
1.44< 1.44.81.44.8
Berriai litellm
BranchAffectedFixed in
1.44< 1.44.91.44.9

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA1 product

As @huntr_ai, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • berriai/litellm
    Affected
    • < 1.44.9fixed in 1.44.9custom

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2024-09-13

Fix

Advisories and patches

Detection

read 2026-11-19 10:48 UTC
Nuclei template
available
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

Technical details

CVSS v3 Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Published
2024-09-13
Last Modified
2026-06-17
NVD status
Analyzed
GitHub Advisory
GHSA-g26j-5385-hhw3

Frequently asked questions

What is CVE-2024-6587?

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.

Is CVE-2024-6587 actively exploited?

A proof-of-concept exploit exists for CVE-2024-6587, but active exploitation has not been confirmed at this time.

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

CVE-2024-6587 has a CVSS v3 base score of 7.5 (HIGH severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N.

Running litellm? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month

Sources for this record