8.8

CVE-2026-42271: BerriAI LiteLLM Command Injection Vulnerability

CVSS: 8.8v3.1HighKEVAnalyzed
AliasesGHSA-v4p8-mg3p-g94gPYSEC-2026-2599CGA-77vh-8x3h-jh3f
Published 08-05-2026Last modified 15-07-2026

Vulnerability summary

CVE-2026-42271 is a high (CVSS 8.8) Command Injection vulnerability in BerriAI LiteLLM. It is known to be exploited: CISA lists it, first on 08-06-2026. EPSS estimates a 92.57% chance of exploitation in the next 30 days, higher than 99.8% of scored vulnerabilities. 1 public exploit is recorded.

Overall risk
85/100
0100
Critical · default modelHow is this calculated?
CVSS score
8.8/10
010
High · v3.1 (CVE.org)
EPSS score
92.57%
0%100%
Critical · +8.98 pp in 30 days
KEVListedCISA
RansomwareNone recordedNo known use recorded
Public exploits1metasploit

Advisory lineage

Upstream 0 · Downstream 0 · Related 1

Timeline

  1. 08-05-2026
    PublishedVulnerability first disclosed.
  2. 08-06-2026
    Added to CISA KEVBerriAI LiteLLM Command Injection Vulnerability
  3. 22-06-2026
    CISA remediation dueApply mitigations per vendor instructions.
  4. 15-07-2026
    Last modifiedVulnerability information updated.

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.

CVSS metrics

8 scores · 5 sources · 2 versions

EPSS trend

Probability

92.57%

Chance of exploitation in the next 30 days

Percentile

100%

Versus all other CVEs

30-day change

+8.98 pp

From 83.59% on 19-09-2026

19-09-202619-10-2026
EPSS score
92.57%

Known exploited

Compare KEV catalogs
CISA KEVListed
Added
08-06-2026
Federal due date
22-06-2026

CISA required action

Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable. github.com/BerriAI/litellm/releases/tag/v1.83.7-stable nvd.nist.gov/vuln/detail/CVE-2026-42271

Public exploits

1 found
  • MetasploitMetasploitremoteVerified

    BerriAI LiteLLM Proxy MCP Test Endpoint Command Execution

    exploit/multi/http/litellm_mcp_test_cmd_injection

    Maturity: weaponized

Weaknesses

CWE · root cause

Affected systems

Chainguard2 products
  • airflow-3< 3.2.2-r7
  • litellm< 1.83.10.0-r0
Berriai1 product
Litellm1 product
PyPI1 product
  • litellm≥ 1.74.2, < 1.83.7
Redhat1 product
Wolfi1 product
  • airflow-3< 3.2.2-r7

6 vendors · 7 products

References

14 links
Show all 14 references