---
id: CVE-2024-6587
aliases:
  - GHSA-g26j-5385-hhw3
  - PYSEC-2026-1547
title: LiteLLM Server-Side Request Forgery (SSRF) vulnerability
summary: LiteLLM Server-Side Request Forgery (SSRF) vulnerability
severity: high
cvss: 7.5
cvssVector: 'CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N'
vendor: litellm
product: litellm
ecosystem: pip
affected:
  - litellm < 1.44.8
patched:
  - litellm 1.44.8
published: '2024-09-13'
updated: '2026-09-10'
sourceUpdated: '2026-09-10T03:50:56.061352411Z'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-g26j-5385-hhw3'
references:
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2024-6587'
  - url: >-
      https://github.com/berriai/litellm/commit/ba1912afd1b19e38d3704bb156adf887f91ae1e0
  - url: 'https://github.com/berriai/litellm'
  - url: 'https://huntr.com/bounties/4001e1a2-7b7a-4776-a3ae-e6692ec3d997'
tags:
  - osv
  - pip
  - exploit-available
epss: 0.35316
epssPercentile: 0.98375
exploits:
  nuclei:
    - CVE-2024-6587
  checkedAt: '2026-09-23T07:13:30.795Z'
exploitAvailable: true
ingestedAt: '2026-07-08T18:25:49.178Z'
---

## Overview

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.

## Affected packages

- `litellm < 1.44.8`

## Remediation

Upgrade to a patched release:

- `litellm 1.44.8`
