Skip to content

berriai/litellm

LiteLLM: Authenticated command execution via MCP stdio test endpoints

CVE-2026-42271Published 8 May 2026, 03:35 UTC

Real-world risk

8.0/ 10High

Act now: it is being exploited.

If the vulnerable configuration applies to you: 8.0

PreliminaryFrom the CVSS vector only Β· confidence low

CVSS

8.7

scored by the vendor (CNA), CVSS 4.0

In plain words

No plain-language summary yet. The original description is below.

Original description (from GitHub_M)

LiteLLM is a proxy server (AI Gateway) to call LLM APIs in OpenAI (or native) format. From version 1.74.2 to before version 1.83.7, two endpoints used to preview an MCP server before saving it β€” POST /mcp-rest/test/connection and POST /mcp-rest/test/tools/list β€” accepted a full server configuration in the request body, including the command, args, and env fields used by the stdio transport. When called with a stdio configuration, the endpoints attempted to connect, which spawned the supplied command as a subprocess on the proxy host with the privileges of the proxy process. The endpoints were gated only by a valid proxy API key, with no role check. Any authenticated user β€” including holders of low-privilege internal-user keys β€” could therefore run arbitrary commands on the host. This issue has been patched in version 1.83.7.

Am I affected?

ProductAffected versions (from the sources)Fixed in
berriai/litellmCommon>= 1.74.2, < 1.83.71.83.7

What to do

Update to a fixed version: 1.83.7.

Why this score

FactorValueEvidenceΓ—
ImpactFull compromiseCode execution or full control of the system or applicationFrom the CVSS vector1.00
Attacker positionInternetAnyone on the Internet can reach a typical deploymentFrom the CVSS vector1.00
Privileges neededLowA real low-privileged accountFrom the CVSS vector0.60
Victim interactionNoneNothingFrom the CVSS vector1.00
ConfigurationUncommonNeeds a non-default feature that a minority enablesFrom the CVSS vector0.45
ReliabilityReliableDeterministic: injection, logic bug, path traversalFrom the CVSS vector1.00

Threat level T5: Exploited in the wild (Γ— 1.00)

On CISA KEV or VulnCheck KEV, flagged exploited by ENISA's EUVD, CISA's SSVC says active, or the vendor's or CNA's own page says it is exploited

  • On CISA’s Known Exploited Vulnerabilities list
  • Metasploit module (link)
  • Nuclei scanner template (link)
  • CISA SSVC: exploitation active

EPSS 94.5% chance of exploitation in 30 days (percentile 100), as of 2026-12-03.

The arithmetic
  1. Prerequisites multiplied together0.270
  2. Threat T5: Exploited in the wild1.000
  3. 10 Γ— impact 1 Γ— prerequisites 0.27 Γ— threat 12.700
  4. Exploited in the wild: attackers have already met the prerequisites, so they count only by their square root5.196
  5. Exploited in the wild: at least 88.000
  6. Rounded to one decimal between 0.1 and 108.0

How the score works

Exploitation and evidence timeline

  1. 8 May 2026 Published
  2. 8 Jun 2026 Added to CISA KEV
  3. 3 Dec 2026 Metasploit module first seen
  4. 3 Dec 2026 Nuclei scanner template first seen
  5. 3 Dec 2026 CISA SSVC: exploitation active first seen
  6. 3 Dec 2026 Risk 8.0 (cvss fallback)

Weakness

CWE-77, CWE-78

References

Get alerts for berriai/litellm

Free email or text alerts when a vulnerability in berriai/litellm reaches risk 8 or higher. Nothing else.