CVE-2026-42271

Description

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.

Severity
HIGH
CVSS v3
8.8
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H · source nvd
CVSS v4
8.7
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:N/SA:N · source cna
Exploit chance (EPSS)
91.445%
chance of exploitation in the next 30 days
higher than 99.8% of scored CVEs · 2026-11-17
CISA KEV
Listed
added 2026-06-08
Public exploit code
Yes
Exploit references (NVD and CNA): 0
Metasploit modules: 1
Nuclei templates: 1

Weakness

CISA Known Exploited Vulnerabilities entry

Vulnerability nameBerriAI LiteLLM Command Injection Vulnerability
Vendor / productBerriAI / LiteLLM
Date added2026-06-08
Federal remediation due date2026-06-22
Required actionApply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.
Known ransomware campaign useUnknown

CISA SSVC decision points

Exploitationactive
Automatableno
Technical impacttotal
Scored2026-05-08

Timeline

  1. 2026-04-25GitHub advisory published (GHSA-v4p8-mg3p-g94g)13 days before publication
  2. 2026-05-08Published by the CNA03:35 UTC
  3. 2026-05-08CISA SSVC decision recordedsame day
  4. 2026-06-08Added to the CISA KEV catalog31 days after publication

The timeline shows what already happened. To be told when this CVE changes next, watch it from the API.

Exploit and advisory records

Nuclei templates:

GitHub advisory GHSA-v4p8-mg3p-g94g, affected packages:

PackageVulnerable versionsFixed in
PyPI litellmfrom 1.74.2 before 1.83.71.83.7

Affected products

Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.

ProductVulnerable versionsFixed in
litellm litellmfrom 1.74.2 before 1.83.7fixed in 1.83.71.83.7
redhat openshift_aifrom 2.25 before 2.25.8fixed in 2.25.8from 3.3 before 3.3.4fixed in 3.3.43.4no fix listed2.25.83.3.4not listed

Products and versions as NVD and the vendor that published the CVE list them.

References

Get more CVE data from the API.

Free without a key or signup. Pro adds monitoring and higher limits: pricing.

Sources