CVE-2026-42271

BerriAI LiteLLM Command Injection Vulnerability

Actively exploited · CISA KEV
8.7 HighCVSS v4.0
94.5%EPSS (30-day exploit probability)
2026-06-08added to KEV
2026-06-22CISA federal due date

Summary

BerriAI LiteLLM. BerriAI LiteLLM contains a command injection vulnerability that could allow any authenticated user, including holders of low-privilege internal-user keys, to run arbitrary commands on the host.

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 vector
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Weakness
CWE-77, CWE-78
Published
2026-05-08 (last modified 2026-10-26)

What to do

Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.

  1. Find every instance of BerriAI LiteLLM in your asset inventory, including internet-facing ones.
  2. Apply the vendor fix or mitigation, or isolate/disconnect the asset until you can.
  3. Hunt for signs of compromise from before you patched; exploitation is already happening in the wild.
  4. Ask critical suppliers whether they are affected and when they will be patched.

FAQ

Is CVE-2026-42271 being exploited?

Yes. CISA added CVE-2026-42271 to its Known Exploited Vulnerabilities catalog on 2026-06-08, which means there is reliable evidence of active exploitation.

How do I fix CVE-2026-42271?

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.

What is the EPSS score for CVE-2026-42271?

The EPSS score is 94.5%, meaning an estimated 94.5% probability of exploitation activity in the next 30 days (percentile 100).

Other exploited BerriAI vulnerabilities

CVE-2026-40217BerriAI LiteLLM Unprotected Alternate Channel Vulnerability2026-11-18
CVE-2026-59822BerriAI LiteLLM Improper Authentication Vulnerability2026-09-02
CVE-2026-42208BerriAI LiteLLM SQL Injection Vulnerability2026-05-08

All BerriAI exploited CVEs →

Triage many CVEs at once

Paste up to 25 CVEs and get KEV, EPSS and CVSS side by side, with CSV export.

Try Pro CVE triage

Sources: CISA KEV, NIST NVD, FIRST EPSS. This page is informational; verify against the vendor advisory before acting. © CyberStrategiX.