CVE-2026-42271: BerriAI LiteLLM (High, CVSS 8.7)
- CVSS
- 8.7 High (v4.0)
- EPSS
- 91.4% chance of exploitation in the next 30 days (higher than 99.8% of CVEs)
- Exploited in the wild
- Yes, on CISA’s KEV list since Jun 8, 2026
- Public exploit
- Yes, reported in a Metasploit module, a Nuclei template and 2 GitHub repositories
- Weakness
- CWE-77, CWE-78
- 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- Published
- May 8, 2026
- CISA fix-by date
- Jun 22, 2026 (for US federal agencies)
What it is
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.
Description from the National Vulnerability Database.
What to do
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.
Check whether you run BerriAI LiteLLM, then apply the vendor’s fix or mitigation from the advisories below. Because this flaw is exploited or has public exploit code, treat it as urgent and check for signs of compromise, not just the patch level.
Advisories and fixes
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- bugzilla.redhat.com
- security.access.redhat.com
- www.cisa.gov
ThreatRoundup coverage
Attackers Retool the LiteLLM BadHost Exploit to Dodge Filters
Sources: NVD, FIRST EPSS, CISA KEV, and public exploit databases (availability only). ThreatRoundup reports whether public exploit code exists but never links to it: fake proof-of-concepts that infect security researchers are common. This page updates automatically.