CVE-2026-42271, BerriAI LiteLLM: low-privilege command injection to host RCE, added to CISA KEV
Defender actions
- Upgrade every LiteLLM proxy to 1.83.7 or later: CVE-2026-42271 is KEV-listed and becomes unauthenticated when chained with CVE-2026-48710.
Analysis
CISA added CVE-2026-42271 to its KEV catalog on 8 June 2026, confirming active exploitation of a command-injection flaw in LiteLLM, the open-source AI gateway/proxy (CISA KEV catalog, 2026-06-08) (GitHub Advisory GHSA-v4p8-mg3p-g94g). Two preview endpoints, POST /mcp-rest/test/connection and POST /mcp-rest/test/tools/list, accept a full MCP server configuration (command, args, env) in the request body; with stdio transport, the proxy spawns the supplied command on the host under the proxy's privileges. The endpoints were gated only by a valid API key with no role check, so any authenticated user (including low-privilege internal keys) could execute arbitrary commands. Horizon3.ai documents that chaining with CVE-2026-48710 (a Starlette Host-header validation bypass) makes the path unauthenticated (Horizon3.ai, 2026-06-01). Affected: LiteLLM 1.74.2 to < 1.83.7; fixed in 1.83.7, which adds role-based authorization on the MCP test endpoints.
CVE Summary Table
| CVE | Product | CVSS | EPSS | KEV | Exploited | Patch | Source |
|---|---|---|---|---|---|---|---|
| CVE-2026-42271 | BerriAI LiteLLM proxy (1.74.2 → < 1.83.7) | 8.7 | n/a | Yes (2026-06-08) | Yes (CISA-confirmed) | Upgrade to 1.83.7 | GitHub Advisory; CISA KEV catalog, 2026-06-08 |
Cited evidence
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.
Updates1
LiteLLM 1.74.2 through 1.83.6 is affected and 1.83.7 fixes it, Starlette 1.0.0 or earlier makes the flaw reachable without authentication (Horizon3.ai, 2026-06-01), and the advisory's workaround is to block the two test endpoints at the reverse proxy or API gateway (GitHub Advisory GHSA-v4p8-mg3p-g94g).
Sources3
Revision history
- Published 2026-06-09-40d562df
- Improvement 2026-10-11T1307Z-audit
Adds a reference to the earlier entry that shares a CVE with this one; the two are distinct findings (different campaigns or developments), so they are linked rather than merged. The KEV listing gains its catalog citation, the action is trimmed to the upgrade task, and event_date is the listing date. The deployment characterisation no sources state is dropped, and the sourcing note describes the actual sourcing. The entry gains Exposure, Detection and takeaway lines from the advisory and Horizon3. The summary table no longer carries the Check Point row, which has its own entry.
Changed: references actions body event_date sourcing_note
AI-generated · no human review · this permalink is the shareable record for the finding · verify operationally critical claims against the linked primary source.