CVE-2026-42271BerriAI LiteLLM
Command Injection in LiteLLM via MCP Server Configuration
High 8.7 KEV
- Priority
- 52
- CVSS 4.0
- 8.7
- EPSS
- —
- Auth required
- Yes
- In KEV since
- Jun 8, 2026
- CISA deadline
- Jun 22, 2026
- Ransomware use
- Unknown
- Published
- May 8, 2026
- Updated
- Oct 26, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: active · Automatable: no · Technical impact: total
- 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
What happens
LiteLLM versions 1.74.2 to 1.83.6 contain a command injection vulnerability in two MCP server test endpoints. An authenticated user with a valid API key can execute arbitrary commands on the host with proxy process privileges, without requiring elevated permissions. CISA confirmed this vulnerability as actively exploited.
AI-generated summary (Claude) based on NVD and CISA data. Not reviewed yet: check the details in the vendor advisory.
Show the original NVD text
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.
Exploitation confirmed by CISA
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.
Action required by CISA: 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 to do
Patch available · fixed versions: 1.83.7
Update LiteLLM to version 1.83.7 or later. For OpenShift AI, update to 2.25.8, 3.3.4 or later depending on your version.
Vendor advisory · github.com ↗
AI-generated from public data; not reviewed.
- Apply the vendor's security update for LiteLLM.
- CISA has confirmed it is exploited: treat it as urgent. The deadline for US federal agencies was June 22, 2026.
- Check logs for signs of earlier exploitation.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | litellm |
≥ 1.74.2 < 1.83.7 |
1.83.7 |
pip install "litellm>=1.83.7" |
| PyPI | litellm |
≥ 1.74.2 < 1.83.7 |
1.83.7 |
pip install "litellm>=1.83.7" |
Per OSV / GitHub Advisories (GHSA-v4p8-mg3p-g94g, PYSEC-2026-2599). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| litellm | litellm | ≥ 1.74.2 < 1.83.7 |
| redhat | openshift_ai | ≥ 2.25 < 2.25.8 |
| redhat | openshift_ai | ≥ 3.3 < 3.3.4 |
| redhat | openshift_ai | 3.4 |
On social media
3 people and 3 posts on Bluesky in the last 30 days.
Most recent posts, without bots or automated feeds. The text belongs to its authors. Search on Bluesky
Official sources
References
Links published by the sources. Open them with care.
- github.com Product Release Notes
- github.com Mitigation Patch Vendor Advisory
- access.redhat.com Third Party Advisory
- access.redhat.com Third Party Advisory
- access.redhat.com Third Party Advisory
- access.redhat.com Third Party Advisory
- bugzilla.redhat.com Third Party Advisory
- security.access.redhat.com Third Party Advisory
- www.cisa.gov US Government Resource