CVE-2026-42271LiteLLM: Authenticated command execution via MCP stdio test endpoints
Updated under an hour ago ()
Does this affect you?
It affects BerriAI litellm and 4 other products. Add what you run to find out whether that includes you.
CISA lists it as known exploited since Jun 8, 2026; federal agencies had to remediate by Jun 22, 2026. Treat that date as your deadline.
Do this next
Free account, 1 product
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
- 8.7 HIGH (v4.0, CNA)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
- Weakness (CWE)
- CWE-77, CWE-78
- Known exploited
- Added to CISA KEV Jun 8, 2026; federal remediation due Jun 22, 2026Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.
- EPSS (exploitation in the next 30 days)
- 91.44% (percentile 100)
- Assigned by
- GitHub_M
- NVD analysis
- Analyzed
- Record last updated
- Jul 14, 2026
- First seen by InfoSec Signals
- Oct 9, 2026
The CVE record on cve.org NVD's entry
The CVE record is authoritative. Products marked “from the name” were identified from the CNA's free-text names, not a CPE, and are matched less certainly. This product uses the NVD API but is not endorsed or certified by the NVD.