Skip to main content
Mallory
HighPublic exploitVulnerability

CVE-2024-6587: Server-Side Request Forgery and API Key Disclosure in LiteLLM

Published Sep 13, 2024 · Updated 1 day ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS7.5High · v3.1
EPSS34.4%98th percentile
CISA KEVNoNot listed
In the wildReported298 exploitation records in Mallory
Vendors
BerriAILitellm
IdentifiersCVE-2024-6587CWE-918 · Server-Side Request Forgery (SSRF)

CVE-2024-6587 is a server-side request forgery vulnerability affecting berriai LiteLLM, confirmed in version 1.38.10. A client-supplied api_base parameter in a chat-completions request can redirect the upstream request to an attacker-controlled destination. LiteLLM includes its configured OpenAI API key in the forwarded request, exposing the credential. Version 1.44.8 introduced is_request_body_safe() validation for top-level api_base parameters. Related administrative-endpoint variants bypassed that validation by nesting api_base inside litellm_params; combining this behavior with server-side environment-variable resolution enabled additional secret disclosure in subsequently tested releases.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation exposes a configured OpenAI API key, enabling unauthorized API use and associated charges within the key's permissions and limits. Related nested-parameter variants can disclose environment-held secrets, including the LiteLLM master key, potentially enabling gateway administration and unauthorized inference use. Attacker-directed requests can also target internal services or cloud metadata services, with potential cloud credential disclosure where network access and metadata protections permit. Observed activity includes honeypot exploitation attempts and laboratory-confirmed secret exfiltration; production compromise is not established.

Mitigation

If you can’t patch tonight, do this now.

Restrict LiteLLM administrative and control-plane access to trusted networks and require strong authentication with a unique, non-default master key. Apply outbound destination allowlisting for approved model providers, and block access to cloud metadata services, loopback addresses, private networks, and other unapproved destinations. Monitor requests containing client-controlled api_base values, especially nested configurations combining external destinations with environment-variable references. Treat any previously exposed default master key as compromised.

Remediation

Patch, then assume compromise.

Upgrade from affected releases. LiteLLM 1.44.8 fixes the original top-level api_base issue in chat-completions requests, but does not address the demonstrated nested-parameter secret-exfiltration variants. Deploy a hardened release incorporating the later request-validation changes; version 1.83.14 was confirmed to reject environment-variable references in request parameters. Rotate potentially exposed upstream API keys and master keys, revoke compromised credentials, and review their usage for unauthorized activity.

Public exploits

Exploits

No public exploits tracked yet. Mallory keeps watching.

View more in app →
No public exploit code observed for this vulnerability. Mallory keeps watching.
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
BerriAILitellmapplication
LitellmLitellmapplication
FAQ

Frequently asked questions

Is CVE-2024-6587 exploited in the wild?
Yes. As of Nov 23, 2026, Mallory has reports of exploitation in the wild.
Is there a public exploit for CVE-2024-6587?
Yes. As of Nov 23, 2026, Mallory has reports of a public exploit for CVE-2024-6587.
Is there a patch for CVE-2024-6587?
Upgrade from affected releases. LiteLLM 1.44.8 fixes the original top-level api_base issue in chat-completions requests, but does not address the demonstrated nested-parameter secret-exfiltration variants.
What products are affected by CVE-2024-6587?
BerriAI Litellm and Litellm.
How severe is CVE-2024-6587?
CVE-2024-6587 has a CVSS v3.1 score of 7.5 (High) and an EPSS score of 34.4% (98th percentile) as of Nov 23, 2026.
Activity feed

Recent activity

5 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
the hacker newsNews · Jul 24, 2026ChatGPT AgentForger Flaw Could Deploy Rogue Workspace Agents via a Phishing LinkA previously disclosed LiteLLM-related vulnerability mentioned only as background in connection with attacks on exposed AI infrastructure.Read more ↗labs zenityNews · Jun 30, 2026Threat Actors Are Trying to Turn LiteLLM's Connection-Test Into a Key-Exfiltration ChannelAn SSRF vulnerability in LiteLLM allows attacker-controlled api_base values to redirect outbound requests and expose configured API credentials. Version 1.44.8 protected /chat/completions through a top-level request check, but the article describes a nested bypass through litellm_params at /health/test_connection and /model/new. Combined with server-side environment-variable resolution, this bypass can exfiltrate secrets, including LITELLM_MASTER_KEY. Researchers recorded 2,721 malicious requests during April–June 2026 and reproduced secret exfiltration on versions 1.74.0, 1.81.0, and 1.82.0. These observations demonstrate exploitation attempts against honeypots, not confirmed compromise of production victims. Version 1.83.14 was confirmed to reject environment-variable references in request parameters.Read more ↗labs zenityNews · Jun 30, 2026What You Don’t Know Can Hurt You: Why AI Security Research Needs to Move Out of the Lab and Into the WildCited as an actively exploited vulnerability in research observing real-world attacks against AI infrastructure through a honeypot network. The content does not clearly identify its affected product, technical cause, or impact.Read more ↗labs zenityNews · Jun 30, 2026What You Don’t Know Can Hurt You: Why AI Security Research Needs to Move Out of the Lab and Into the WildA specific vulnerability referenced in the context of active exploitation attempts against AI infrastructure, explicitly stated to be under active exploitation in the wild.Read more ↗
+1 more in the timeline. Sign up to see them
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signatures1YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activityCommunity discussion across Reddit, Mastodon, and other social sources.